Forums

Load app into root or directory?

I'm a New user, so by mistake I created a Django app, and then deleted the app (using the dashboard) so that I could choose Custom app instead (I have a programmed app already). I selected Custom App second.

I now see in a bash console, that I have a directory in my account with django config files and the name of my app as a directory (I am not sure if this is the Custom App or the Django App that I deleted in the console).

1) Is this app directory the "custom folder" that I should load my programmed app into, or -

2) should I clone my github repo into the root of my home/acctname/ folder?
or -

3) should I create a new directory and load my custom app code into that directory ?

Intuitively, I want to guess that I should delete the app directory and create a new one with github files in it, but then I thought its better to ask first.

The manual configuration option does not create any files in your home directory so, if you're seeing a directory named after your site there, it is probably from your previous Django web app.

You can clone your git repository anywhere you like as long as it's somewhere in your home directory. You would then just need to point the wsgi file (linked from your web app configuration page) to that directory.

We have a help page on deploying an existing Django app here: https://help.pythonanywhere.com/pages/DeployExistingDjangoProject/

thks