Saturday, June 30, 2018

Re: django windows apache tell if apache is working

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 like 

app/views

def index(request):
    return HttpResponse("Working!")

app/urls

from app.views import index
urlpatterns = [
    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%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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/6f5e5996-a85e-4eb6-b5e4-804f7379a2b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment