my first django project for practicing .
- Python 3.8
- Virtual Environment (virtualenv)
pip install virtualenv
pip install virtualenvwrapper
cd /path/to/dev/folder
mkdir try_django
cd try_django
virtualenv -p python3 djangoenv
- activate virtualenv in Scripts folder
install django in virtualenv
pip install -U django
python -m pip install pillow
1.Click on Fork
.
2.Go to your fork and Clone
the project to your local machine
3.activate virtualenv
4.apply the migrations python manage.py migrate
5.Finally, run the development server python manage.py runserver
Create an admin account for first start :
python manage.py createsuperuser
For example, set username 'admin' and password '123456'
Then access http://127.0.0.1:8080/admin, type the username and password to login :
- articles list
- article
- signup