Do the Migration 1python3 manage.py makemigrations 2python3 manage.py migrate Create the Admin Account 1python3 manage.py createsuperuser Run server 1python3 manage.py runserver Visit http://127.0.0.1:8000/admin and use the account created earlier.
Read MoreBy now, you should now have a basic django skeleton site as shown in Starting Django. Here's how you create a basic site that now says "Hello World" Create the App Inside your basic skeleton site, run the command: 1~$ python3 manage.py startapp myapp Server file structure of current directory would now be as …
Read MoreIt is typyically as follows: 1+- Hello-World <-- Project Root 2| | 3| +-- db.sqlite3 <-- Database 4| +-- manage.py <-- Management Tool 5| +-- myapp/ <-- Custom App 6| +-- forum/ <-- Custom App 7| +-- myadmin/ <-- Custom App 8| +-- mysite/ <-- Project Package 9| 10+- venv <-- virtual environment …
Read MoreSetup venv 1~$ python3 -m venv venv 2~$ source venv/bin/activate Install Django (If not yet installed, otherwise skip) 1~$ pip install django Create the skeleton of the site 1~$ django-admin startproject mysite . Server file structure of current directory would be as follows: 1manage.py 2mysite 3mysite/__init__.py …
Read More