## install virtualenv ``` sudo pip install virtualenv ``` ## cd in your dir mkdir ~/newproject cd ~/newproject ## create a virtual environment ``` virtualenv newenv ``` ## activate virtual environment ### windows ``` newenv\Scripts\activate.bat ``` ### linux ``` source newenv/bin/activate ``` ## install Django in virtual environment ``` pip install django ``` ## verify the installation ``` django-admin --version ``` ## leave virtual environment ``` deactivate ``` --- ## links ``` http://127.0.0.1:8000/welcome/register/ http://127.0.0.1:8000/accounts/login/ http://127.0.0.1:8000/welcome/ ``` ## run server ``` python manage.py runserver ``` ## create admin ``` python manage.py createsuperuser ``` acc/pw admin/admin
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up