Hi,
I think I see the problem now.
WAMP is a special case for aliases, and it's root directory default setup in c:wamp\www for ex.. I need to do some more work on, say for ex. using Django Tut 01, setting up mysite as an alias in wamp, and then putting the polls app in it. I believe apache might start to work then with django if the wamp alias is setup correctly.
I also found this vid tut: really good, but for XAMPP, not WAMP...but it shows how to get the mod_wsgi.so from a renamed and extracted .whl file. And using the mod_wsgi.so with apache simplifies things a bit, so this is good too.
XAMPP
This shows how to create a mod_wsgi.so from the .pyd extracted from the .whl file
Regards
On Sat, Jun 30, 2018 at 10:08 AM, Jason <jjohns98684@gmail.com> wrote:
I meant the tutorial at https://docs.djangoproject.--com/en/2.0/intro/tutorial01/ That said, there's a few different ways you can actually deploy, but digitalocean has some good resources for starting out.This one shows how to use apache on ubuntu, and you should be able to extrapolate to use wamp.what I would do is just set up a simple view to return a http response saying "working", and map that to the root. Something likeapp/viewsdef index(request):return HttpResponse("Working!")app/urlsfrom app.views import indexurlpatterns = [path('', index),]and hit localhost. That'll be all you need.Hi,Thanks.Yes, I went thru the Mozilla library tutorial on a fedora dev machine to the point where I realized I needed to do more with the last mile, so to speak working on setup of the production server part on Windows and wamp.Seems most tuts end at manage.py runserver, or start into deployment from dev to production. I can't seem to locate a good uptodate tut for wamp that shows how to test everything is working properly in a simple manner for the wsgi part.I'm just trying to verify the plumbing (httpd.conf, settings.py wsgi.py) is working with apache, before spending too much more time building a site.On Sat, Jun 30, 2018 at 2:54 AM, Jason <jjohn...@gmail.com> wrote:appreciate the detailed report :-)--so, have you set up the django tutorial project? that application method in wsgi doesn't make any sense. you should have urls and views set up in your project
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/-eJaLuJ85KE/ .unsubscribe
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6d241c04-55be .-4524-959e-09630a7bc21f%40goog legroups.com
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/- .eJaLuJ85KE/unsubscribe
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6f5e5996- .a85e-4eb6-b5e4-804f7379a2b4% 40googlegroups.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALWZDaNY4miqCqxy%3DLvH4417%3DP4XGOuHAOepCBT2tPpg0wqkrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment