

TIP: if you see an error saying mkvirtualenv: command not found, check out InstallingVirtualenvWrapper. PythonAnywhere has very fast internet, but the filesystem access can be slow, and Django creates a lot of small files during its installation. Warning: Django may take a long time to install.
APACHE WSGI DJANGO AWS POSTGRESQL INSTALL
# or, if you have a requirements.txt: (mysite-virtualenv )$ pip install -r requirements.txt

In your Bash console, create a virtualenv, naming it after your project, andĬhoosing the version of Python you want to use: $ mkvirtualenv -python =/usr/bin/python3.8 mysite-virtualenv Create a virtualenv and install Django and any other requirements ¶ That's the solution we recommend, but there are a few different methodsĭocumented on the uploading and downloading files help page. Add any other setup (static files, environment variables etc)Īssuming your code is already on a code sharing site like GitHub or Bitbucket, youĬan just clone it from a Bash Console: # for example.Set up your web app using the manual config option.Set up a virtualenv and install Django and any other requirements.Here's an overview of the steps involved. What we call a Web app via the Web tab in our UI, and then configure it withĪ WSGI file whose job is simply to import your Django project.Īnd then your site will be live on the real, public Internet. With manage.py runserver and viewing your site on localhost, you'll create The main thing that's different is that, instead of using the Django dev server PC, you'll have a copy of your code on PythonAnywhere which you can edit and You'll use a virtualenv, just like you probably do on your own Deploying a Django project on PythonAnywhere is a lot like running a Django project on
