python_wiki:django_configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous 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/03 16:45]
billdozor
Line 50: Line 50:
 Configuring Django. Configuring Django.
  
-  * Verify django works<code bash>python+  * Verify django works<code python>python
 >>> import django >>> import django
 >>> print(django.get_version()) >>> print(django.get_version())
Line 241: Line 241:
   * Create an admin user<code bash>python manage.py createsuperuser</code>   * Create an admin user<code bash>python manage.py createsuperuser</code>
  
-  * Make your models/objects available for editing in the admin portal (/home/django/myprojecthere/myapphere/admin.py)<code bash># -*- coding: utf-8 -*-+  * Make your models/objects available for editing in the admin portal (/home/django/myprojecthere/myapphere/admin.py)<code python># -*- coding: utf-8 -*-
 from __future__ import unicode_literals from __future__ import unicode_literals
  
Line 1560: Line 1560:
  
 \\ \\
-Edit the project settings<code python>vim /home/django/myprojecthere/myprojecthere/settings.py +Edit the project settings (/home/django/myprojecthere/myprojecthere/settings.py)<code python># SECURITY WARNING: don't run with debug turned on in production!
- +
-# SECURITY WARNING: don't run with debug turned on in production!+
 DEBUG = False</code> DEBUG = False</code>
  
 ---- ----
  
  • python_wiki/django_configuration.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)