The site work fine on my localhost, but I have problems deploying It.
-
1please copy paste source code directly into your question. Otherwise search engines and the builtin Stackoverflow search cannot work, which will make your question very uninteresting for future users. One of the goals of stack overflow is, that good questions and answers can be found by others. in order to avoid asking the same (or similar) questions over and over again.KlausF– KlausF2021-04-06 23:00:26 +00:00Commented Apr 6, 2021 at 23:00
Add a comment
|
1 Answer
The value of DJANGO_SETTINGS_MODULE has to be in Python path syntax, e.g. "Insertemp.settings". See https://docs.djangoproject.com/en/3.1/topics/settings/#designating-the-settings
5 Comments
Remiingemann
Thank mate. But still does not work, mabye something else is wrong. I gues when I got it up and running on my computer, I just follow the docs on pythonanywhere.com to get it launched. Does It matter if I do not have a database? On my computer I use XAMPP without a django database. Does the site run without a database? Best regard RIJ
Filip
It's hard to tell more with the data from your original question. You can run Django without the db but why use a Django at all in that case?
caseneuve
@Remiingemann Can you paste the most recent error message from the error log? (You provided screenshots for wsgi file twice)
Remiingemann
@Filip, I'm gonna use a DB, but just wanted to deploy the site first to see if It was working (I just started programming, so babysteps for me at this point :-) ) **caseneuve, hehe Yes I see that now. I'm adding a couple of new img as well. Thanks a lot for the help. PS! I've tried with the setting: 'Insert.settings as well, but did not work for me.
Remiingemann
@Filip , I had a good nights sleep and found the problem. I was as simpel as a extra folder in my path. So just removed it, and it work. Thanx for the help. Have a greath weekend!