LoFa
Add
Login
Search
Title:
Tag1 for Path:
a single word in lower characters
Tag2 for Path:
List of alternative single tags:
one or many words in lower characters, separated by comma or space
Text:
<p>After successful installation of Django 3 we can create our first project.</p> <code>cd /usr/local/www/django3/</code><br> <code>ls -altr</code> <pre> total 8 drwxr-xr-x 2 root wheel 512 Oct 20 17:15 . drwxr-xr-x 13 root wheel 512 Nov 9 11:44 .. </pre> <code>django-admin startproject greenclass</code><br> <code>ls -altr</code> <pre> total 12 drwxr-xr-x 13 root wheel 512 Nov 9 11:44 .. drwxr-xr-x 3 root wheel 512 Dec 7 16:02 greenclass drwxr-xr-x 3 root wheel 512 Dec 7 16:02 . </pre> <code>cd greenclass ; ls -altr</code> <pre> total 16 -rwxr-xr-x 1 root wheel 630 Dec 7 16:02 manage.py drwxr-xr-x 3 root wheel 512 Dec 7 16:02 . drwxr-xr-x 2 root wheel 512 Dec 7 16:02 greenclass drwxr-xr-x 3 root wheel 512 Dec 7 16:02 .. </pre> <code>vi greenclass/settings.py</code> <pre> 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': '....', 'USER': '...', 'PASSWORD': '...', 'HOST': 'localhost', 'PORT': 5432, } <code>python3.6 manage.py startapp location</code><br> <code>ls -altr</code><br> <pre> -rwxr-xr-x 1 root wheel 630 Dec 7 16:02 manage.py drwxr-xr-x 3 root wheel 512 Dec 7 16:02 .. drwxr-xr-x 3 root wheel 512 Dec 7 19:46 greenclass drwxr-xr-x 4 root wheel 512 Dec 7 20:23 farmshop drwxr-xr-x 3 root wheel 512 Dec 12 19:16 location drwxr-xr-x 5 root wheel 512 Dec 12 19:16 . </pre>
URL:
Operation:
Delete
Update
Insert
Template Prompt