On Tue, Jul 30, 2013 at 4:48 PM, Jared Nielsen <nielsen.jared@gmail.com> wrote:
> I'm trying to learn Django but finding myself lost in troubleshooting hell.
> I can't find consistent information on the best approach for a beginner to
> get set up.
>
> I started setting up Apache with mod_wsgi, but ran into innumerable config
> errors. After some Googling about, I found a number of suggestions to use
> lighttpd instead. Installed that and more troubleshooting. And what's this
> about gunicorn?
>
> What's the best approach for a beginner? Where is my time best spent
> troubleshooting?
If you're a beginner, ignore every webserver there is and just use
runserver. When you reach the limits of runserver, or when you need to
deploy to a webserer so other people can use your site, then and only
then think about it.
I am very much not a beginner, and I exclusively use runserver to
develop - for ease of use and closeness to the code, there is not much
better, and definitely nothing easier.
>
> Also, should I be using virtualenv? Inconsistent use across the various
> tutorials I'm reading.
You absolutely should be using virtualenv, this isn't a Django thing,
but best practice for developing and deploying python applications.
It's really straightforward to use, it doesn't change how you use
python, only how you install packages, and hence it is really
orthogonal to any Django tutorial.
Cheers
Tom
--
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 http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment