Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
python_wiki:django_configuration [2018/08/03 16:42] billdozor [DEBUG: TURN OFF] |
python_wiki:django_configuration [2018/08/14 23:41] billdozor [Logging Setup] |
||
---|---|---|---|
Line 28: | Line 28: | ||
* Run secure setup< | * Run secure setup< | ||
* Prompts for the following: | * Prompts for the following: | ||
+ | * Current password for root (should be none, just press enter) | ||
* Set database root password | * Set database root password | ||
* Remove anonymous users | * Remove anonymous users | ||
Line 50: | Line 51: | ||
Configuring Django. | Configuring Django. | ||
- | * Verify django works< | + | * Verify django works< |
>>> | >>> | ||
>>> | >>> | ||
Line 235: | Line 236: | ||
* Create logging directory and setup ownership/ | * Create logging directory and setup ownership/ | ||
chown :apache / | chown :apache / | ||
- | chmod g+rwx / | + | chmod g+rwxs / |
===== Admin Interface ===== | ===== Admin Interface ===== | ||
Line 241: | Line 242: | ||
* Create an admin user< | * Create an admin user< | ||
- | * Make your models/ | + | * Make your models/ |
from __future__ import unicode_literals | from __future__ import unicode_literals | ||
Line 906: | Line 907: | ||
< | < | ||
<tr class=" | <tr class=" | ||
- | <th class=" | + | <th class=" |
<th class=" | <th class=" | ||
<th class=" | <th class=" | ||
<th class=" | <th class=" | ||
<th class=" | <th class=" | ||
- | <th class=" | + | <th class=" |
</tr> | </tr> | ||
</ | </ | ||
Line 1560: | Line 1561: | ||
\\ | \\ | ||
- | Edit the project settings<code python> | + | Edit the project settings |
- | + | ||
- | # SECURITY WARNING: don't run with debug turned on in production! | + | |
DEBUG = False</ | DEBUG = False</ | ||
---- | ---- | ||