Installing current Django on current Debian with current Python

2013-03-12 Thread breg
The latest Django release 1.5 brings a number of welcome improvements, the 
configurable User model IMO the most noticeable.
Now the accouncement on djangoproject.com says: ".. Python 2.7.3 or newer 
is strongly recommended"
As I have no ethical, political or gender-related reservations against 
python 2.7x I decided to upgrade my debian server accordingly. 
*aptitude install python2.7 *and *aptitude purge python2.6* should do the 
job. 
But now apache says "Invalid command 'WSGIScriptAlias'", *aptitude install 
libapache2-mod-wsgi* produces a mess and so on.
Can someone report how to install - or link to a howto - for the following 
setup?:
- Debian stable (with -t testing available via pinning)
- Apache 2.2 with mod_wsgi
- Python 2.7.x
- Django 1.5 

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems install/download Django 1.5

2013-03-12 Thread breg


On Monday, March 11, 2013 5:22:22 PM UTC+1, DJ-Tom wrote:
>
>
> Fixed - downloaded from Github and installed manually... everything's fine 
> :-)
>

Well, I wanted to upgrade via pip:
pip install --upgrade django 
..and after 2,5 MB I always get a timeout error. 
pip install does more than just downloading.
Is it possible to reconfigure pip to load the tarball from github?

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Installing current Django on current Debian with current Python

2013-03-13 Thread breg
Don't understand your dramatic words, of course after purging all depending 
packages and running again:
*aptitude install libapache2-mod-wsgi*
everything was installed and worked as before, including python 2.6.
That's what a package system is made for, and why I chose debian in the 
first place. 

Question remains how to get *current* releases of Debian, Python and Django 
running together. 


On Wednesday, March 13, 2013 12:03:57 AM UTC+1, Shawn Milochik wrote:
>
> The decision to purge Python2.6 was a very, very bad one. ...
> You could try to use aptitude to restore it. Hopefully that will work. 
> ...
> Incidentally, there's no reason you can have Python 2.6 and Python 2.7 
> installed on the same machine. You'll just have to use 'python2.7' 
> instead of 'python' when running your scripts if you want Python 2.7 
> instead of the default 2.6. 
>

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems install/download Django 1.5

2013-03-13 Thread breg
Works fine, including pip automatically deinstalling Dj 1.4.1 - thanks!

On Wednesday, March 13, 2013 12:04:29 AM UTC+1, Shawn Milochik wrote:
>
> You can just download the tarball and "pip install filename." 
>

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems install/download Django 1.5

2013-03-13 Thread breg
Oops, the *pip install* ends with success, and *django.VERSION* yields 
1.5.0 - but after putting a typo into settings.py, the error handler says 
(in the browser):
Django Version: 1.4.1
Seems I have some kind of mix between 1.4.1 and 1.5 running?

On Wednesday, March 13, 2013 3:07:33 PM UTC+1, br...@kanka.de wrote:
>
> Works fine, including pip automatically deinstalling Dj 1.4.1 - thanks!
>
> On Wednesday, March 13, 2013 12:04:29 AM UTC+1, Shawn Milochik wrote:
>>
>> You can just download the tarball and "pip install filename." 
>>
>

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems install/download Django 1.5

2013-03-13 Thread breg
Okay - now I directly get server errors, so the Django error handler is 
passed by...

On Wednesday, March 13, 2013 4:25:49 PM UTC+1, Shawn Milochik wrote:
>
> Delete all your .pyc files in your virtualenv. 
>
> find /path/to/virtualenv -name '*.pyc' -exec rm -f {} \; 
>
> If that doesn't fix it, manually delete all Django folders from your 
> virtualenv. 
>
>Go to the "lib/python2.7/site-packages/" folder in your virtualenv 
> and look around. 
>

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems install/download Django 1.5

2013-03-14 Thread breg
"Internal server error" - standard apache message.
But to clarify: when I take the syntax typos out, the poll admin backend 
works fine. 
So somehow just the "Debug = true" does not trigger the django error 
handler any more. 
This might be caused by my (failed) trials to "Install current Django on 
current Debian with current Python", see other thread.
So I dont want to bother you or the public with these issues. 
The virtual environment thread I will follow as soon as I find the time. 


