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:27] billdozor [Database Setup] |
python_wiki:django_configuration [2018/08/04 15:50] billdozor [Page Content: Index] |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | Configuring the Django Web Framework and its dependencies. | + | Configuring the Django Web Framework and its dependencies. |
+ | \\ | ||
+ | The **EXAMPLE** sections of code end up building an inventory website. | ||
+ | |||
+ | \\ | ||
**Checklist** | **Checklist** | ||
* [[python_wiki: | * [[python_wiki: | ||
Line 46: | Line 50: | ||
Configuring Django. | Configuring Django. | ||
- | * Verify django works< | + | * Verify django works< |
>>> | >>> | ||
>>> | >>> | ||
Line 237: | Line 241: | ||
* 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 290: | Line 294: | ||
url(r' | url(r' | ||
- | # /myapphere/device/ - Specific Device, All Environments | + | # /myapphere/device_type/ - Specific Device, All Environments |
- | url(r' | + | url(r' |
- | # /myapphere/device/ | + | # /myapphere/device_type/ |
- | url(r' | + | url(r' |
+ | |||
+ | # / | ||
+ | url(r' | ||
]</ | ]</ | ||
Line 899: | Line 906: | ||
< | < | ||
<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 1545: | Line 1552: | ||
* Collect static files< | * Collect static files< | ||
python manage.py collectstatic</ | python manage.py collectstatic</ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== DEBUG: TURN OFF ====== | ||
+ | |||
+ | Lastly, when you are not developing/ | ||
+ | |||
+ | \\ | ||
+ | Edit the project settings (/ | ||
+ | DEBUG = False</ | ||
---- | ---- | ||