On Wednesday, March 13, 2013 6:15:22 PM UTC+1, Shawn Milochik wrote:
>
> On Wed, Mar 13, 2013 at 12:55 PM,  > wrote: 
> > Okay - now I directly get server errors, so the Django error handler is 
> > passed by... 
> > 
>
> It helps if you post the errors. 
>

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems install/download Django 1.5

2013-03-14 Thread breg
Sorry can't find a message from you in this newsgroup with any virtualinv 
instructions.

Or do you mean this link?:
https://pypi.python.org/pypi/virtualenv

This text _is_ detailed with regard to virtualenv, but the combination with 
apache/wsgi on debian would pose more questions. 

Apart from my question, it would really make sense to have Django install 
instructions for a debian/ubuntu server in the django docs.
This would lower the entrance hurdles to check out Django for many website 
admins. 


On Thursday, March 14, 2013 3:06:28 PM UTC+1, Shawn Milochik wrote:
>
> Check out the post I made on this forum about five minutes ago. I put 
> in pretty detailed virtualenv instructions. That should be all you 
> need to get going. 
>

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems install/download Django 1.5

2013-03-15 Thread breg
Hello,

On Thursday, March 14, 2013 9:17:22 PM UTC+1, Lachlan Musicman wrote:
>
> > Apart from my question, it would really make sense to have Django 
> install 
> > instructions for a debian/ubuntu server in the django docs. ...
>
> I disagree - the docs are very well written and work across platform. 
> There's no need for .deb specialisation. ...  
>
I don't understand how the brand of linux you are using could affect the 
> deployment. 
>

Because the 'brand' comprises a package manager?
Of course you can ignore it, but once you have, you can not easily go back 
to the package-administration. 
With the package manager, after having installed apache2, you would 
continue:
*aptitude install libapache2-mod-wsgi*
I found that after browsing several blogs - it should be in the Django docs.
Same with the *WSGIScriptAlias *that needs to be inserted in apaches config.
Then, what is the connection to the *wsgi.*py that is generated by *
startproject*?
All these topics should be in the docs. 
Debian is widely used and all web admins who consider installing django 
apps will have these questions. 

Anyhow, thanks for pointing out and explaining the use of virtualenv. 
When used to combine Django 1.5 with Python 2.7 on Debian, the question 
about the role of package mangement applies as well. 

 

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems install/download Django 1.5

2013-03-16 Thread breg
On Friday, March 15, 2013 12:04:56 PM UTC+1, Daniel Roseman wrote:
>
> On Friday, 15 March 2013 10:05:48 UTC, br...@kanka.de wrote:
>
>> Because the 'brand' comprises a package manager? ...
>> *aptitude install libapache2-mod-wsgi*
>>
> I found that after browsing several blogs - it should be in the Django 
>> docs.
>>
>
> That's a detail restricted to Debian-based brands of Linux. I can't 
> imagine why that should be in the Django docs. 
>

So where do you propose that the intersection between Django and Debian 
should be documented, and discussed?
 

> Same with the *WSGIScriptAlias *that needs to be inserted in apaches 
>> config.
>>  
>>
>>> Then, what is the connection to the *wsgi.*py that is generated by *
>>> startproject*?
>>>
>>
>> That has nothing to do with Debian, and *is* in the Django docs.
> https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/modwsgi/
>

Okay, I overread this, it's new in 1.4, and as I started with 1.3, at the 
time this part of mod_wsgi integration was more tedious.
 

> In other words, you haven't read the documentation you're complaining 
> about being incomplete.
>

My complaint remains about missing integration/documentation with debian.
Editing vhost.conf directly is not debian's way, which uses the *
mods/sites-enabled* mimics (which makes a lot sense btw). 
Secondly, python 2.7 being "highly recommended" for Dj 1.5 can not be used 
in debian stable. 
Installing a virtualenv again undermines package management control. 

So it'd not my personal problem as you try to put it, it's the question to 
the Django community if they want a warm insider club or a growing 
community. 

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.