Re: Why does django use mysqldb over mysql-connector?

2012-05-03 Thread john2095
Yes, that's the pure python adapter I'm talking about.  I think that's 
effectively the same as this 
one. 
 Nice link but I'm not sure if you're suggesting that as additional 
information or an answer?

The question remains is a compelling reason why "django.db.backends.mysql" 
is built upon mysqldb  with 
dependencies rather one without dependancies, and if anyone has attempted 
to implement an equivalent "django.db.backends.mysql" with the latter.


On Friday, 4 May 2012 11:30:31 UTC+10, steev wrote:
>
> > Has this happened by default or by design?  Is mysqldb really that much 
> > faster, or featureful, or just because it's more common? 
>
> From http://forge.mysql.com/projects/project.php?id=302 
>
> "Development Status: Early (Pre-Alpha)" 
>
> -- 
> steve 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/xLS_rF0bi_gJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Git migration

2012-05-03 Thread Eugenio Minardi
Hi,

It is more than one year I am using GIT with Django and there are no
problems, just make sure that the statics stays out of the repository and
that into the .gitignore file there are no required path or extensions

Eugenio
Il giorno 04/mag/2012 05:55, "Larry Martell"  ha
scritto:

> On Thu, May 3, 2012 at 9:42 PM, Stanwin Siow 
> wrote:
> > Hello there,
> >
> > Just wanted to enquire about a project that i have been working on.
> >
> > It was previously hosted on an svn repository however my supervisor then
> > decided to migrate it to GIT.
> >
> > my question here would be do i need to reinstall the external modules
> that i
> > used in my django project like django-registration and django-paypal in
> GIT?
> >
> > Or would the functionalities be the same?
> >
> > I'm asking this is because i discovered a break in the program after the
> > migration.
> >
> > Any help or advice is appreciated.
> >
> > Thanks in advance!
>
> This may or may not be applicable to your situation. We had be using
> django from SVN with  -r 13034. When we switched to django from git,
> version 1.2 worked, but 1.4 did not. We had to make quite a few
> changes to get 1. 4 to work. In the end it wasn't that bad, but it
> wasn't seamless.
>
> -larry
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Git migration

2012-05-03 Thread Larry Martell
On Thu, May 3, 2012 at 9:42 PM, Stanwin Siow  wrote:
> Hello there,
>
> Just wanted to enquire about a project that i have been working on.
>
> It was previously hosted on an svn repository however my supervisor then
> decided to migrate it to GIT.
>
> my question here would be do i need to reinstall the external modules that i
> used in my django project like django-registration and django-paypal in GIT?
>
> Or would the functionalities be the same?
>
> I'm asking this is because i discovered a break in the program after the
> migration.
>
> Any help or advice is appreciated.
>
> Thanks in advance!

This may or may not be applicable to your situation. We had be using
django from SVN with  -r 13034. When we switched to django from git,
version 1.2 worked, but 1.4 did not. We had to make quite a few
changes to get 1. 4 to work. In the end it wasn't that bad, but it
wasn't seamless.

-larry

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Git migration

2012-05-03 Thread Stanwin Siow
Hello there,

Just wanted to enquire about a project that i have been working on.

It was previously hosted on an svn repository however my supervisor then 
decided to migrate it to GIT.

my question here would be do i need to reinstall the external modules that i 
used in my django project like django-registration and django-paypal in GIT?

Or would the functionalities be the same?

I'm asking this is because i discovered a break in the program after the 
migration.

Any help or advice is appreciated.

Thanks in advance!



Best Regards,

Stanwin Siow



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Why does django use mysqldb over mysql-connector?

2012-05-03 Thread Steve McConville
> Has this happened by default or by design?  Is mysqldb really that much
> faster, or featureful, or just because it's more common?

>From http://forge.mysql.com/projects/project.php?id=302

"Development Status: Early (Pre-Alpha)"

-- 
steve

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Why does django use mysqldb over mysql-connector?

2012-05-03 Thread john2095
I've just been through a slice of hell simply because I did not want to 
install mysql-server on my (osx) django development machine - my app 
connects to a remote mysql database.  It turns out that python's "mysqldb" 
depends on mysql binaries which are only packaged up with the server 
release.  This means that if you want to run django and connect to a remote 
mysql you still need to install mysqlserver locally.  I think that 
blows. Especially when there is a purely python mysql driver in 
"mysql-connector".

Has this happened by default or by design?  Is mysqldb really that much 
faster, or featureful, or just because it's more common?

Is anyone working on a pure python solution (mysql-connector) database 
backend? Is there one already?

thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/eyGNf1RsLEsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



RE: help with "Key 'timeout' not found in "

2012-05-03 Thread Kurtis Mullins
ahh, okay. Let’s try another approach to see if you can nail down that
error. I’m not sure why it’s not working.

def reserve(request, park_id):

# Get the User
# This is different than the method you’re using
# but I think it may be what you want.

user = self.request.user

# Grab that Notification and Park
# In your method, you were throwing a 404 error. I’m
# not sure if that’s what you’re actually after (page not found)
# or if you’d rather give a server error because the user attempted
# to use a notification or park that didn’t exist.

# Also, I’m a bit confused by the variable names, haha. I’d think the
Park
# object would take the park_id and the Notification object would use
# something else.

notification = Notification.objects.get(pk = park_id)
park = Park.objects.get(pk = 1)

# This will check to see if that POST Variable is available.
if ’timeout’ is in request.POST:

# Grab the Timeout Variable
timeout = int(request.POST[’timeout’])

# Let’s build the Reservation object piece by piece to see what the
problem is.
reservation = Reservation.objects.create()
reservation.user = user
# 
reservation.notification = notification
reservation.timeout = timeout
# ...
reservation.save()

return HttpResponse(...)

# This is the error case where the timeout wasn’t POST'ed.
else:
raise Exception(”The timeout variable wasn’t posted.”)

This time, you should see exactly where that error is popping up. Also,
ModelForm + CreateView would be a great an easy combination for this exact
situation.

Good luck!
-Kurtis Mullins

 *From:* psychok7 
*Sent:* Thursday, May 03, 2012 4:47:56 PM
*To:* django-users@googlegroups.com
*Subject:* Re: help with "Key 'timeout' not found in "

timeout field is just an INTEGER.. just saying the amount of time the space
will be reserved.



class Reservation(models.Model):user = models.ForeignKey(User)
   park = models.ForeignKey(Park)notification =
models.ForeignKey(Notification)timeout = models.IntegerField()
active = models.BooleanField()parked = models.BooleanField()
reservation_date = models.DateTimeField('date reserved')


On Thursday, May 3, 2012 11:58:19 PM UTC+1, Kurtis wrote:
>
> Can we see what your "Reservation" model looks like? Specifically, that
> 'timeout' field?
>
>
> hi i have done a succefull query and i converted the results into links so
>> i can make a post by clicking on the links to make a reservation.
>>
>> my problem is, theres a variable timeout that i want to specify manually,
>> but i get a "Key 'timeout' not found in "
>>
>>
>> i know i am supposed to pass that variable but i just dont know how.
>>
>>
>> my code is :
>>
>>
>> def reserve (request,user_id,park_id):
>> #only works if the user exists in database
>> u = get_object_or_404(User, pk=user_id)
>> n = get_object_or_404(**Notification, pk=park_id)
>> p = get_object_or_404(Park, pk=1)
>> r = Reservation(user=u ,notification=n, park=p,
>> timeout=int(request.POST['**timeout']),active=True,parked=**
>> False,reservation_date=**datetime.now())
>> r.save()
>> return HttpResponse('Spot reserved')
>>
>>
>> html:
>>
>>
>> {% if parks %} You searched for: {{ query }}
>> Found {{ parks|length }} park{{ parks|pluralize }}.  {% for park
>> in parks %} 
>> {{
>> park.park_address }} {% endfor %}  {% endif %}
>>
>>
>> can someone help me?
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit https://groups.google.com/d/**
>> msg/django-users/-/**iTBJptqGhyoJ
>> .
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to django-users+unsubscribe@**
>> googlegroups.com .
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en
>> .
>>
>
>
-- 
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/KGbfHKRKmrYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Mike Dewhirst
I don't know what the entry level contracting rate is in Australia but I 
would guess AUD$4,000 per month pre-tax. Competent developers can 
usually get $6k to $8k per month or more if they do short term contracting.


That is expensive and hurts startups unless sweat-equity is involved.

Mike

On 3/05/2012 8:31pm, Cal Leeming [Simplicity Media Ltd] wrote:

Hi,

Just my two cents worth on this (albeit slightly off topic) - it's not 
all about technical ability or the industry you are working in.


Most clients are willing to pay that extra premium for contractors who 
are able to manage expectations and go above and beyond.


I've seen many great developers with amazing skills go unnoticed, 
primarily because they don't know how to handle clients, clear and 
concise communication plays a huge part in pricing.


The other problem is that the market is flooded with charlatans, who 
are driving the prices up and make it even more diluted for the rest 
of us.


You also have to remember that many people don't factor in project 
management and sales/phone calls into the hourly rate - they simply 
absorb the costs - which further drives it down.


Cut a long story short though, I personally think that around 
£1700/month after tax is the 'sweet spot' for any developer (assuming 
you're not in the city). Anything beyond that is a bonus :)


Cal


On Thu, May 3, 2012 at 8:00 AM, Raphael > wrote:


Hello Kurtis,

thank you for letting is know about C. Lemmings post, we are going
to use all the information we are able to grab.
Got project data via email - but anyway till now its far not enough.

http://develissimo.com/forum/topic/107887/

Kind regards,
Raphael



On Tue, 2012-05-01 at 10:44 -0400, Kurtis Mullins wrote:
Raphael, 



According to another topic -- some developers are being paid
roughly $20/hour. It's under a post by Cal Lemmings where he is
trying to hire some entry level developer(s). You might be able
to use that information as well. I just thought I'd let you know.

On Mon, Apr 30, 2012 at 4:24 PM, Raphael
> wrote: 


Dear djangos,

if you want to hand-in your data anonymously - just send us
an email to django[at]develissimo.com 
we really need more data to achieve some meaningful results.

http://develissimo.com/forum/topic/107887/

Cheers,
Raphael



-- 
You received this message because you are subscribed to the

Google Groups "Django users" group.
To post to this group, send email to
django-users@googlegroups.com
.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.




-- 
You received this message because you are subscribed to the

Google Groups "Django users" group.
To post to this group, send email to
django-users@googlegroups.com .
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en. 
-- 
You received this message because you are subscribed to the Google

Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google 
Groups "Django users" group.

To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: help with "Key 'timeout' not found in "

2012-05-03 Thread psychok7
timeout field is just an INTEGER.. just saying the amount of time the space 
will be reserved.

class Reservation(models.Model):user = models.ForeignKey(User)park 
= models.ForeignKey(Park)notification = models.ForeignKey(Notification)
timeout = models.IntegerField()active = models.BooleanField()parked = 
models.BooleanField()reservation_date = models.DateTimeField('date 
reserved')


On Thursday, May 3, 2012 11:58:19 PM UTC+1, Kurtis wrote:
>
> Can we see what your "Reservation" model looks like? Specifically, that 
> 'timeout' field?
>
>
> hi i have done a succefull query and i converted the results into links so 
>> i can make a post by clicking on the links to make a reservation.
>>
>> my problem is, theres a variable timeout that i want to specify manually, 
>> but i get a "Key 'timeout' not found in "
>>
>> i know i am supposed to pass that variable but i just dont know how.
>>
>> my code is : 
>>
>> def reserve (request,user_id,park_id):
>> #only works if the user exists in database
>> u = get_object_or_404(User, pk=user_id)
>> n = get_object_or_404(Notification, pk=park_id)
>> p = get_object_or_404(Park, pk=1)
>> r = Reservation(user=u ,notification=n, park=p, 
>> timeout=int(request.POST['timeout']),active=True,parked=False,reservation_date=datetime.now())
>> r.save()
>> return HttpResponse('Spot reserved')
>>
>> html: 
>>
>> {% if parks %} You searched for: {{ query }} 
>> Found {{ parks|length }} park{{ parks|pluralize }}.  {% for park 
>> in parks %}  
>> {{ 
>> park.park_address }} {% endfor %}  {% endif %}
>>
>> can someone help me?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/iTBJptqGhyoJ.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/KGbfHKRKmrYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: users and groups management without admin site??

2012-05-03 Thread William Ibarra Rodriguez
maybe using django.contrib.admin or django.contrib.auth i can do that,
but i don´t have any start point, so if have any thought please share
it.
i want to use the options that django provide(for example the
password_change and the login or logout),i dont want to rewrite code
because i don´t have so much time to the development of the project.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: help with "Key 'timeout' not found in "

2012-05-03 Thread Kurtis Mullins
Can we see what your "Reservation" model looks like? Specifically, that
'timeout' field?

On Thu, May 3, 2012 at 6:22 PM, psychok7  wrote:

> hi i have done a succefull query and i converted the results into links so
> i can make a post by clicking on the links to make a reservation.
>
> my problem is, theres a variable timeout that i want to specify manually,
> but i get a "Key 'timeout' not found in "
>
> i know i am supposed to pass that variable but i just dont know how.
>
> my code is :
>
> def reserve (request,user_id,park_id):
> #only works if the user exists in database
> u = get_object_or_404(User, pk=user_id)
> n = get_object_or_404(Notification, pk=park_id)
> p = get_object_or_404(Park, pk=1)
> r = Reservation(user=u ,notification=n, park=p,
> timeout=int(request.POST['timeout']),active=True,parked=False,reservation_date=datetime.now())
> r.save()
> return HttpResponse('Spot reserved')
>
> html:
>
> {% if parks %} You searched for: {{ query }}
> Found {{ parks|length }} park{{ parks|pluralize }}.  {% for park
> in parks %} 
> {{
> park.park_address }} {% endfor %}  {% endif %}
>
> can someone help me?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/iTBJptqGhyoJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [help] Server Config: django + uwsgi + nginx

2012-05-03 Thread easypie
yes. i believe it's 'ln -s /etc/nginx/sites-available/mysite.com 
/etc/nginx/sites-enabled/mysite.com'

On Thursday, May 3, 2012 2:40:35 PM UTC-7, Karl Sutt wrote:
>
> Have you symlinked /etc/nginx/sites-available/mysite.comto 
> /etc/nginx/sites-enabled/
> mysite.com ?
>
> Karl Sutt
>
>
> On Thu, May 3, 2012 at 10:23 PM, easypie  wrote:
>
>> I'm not sure if I should post this in this thread of mine or start new 
>> one. But it's still about the config files.
>>
>> After getting uwsgi to work. I tried to link nginx w/ it but that didn't 
>> work. I go to localhost:80 and that takes me to the welcome page: "Welcome 
>> to Nginx!". When I go to localhost:8000 (which I want), it doesn't load 
>> (unable to connect). Please take a look at the code: 
>> http://dpaste.org/oIjP9/
>>
>>
>> On Thursday, May 3, 2012 10:22:54 AM UTC-7, Kurtis wrote:
>>>
>>> Hey, I'm glad to hear you got it working! If you run into any more 
>>> problems, don't hesitate to ask.
>>>
>>> On Wed, May 2, 2012 at 1:31 AM, easypie  wrote:
>>>
 Thanks. I was missing the virtualenv= mentions earlier. I'm glad 
 I know this those settings are meant for development only. I was a little 
 confused thinking that was ready for deployment. I'm new to all this and 
 get confuse sometimes.


 On Tuesday, May 1, 2012 8:04:00 AM UTC-7, Kurtis wrote:
>
> Judging from your Import Error -- I think you're having a problem with 
> Django not being on the Python path. In my uwsgi configuration file (I 
> used 
> .xml), it looks like this:
>
> 
> 
> DJANGO_SETTINGS_MODULE=**fi**reflie.settings
> 4
> 0.0.0.0:7999
>  /home/fireflie/staging/fireflie/
> django.core.handlers.**w**sgi:WSGIHandler()
> /home/fireflie/**sta**ging/fireflie/
> /home/fireflie/**sta**ging/
> /var/log/uwsgi/**uwsg**i.log
> /tmp/fireflie-**staging**.pid
>  
>
> Note: That's not guaranteed to be production-ready (we're just using 
> it for development) and I'm also not using a virtual environment (we use 
> a 
> whole sever for the single Django application). In other words, I'm not 
> following best practices by a large margin. Good luck!
>
>
> On Mon, Apr 30, 2012 at 7:36 PM, Karl Sutt  wrote:
>
>> I am not entirely sure what you mean by that. If you mean the nginx 
>> equivalent of Apache VirtualHosts then the nginx wiki explains it quite 
>> nicely 
>> http://wiki.nginx.org/**S**erverBlockExample.
>>  
>> Is that what you meant?
>>
>> Karl Sutt
>>
>>
>>
>> On Mon, Apr 30, 2012 at 7:04 PM, easypie wrote:
>>
>>> does your configuration allow for running multiple sites?
>>>
>>>
>>> On Sunday, April 29, 2012 12:01:27 PM UTC-7, Karl Sutt wrote:

 Here is my uWSGI command and nginx.conf contents:

 uwsgi -- 
 http://www.dpaste.org/**aiJuq/
 nginx -- 
 http://www.dpaste.org/**bAG0o/

 I've used it for a Flask application, but I've just tested it and 
 it works for a Django project as well. Note that wsgi.py file in the 
 uwsgi 
 command is the Python file that Django generates when you first create 
 a 
 project, there is no need to change it.

 Good luck!

 Karl Sutt


 On Sun, Apr 29, 2012 at 6:49 PM, easypie wrote:

> I have this file that was created for me by one of the users in 
> django's irc channel. I edited to have the right information inserted 
> but 
> I"m not sure what I'm doing wrong to not make it work. I've spent 
> some time 
> trying to understand each line by searching the web. There's still a 
> thing 
> or two that's missing from the puzzle. Maybe it's the server config 
> that 
> has a flaw or the way I went about it. I haven't done a fresh install 
> of 
> uwsgi and nginx yet. However, please take a look to see if there's an 
> error 
> or solution that could work. Thanks.
>
> Link to code: 
> http://www.dpaste.org/**wWVd3/
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/**msg/django-users/-/**
> 2rekHP0I6V0J
> .
> To post to this group, send email to django-users@googlegroups.com
> .
> To 

help with "Key 'timeout' not found in "

2012-05-03 Thread psychok7
hi i have done a succefull query and i converted the results into links so 
i can make a post by clicking on the links to make a reservation.

my problem is, theres a variable timeout that i want to specify manually, 
but i get a "Key 'timeout' not found in "

i know i am supposed to pass that variable but i just dont know how.

my code is : 

def reserve (request,user_id,park_id):
#only works if the user exists in database
u = get_object_or_404(User, pk=user_id)
n = get_object_or_404(Notification, pk=park_id)
p = get_object_or_404(Park, pk=1)
r = Reservation(user=u ,notification=n, park=p, 
timeout=int(request.POST['timeout']),active=True,parked=False,reservation_date=datetime.now())
r.save()
return HttpResponse('Spot reserved')

html: 

{% if parks %} You searched for: {{ query }} 
Found {{ parks|length }} park{{ parks|pluralize }}.  {% for park 
in parks %}  
{{ 
park.park_address }} {% endfor %}  {% endif %}

can someone help me?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/iTBJptqGhyoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Raphael
I already like the discussion and I think over time we really will be
able to grab some useful data.
@ Kurtis
"As for the $2800/month being a great starting wage for a web developer
-- I sure hope they don't have kids :)"

Well Kurtis, 
now we are at the region specific details.

2800$/month in the US is as you say, if you have kids not the best
starting point.
2800$/month in Europe/Austria, which is about 2100€/mo is not that bad
even with kids, because AFTER tax means, that 
you do not have to pay further bills on things such as health insurance
coverage,... because this is already included in the taxes by duty.
Not so in the USA - as far as i know, the social insurance in the US is
keeping a big part of the decision what to pay and how much in private
hands, with the known
advantages and disadvantages of that kind of system.

So 2800$/month (after tax) in Europe/Austria is a good start for a
web-engineer.
while 2800$/month (after tax) in the US is not a great deal, because
people in the US have to pay health insurance, school fees etc... extra,
those things are already included in taxes in most European countries
and compared to the US kind of "free".

We give our best to respect all those little region specific differences
in the end summary of the "hourly rates - report".
http://develissimo.com/forum/topic/107887/

Kind regards,
Raphael


On Thu, 2012-05-03 at 15:30 -0400, Kurtis Mullins wrote:

> Another variable in the equation is that independent developers do not
> have a guaranteed job every day. You have to compensate for that
> difference. So, for example, if I were to take on a project that might
> last two weeks -- I need to make up that other two weeks unless I have
> another job waiting on me. On the other hand, if someone offers me a
> 6-month contract -- then I'm happy taking a bit less because I know
> the money will be coming in for the duration. Regardless, I know what
> I need to make each month to survive and try to charge accordingly. I
> imagine others might follow the same approach.
> 
> 
> 
> As for the $2800/month being a great starting wage for a web developer
> -- I sure hope they don't have kids :)
> 
> 
> On Thu, May 3, 2012 at 11:50 AM, Daniel Sokolowski
>  wrote:
> 
> >>A plumber is mostly manual labour which will take a toll on
> the body over the years.
> 
> >>I've seen quite a few people making these comparisons to
> manual labour jobs and, in my opinion, they are completely
> irrelevant.
> 
> >>A plumber also has travel costs, fuel, cost in lost time
> travelling, covering free quotations etc.
>  
> They are absolutely relevant, an expert spends time and money
> to improve his or her skills – continually -- be it a plumber
> or a programmer it's no difference if it’s manual or mental
> labour. I don’t know if you are attempting to prove a point
> against good rates for django developers or simply stating
> your opinion; I will assume the latter.
>  
>  
> From: Cal Leeming [Simplicity Media Ltd] 
> Sent: Thursday, May 03, 2012 11:26 AM
> To: django-users@googlegroups.com 
> Subject: Re: Django - Worldwide Developer Rates - Hourly
> Income - location and project duration specific
>  
> 
> 
> 
> On Thu, May 3, 2012 at 2:47 PM, Daniel Sokolowski
>  wrote:
> 
> Did the math here and that works out to about
> $2700/month. I would say that would be the bare
> minimum considering my NOT lavish life style - family,
> house, car etc.
>  
> It completely depends on the cost of living in your
> country/area/circumstances. 
>  
> Perhaps sweet spot was the wrong choice of words, as I meant
> for it to mean "typical minimum" take home salary every month.
>  
> Furthermore these 'charlatans' driving the price up is
> a GREAT thing because talent and skill is not cheap  -
> these people know what they are worth and charge
> accordingly - sure some are better sales people then
> programmers.
>  
> 
> Time and time again I am reminded that anyone can call
> themselves a web designer - but only a few can do what
> we can - that I am a web engineer.
> 
> Django strengths lies in customization and ability to
> deliver exactly when the client wants while saving us
> some a small amount of time on the basics, it's easy
> to put up a pretty $15 dollar template based static
> site - damn I had clients thinking they were good web
>   

Re: 404 errors reported as 500 errors

2012-05-03 Thread James Hargreaves
Thanks for your reply Kurtis.

They are sym-links. I have tried with a plain HTML file too but to no avail.

So far as I know when Django CMS cannot match the URL it throws an Http404
error as you would expect. Indeed that is what I am seeing when I set DEBUG
= True in settings.

I assume that there is an error occurring somewhere which is causing the
500 error - maybe middleware is throwing this?

Any ideas would be appreciated but I suspect I need to enable logging and
recreate the exception to see what the cause is...

On 3 May 2012 21:41, Kurtis Mullins  wrote:

> Are those symlinks? It might be worth seeing if that's part of the problem
> (although doubtful that it would be).
> If that's not the problem, does Django-CMS have its own specialized 404
> handling? I've never used it but it's a couple of ideas to try out.
>
>
> On Thu, May 3, 2012 at 10:03 AM, James Hargreaves <
> james.hargrea...@gmail.com> wrote:
>
>> Hello,
>>
>> I have created a website using Django CMS:
>>
>> http://www.trailer-traders.co.**uk 
>>
>> When I visit a URL on this site that does not exist in Django CMS I get a
>> 500 error - eg:
>>
>> http://www.trailer-traders.co.**uk/xxx
>>
>> I was expecting a 404 error. Before you say it I don't think this is
>> caused by Django CMS since if I set DEBUG = TRUE in settings.py I get a
>> page not found (404) error as expected. I have the following static files
>> in my template directory:
>>
>> lrwxrwxrwx 1 jay www-data   **10 Apr 11 06:40 403.html -> **error.html
>> lrwxrwxrwx 1 jay www-data   **10 May  3 09:24 404.html -> **error.html
>> lrwxrwxrwx 1 jay www-data   **10 Apr 11 06:40 500.html -> **error.html
>> -rw-r- 1 jay www-data  **863 Apr 11 20:53 error.html   **
>>   **  **
>>
>>
>> The contents of error.html file is output with the 500 error, which
>> implies that the 500.html symbolic link is working. Why is the 404.html
>> file being ignored? I have tried replacing the symbolic link with a static
>> file but to no avail.
>>
>> Unfortunately I don't have logging enabled for this site - I'm going to
>> rectify that ASAP but in the meantime can anyone point me in the right
>> direction?
>>
>> Thanks
>> James
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/2XzRNeRyrvMJ.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
a: 1 Oak Cottage, Town Lane, Mobberley, WA16 7HJ
t: 01565 873 019 | 07899 872 306
e: james.hargrea...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [help] Server Config: django + uwsgi + nginx

2012-05-03 Thread Karl Sutt
Have you symlinked /etc/nginx/sites-available/mysite.comto
/etc/nginx/sites-enabled/
mysite.com ?

Karl Sutt


On Thu, May 3, 2012 at 10:23 PM, easypie  wrote:

> I'm not sure if I should post this in this thread of mine or start new
> one. But it's still about the config files.
>
> After getting uwsgi to work. I tried to link nginx w/ it but that didn't
> work. I go to localhost:80 and that takes me to the welcome page: "Welcome
> to Nginx!". When I go to localhost:8000 (which I want), it doesn't load
> (unable to connect). Please take a look at the code:
> http://dpaste.org/oIjP9/
>
>
> On Thursday, May 3, 2012 10:22:54 AM UTC-7, Kurtis wrote:
>>
>> Hey, I'm glad to hear you got it working! If you run into any more
>> problems, don't hesitate to ask.
>>
>> On Wed, May 2, 2012 at 1:31 AM, easypie  wrote:
>>
>>> Thanks. I was missing the virtualenv= mentions earlier. I'm glad I
>>> know this those settings are meant for development only. I was a little
>>> confused thinking that was ready for deployment. I'm new to all this and
>>> get confuse sometimes.
>>>
>>>
>>> On Tuesday, May 1, 2012 8:04:00 AM UTC-7, Kurtis wrote:

 Judging from your Import Error -- I think you're having a problem with
 Django not being on the Python path. In my uwsgi configuration file (I used
 .xml), it looks like this:

 
 
 DJANGO_SETTINGS_MODULE=**fi**reflie.settings
 4
 0.0.0.0:7999
  /home/fireflie/staging/fireflie/
 django.core.handlers.**w**sgi:WSGIHandler()
 /home/fireflie/**sta**ging/fireflie/
 /home/fireflie/**sta**ging/
 /var/log/uwsgi/**uwsg**i.log
 /tmp/fireflie-**staging**.pid
  

 Note: That's not guaranteed to be production-ready (we're just using it
 for development) and I'm also not using a virtual environment (we use a
 whole sever for the single Django application). In other words, I'm not
 following best practices by a large margin. Good luck!


 On Mon, Apr 30, 2012 at 7:36 PM, Karl Sutt  wrote:

> I am not entirely sure what you mean by that. If you mean the nginx
> equivalent of Apache VirtualHosts then the nginx wiki explains it quite
> nicely 
> http://wiki.nginx.org/**S**erverBlockExample.
> Is that what you meant?
>
> Karl Sutt
>
>
>
> On Mon, Apr 30, 2012 at 7:04 PM, easypie  wrote:
>
>> does your configuration allow for running multiple sites?
>>
>>
>> On Sunday, April 29, 2012 12:01:27 PM UTC-7, Karl Sutt wrote:
>>>
>>> Here is my uWSGI command and nginx.conf contents:
>>>
>>> uwsgi -- 
>>> http://www.dpaste.org/**aiJuq/
>>> nginx -- 
>>> http://www.dpaste.org/**bAG0o/
>>>
>>> I've used it for a Flask application, but I've just tested it and it
>>> works for a Django project as well. Note that wsgi.py file in the uwsgi
>>> command is the Python file that Django generates when you first create a
>>> project, there is no need to change it.
>>>
>>> Good luck!
>>>
>>> Karl Sutt
>>>
>>>
>>> On Sun, Apr 29, 2012 at 6:49 PM, easypie wrote:
>>>
 I have this file that was created for me by one of the users in
 django's irc channel. I edited to have the right information inserted 
 but
 I"m not sure what I'm doing wrong to not make it work. I've spent some 
 time
 trying to understand each line by searching the web. There's still a 
 thing
 or two that's missing from the puzzle. Maybe it's the server config 
 that
 has a flaw or the way I went about it. I haven't done a fresh install 
 of
 uwsgi and nginx yet. However, please take a look to see if there's an 
 error
 or solution that could work. Thanks.

 Link to code: 
 http://www.dpaste.org/**wWVd3/

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To view this discussion on the web visit
 https://groups.google.com/d/**msg/django-users/-/**2rekHP0I6V0J
 .
 To post to this group, send email to django-users@googlegroups.com.
 To unsubscribe from this group, send email to
 django-users+unsubscribe@**googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/django-users?hl=en
 .

>>>
>>>  --
>> You received this 

Re: Access specific ModelForm field option within array of ModelForms for use with .js

2012-05-03 Thread jondykeman
You're right! 

Thank you.

I have a custom template filter in the app to format the radio options a 
certain way and I can just add this in to pick out the ones needing the 
additional onChange.

JD


On Tuesday, May 1, 2012 9:27:01 PM UTC-6, jondykeman wrote:
>
> Hello, 
>
> I have the following situation:
>
> I am rendering an array of ModelForms to my template. ie. formArray = 
> [, , ]
>
> In the template I display the forms with the following:
>
> {% for form in formArray %}
> 
> {{ form }}
> 
> {% endfor %}
>
> Previously I have accessed certain ModelForms using {% if forloop.counter 
> == # %} to add some customization.
>
> However, now I would like more detailed control of certain field tags 
> within a given ModelForm. ie. ModelForm2 is a RadioSelect, and I would like 
> to add an onChange="some function" to one of the Radio Buttons within this 
> ModelForm. 
>
> Is there a way to access this specific field in my implementation 
> directly? Or, through the use of a custom template filter?
>
> To give the larger picture my goal is to have an "Other" RadioButton that 
> when selected shows a Other text input using javascript, but while using 
> ModelForms.
>
> As such, if there is an entirely different way to going about this I would 
> love to hear it. 
>
> Any help would be greatly appreciated!
>
>
> JD
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/R26wVKtkf1YJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [help] Server Config: django + uwsgi + nginx

2012-05-03 Thread easypie
I'm not sure if I should post this in this thread of mine or start new one. 
But it's still about the config files.

After getting uwsgi to work. I tried to link nginx w/ it but that didn't 
work. I go to localhost:80 and that takes me to the welcome page: "Welcome 
to Nginx!". When I go to localhost:8000 (which I want), it doesn't load 
(unable to connect). Please take a look at the 
code: http://dpaste.org/oIjP9/


On Thursday, May 3, 2012 10:22:54 AM UTC-7, Kurtis wrote:
>
> Hey, I'm glad to hear you got it working! If you run into any more 
> problems, don't hesitate to ask.
>
> On Wed, May 2, 2012 at 1:31 AM, easypie  wrote:
>
>> Thanks. I was missing the virtualenv= mentions earlier. I'm glad I 
>> know this those settings are meant for development only. I was a little 
>> confused thinking that was ready for deployment. I'm new to all this and 
>> get confuse sometimes.
>>
>>
>> On Tuesday, May 1, 2012 8:04:00 AM UTC-7, Kurtis wrote:
>>>
>>> Judging from your Import Error -- I think you're having a problem with 
>>> Django not being on the Python path. In my uwsgi configuration file (I used 
>>> .xml), it looks like this:
>>>
>>> 
>>> 
>>> DJANGO_SETTINGS_MODULE=**fireflie.settings
>>> 4
>>> 0.0.0.0:7999
>>>  /home/fireflie/staging/**fireflie/
>>> django.core.handlers.**wsgi:WSGIHandler()
>>> /home/fireflie/**staging/fireflie/
>>> /home/fireflie/**staging/
>>> /var/log/uwsgi/**uwsgi.log
>>> /tmp/fireflie-**staging.pid
>>>  
>>>
>>> Note: That's not guaranteed to be production-ready (we're just using it 
>>> for development) and I'm also not using a virtual environment (we use a 
>>> whole sever for the single Django application). In other words, I'm not 
>>> following best practices by a large margin. Good luck!
>>>
>>>
>>> On Mon, Apr 30, 2012 at 7:36 PM, Karl Sutt  wrote:
>>>
 I am not entirely sure what you mean by that. If you mean the nginx 
 equivalent of Apache VirtualHosts then the nginx wiki explains it quite 
 nicely 
 http://wiki.nginx.org/**ServerBlockExample.
  
 Is that what you meant?

 Karl Sutt



 On Mon, Apr 30, 2012 at 7:04 PM, easypie  wrote:

> does your configuration allow for running multiple sites?
>
>
> On Sunday, April 29, 2012 12:01:27 PM UTC-7, Karl Sutt wrote:
>>
>> Here is my uWSGI command and nginx.conf contents:
>>
>> uwsgi -- http://www.dpaste.org/**aiJuq**/
>> nginx -- http://www.dpaste.org/**bAG0o**/
>>
>> I've used it for a Flask application, but I've just tested it and it 
>> works for a Django project as well. Note that wsgi.py file in the uwsgi 
>> command is the Python file that Django generates when you first create a 
>> project, there is no need to change it.
>>
>> Good luck!
>>
>> Karl Sutt
>>
>>
>> On Sun, Apr 29, 2012 at 6:49 PM, easypie wrote:
>>
>>> I have this file that was created for me by one of the users in 
>>> django's irc channel. I edited to have the right information inserted 
>>> but 
>>> I"m not sure what I'm doing wrong to not make it work. I've spent some 
>>> time 
>>> trying to understand each line by searching the web. There's still a 
>>> thing 
>>> or two that's missing from the puzzle. Maybe it's the server config 
>>> that 
>>> has a flaw or the way I went about it. I haven't done a fresh install 
>>> of 
>>> uwsgi and nginx yet. However, please take a look to see if there's an 
>>> error 
>>> or solution that could work. Thanks.
>>>
>>> Link to code: 
>>> http://www.dpaste.org/**wW**Vd3/
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/**ms**g/django-users/-/**2rekHP0I6V0J
>>> .
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> django-users+unsubscribe@**googl**egroups.com
>>> .
>>> For more options, visit this group at http://groups.google.com/**
>>> group**/django-users?hl=en
>>> .
>>>
>>
>>  -- 
> You received this message because you are subscribed to the Google 
> Groups "Django users" group.
> To view this discussion on the web visit https://groups.google.com/d/*
> *msg/django-users/-/**sMsRN5iG9NQJ
> .
>
> To post to this group, send email to 

Re: 404 errors reported as 500 errors

2012-05-03 Thread Kurtis Mullins
Are those symlinks? It might be worth seeing if that's part of the problem
(although doubtful that it would be).
If that's not the problem, does Django-CMS have its own specialized 404
handling? I've never used it but it's a couple of ideas to try out.

On Thu, May 3, 2012 at 10:03 AM, James Hargreaves <
james.hargrea...@gmail.com> wrote:

> Hello,
>
> I have created a website using Django CMS:
>
> http://www.trailer-traders.co.**uk 
>
> When I visit a URL on this site that does not exist in Django CMS I get a
> 500 error - eg:
>
> http://www.trailer-traders.co.**uk/xxx
>
> I was expecting a 404 error. Before you say it I don't think this is
> caused by Django CMS since if I set DEBUG = TRUE in settings.py I get a
> page not found (404) error as expected. I have the following static files
> in my template directory:
>
> lrwxrwxrwx 1 jay www-data   **10 Apr 11 06:40 403.html -> **error.html
> lrwxrwxrwx 1 jay www-data   **10 May  3 09:24 404.html -> **error.html
> lrwxrwxrwx 1 jay www-data   **10 Apr 11 06:40 500.html -> **error.html
> -rw-r- 1 jay www-data  **863 Apr 11 20:53 error.html   ** 
>  **  **
>
>
> The contents of error.html file is output with the 500 error, which
> implies that the 500.html symbolic link is working. Why is the 404.html
> file being ignored? I have tried replacing the symbolic link with a static
> file but to no avail.
>
> Unfortunately I don't have logging enabled for this site - I'm going to
> rectify that ASAP but in the meantime can anyone point me in the right
> direction?
>
> Thanks
> James
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/2XzRNeRyrvMJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: users and groups management without admin site??

2012-05-03 Thread Kurtis Mullins
Awesome. Well, I'm not sure how familiar you are with Django but I'd just
create views for the different functionality (for example, creating a new
user). There's nothing the admin does that you can't do yourself. If you
run into a specific problem, feel free to ask!

On Thu, May 3, 2012 at 4:10 PM, William Ibarra Rodriguez <
legolas...@gmail.com> wrote:

> i need manage the users and groups in the same way that admin site
> does, but i won't use the admin site, i need web-based interface
> inside my project to do that.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Dajaxice is not defined!!! please heelpppp!! :(

2012-05-03 Thread Kurtis
Hmm, Yeah I'm not sure why their object isn't loading. I haven't used 
Dajaxice, myself.

Anyways, I posted an easy solution to performing JQuery AJAX POSTs in 
another thread. I'm hoping this link will work.  
https://groups.google.com/forum/?hl=en#!topic/django-users/xBgm4p1COAA
 

In the "success" function, there is a variable passed called "data". That 
will be the actual content sent from the server to the browser. You can 
apply similar methods to using $.get() as well. Just make sure you pass 
that {% csrf_token %} value when doing any AJAX Requests.

If you're still running into problems, feel free to post some code on what 
you're trying to achieve at dpaste.com (or somewhere similar).

Good luck!

On Thursday, May 3, 2012 4:05:55 PM UTC-4, doniyor wrote:
>
> hey, 
> i did what you told me. i put the dajaxice.core.js in one nude html file, 
> where i dont have other js files almost, then i opened the js console and i 
> have done the input "Dajaxice", then it stil says there, 
>
> ReferenceError: Dajaxice is not defined
>
>
> Dajaxice
>
>
> look, i hope, i am taking the up-to-date dajaxice.core.js file, since it 
> is from the official dajaxproject site.. i have both dajaxice and dajax 
> also in my settings.py. i took it out and tested, error message, so it 
> means, it was right in settings.py. i am now thinking about using only 
> jquery-ajax to get the work done. is it possible in this way? i can get the 
> form values sent by jquery in my view without loading the page, this is 
> actually what i wanted to do with dajax. is it a good go-around for the 
> problem? 
>
> thanks 
>
>
>
> Am Donnerstag, 3. Mai 2012 21:04:33 UTC+2 schrieb Kurtis:
>>
>> Hey,
>>
>> Try taking a practically-empty HTML page that only includes that 
>> dajaxice.core.js file. Open up Firebug or some other Javascript console and 
>> type in "Dajaxice;" to see if you get the same error. This definitely 
>> sounds like a javascript problem since you're getting a "Dajaxice is not 
>> defined" error.
>>
>> As far as the other problem (Missing file), read up the docs on serving 
>> Static Media with the Django runserver. You need to make sure dajax is 
>> included in your settings.py as an application. That's most likely a whole 
>> different problem from the "Dajaxice is not defined" issue.
>>
>> On Thu, May 3, 2012 at 2:01 PM, doniyor wrote:
>>
>>> Hi There, i need really your help 
>>>
>>> i have been having this problem since 3 days.. it is really annoying me, 
>>> i dont know why it is happening. The Problem is: 
>>>
>>> i am trying to use dajax in my page and i followed all steps several 
>>> times as given hier: http://dajaxproject.com/
>>>
>>> but once i click on onclick="Dajaxice.home.**randomize(Dajax.process), 
>>> nothing is happening and i saw in console of firefox, there it says, 
>>> "Dajaxice is not defined". but i included the {% dajaxice_js_import %} in 
>>> the head, and even i linked the dajaxice.core.js file statically from my 
>>> STATIC_URL. but it still says the same error. how can i go around this 
>>> problem? is there any way of getting this work? 
>>>
>>> when i link this {% dajaxice_js_import %} in the head, it says the error 
>>> in console: *"NetworkError: 500 INTERNAL SERVER ERROR-
>>> http://127.0.0.1:8000/dajaxice/dajaxice.core.js"*  
>>> when i delete this  {% dajaxice_js_import %} and serve statically from 
>>> dajaxice.core.js file from STATIC_URL, it shows nothing in console, but 
>>> once i click on onlick event, it says: *Dajaxice is not defined*
>>> *
>>> *
>>> {% dajaxice_js_import %} this will look for dajaxice.core.js in dajaxice 
>>> folder in site-packages, right? the file is there, why it cannot find the 
>>> Dajaxice object? 
>>>
>>> thanks for help in advance, 
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/django-users/-/UGUTBZj9O_4J.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/UdsIEbh40lMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Short I hope explanation

2012-05-03 Thread Gerald Klein
Thanks for shout out. And I will move on to them, but I like to understand
things the hard way first. I think it gives a strong foundation when you
finally do move on to the time saver things. The thing is as I understand
it, is that there are times that you will need to do things long hand. I
would like to have a good understanding of that when the time comes instead
of the OMG googlerama I've got a dead line why now thing. But thanks it's
good information.

Never found a fact I didn't like.

--jerry

On Thu, May 3, 2012 at 2:36 PM, Kurtis Mullins wrote:

> When I first dove into Django, everything was confusing. I can't say I
> ever used the book because I wanted to use class-based-views immediately
> (was recommended in IRC). They were confusing as could be, I constantly
> needed hand-holding, etc...
>
> Eventually, I started to understand things a bit more, was able to
> comprehend and use the docs, and finally I'm at the point where I just
> refer to the actual source code when I want to get something done with
> them. It was a steep learning curve with the lack of good documentation on
> them but I *highly* recommend using them. They will save you a lot of time
> in the end. Just my 2 cents :)
>
> If I knew of a good place to post them, I'd be happy to write up a
> tutorial with some cool tricks in my free time. A wiki would be best
> because others (especially those more knowledgeable than I) could also
> contribute.
>
> On Thu, May 3, 2012 at 3:33 PM, Gerald Klein  wrote:
>
>> Good pick on the book, thanks. It is a lot more like what people need to
>> pick something up.
>>
>> thanks
>>
>> --jerry
>>
>> On Wed, May 2, 2012 at 11:35 AM, Joel Goldstick > > wrote:
>>
>>> On Wed, May 2, 2012 at 11:50 AM, Gerald Klein  wrote:
>>> > Hi, I have been through a couple of tutorials including the one on the
>>> site,
>>> > the one thing that the authors have in common is they seem to want to
>>> jump
>>> > to the 'short cuts' to soon. I like to know the basic long hand version
>>> > first because I want to understand.
>>> >
>>> > What I am having a problem with is generics. I did a tutorial and
>>> couldn't
>>> > get the generics to all work. So I wanted to do it the hard way and
>>> move on
>>> > then go back when I know more.
>>> >
>>> > I need an example of a queried result set.
>>> >
>>> > the 'get_absolute_url' from the model
>>> > with the query line and render_to_response from the view and
>>> > the regex url from URLConf without the generic references
>>> > that should be enough to get me going if someone could just cut and
>>> paste in
>>> > some arbitrary code I would be very gratefull
>>> >
>>> > thanks
>>> >
>>> > --jerry
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "Django users" group.
>>> > To post to this group, send email to django-users@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > django-users+unsubscr...@googlegroups.com.
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/django-users?hl=en.
>>>
>>>
>>> Have you checked out the djangobook.com
>>> http://www.djangobook.com/en/2.0/
>>>
>>> Its a little dated in that it doesn't cover Class based generic views.
>>>  But it does walk you thru the individual pieces before it puts them
>>> together and then rolls into the shortcuts
>>>
>>>
>>> --
>>> Joel Goldstick
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>>
>>
>>
>> --
>>
>> Gerald Klein DBA
>>
>> contac...@geraldklein.com
>>
>> www.geraldklein.com 
>>
>> j...@zognet.com
>>
>> 708-599-0352
>>
>>
>> Linux registered user #548580
>>
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 

Gerald Klein DBA

contac...@geraldklein.com

www.geraldklein.com 

j...@zognet.com


Re: users and groups management without admin site??

2012-05-03 Thread William Ibarra Rodriguez
i need manage the users and groups in the same way that admin site
does, but i won't use the admin site, i need web-based interface
inside my project to do that.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Dajaxice is not defined!!! please heelpppp!! :(

2012-05-03 Thread doniyor
hey, 
i did what you told me. i put the dajaxice.core.js in one nude html file, 
where i dont have other js files almost, then i opened the js console and i 
have done the input "Dajaxice", then it stil says there, 

ReferenceError: Dajaxice is not defined
   

Dajaxice


look, i hope, i am taking the up-to-date dajaxice.core.js file, since it is 
from the official dajaxproject site.. i have both dajaxice and dajax also 
in my settings.py. i took it out and tested, error message, so it means, it 
was right in settings.py. i am now thinking about using only jquery-ajax to 
get the work done. is it possible in this way? i can get the form values 
sent by jquery in my view without loading the page, this is actually what i 
wanted to do with dajax. is it a good go-around for the problem? 

thanks 



Am Donnerstag, 3. Mai 2012 21:04:33 UTC+2 schrieb Kurtis:
>
> Hey,
>
> Try taking a practically-empty HTML page that only includes that 
> dajaxice.core.js file. Open up Firebug or some other Javascript console and 
> type in "Dajaxice;" to see if you get the same error. This definitely 
> sounds like a javascript problem since you're getting a "Dajaxice is not 
> defined" error.
>
> As far as the other problem (Missing file), read up the docs on serving 
> Static Media with the Django runserver. You need to make sure dajax is 
> included in your settings.py as an application. That's most likely a whole 
> different problem from the "Dajaxice is not defined" issue.
>
> On Thu, May 3, 2012 at 2:01 PM, doniyor wrote:
>
>> Hi There, i need really your help 
>>
>> i have been having this problem since 3 days.. it is really annoying me, 
>> i dont know why it is happening. The Problem is: 
>>
>> i am trying to use dajax in my page and i followed all steps several 
>> times as given hier: http://dajaxproject.com/
>>
>> but once i click on onclick="Dajaxice.home.**randomize(Dajax.process), 
>> nothing is happening and i saw in console of firefox, there it says, 
>> "Dajaxice is not defined". but i included the {% dajaxice_js_import %} in 
>> the head, and even i linked the dajaxice.core.js file statically from my 
>> STATIC_URL. but it still says the same error. how can i go around this 
>> problem? is there any way of getting this work? 
>>
>> when i link this {% dajaxice_js_import %} in the head, it says the error 
>> in console: *"NetworkError: 500 INTERNAL SERVER ERROR-
>> http://127.0.0.1:8000/dajaxice/dajaxice.core.js"*  
>> when i delete this  {% dajaxice_js_import %} and serve statically from 
>> dajaxice.core.js file from STATIC_URL, it shows nothing in console, but 
>> once i click on onlick event, it says: *Dajaxice is not defined*
>> *
>> *
>> {% dajaxice_js_import %} this will look for dajaxice.core.js in dajaxice 
>> folder in site-packages, right? the file is there, why it cannot find the 
>> Dajaxice object? 
>>
>> thanks for help in advance, 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/UGUTBZj9O_4J.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/w3WjwsCwpdEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Validation error by working with inline formset

2012-05-03 Thread William Ibarra Rodriguez
In my django project I've working with inline formset factory to join
two forms, so when i try to edit the main form this error happens

ValidationError at /catalogo/editar/articulo/3/
 [u'ManagementForm data is missing or has been tampered with']

my models.py is:

class Articulo(models.Model):
titulo = models.CharField(max_length=50)
materiales = models.CharField(max_length=60)
manifestacion = models.ForeignKey(Manifestacion)
tecnica = models.ForeignKey(Tecnica)
dimension = models.CharField(max_length=20)
capacidad_productiva = models.PositiveIntegerField()
creador = models.ForeignKey(Creador)
grupo_creacion = models.ForeignKey(Grupo_Creacion, blank=True,
null=True)
precio = models.DecimalField(max_digits=10,decimal_places=2)
tematica = models.CharField(max_length=150)
calidad = models.CharField(max_length=50, choices =
calidad_choice)
fecha_creacion = models.DateField()

class Meta:
verbose_name_plural = "Gestionar Articulos"
verbose_name = "Articulo"
ordering = ['-id']
permissions = (("listar_articulo","Listar Articulo"),)

def __unicode__(self):
return '%s' % (self.titulo)
def __str__(self):
return '%s' % (self.titulo)

class Imagenes(models.Model):
imagen = models.ImageField(upload_to="uploads/")
dir_imagen = models.CharField(max_length=200)
principal = models.BooleanField()
articulo = models.ForeignKey(Articulo)

def __unicode__(self):
return '%s' % (self.imagen)
def __str__(self):
return '%s' % (self.imagen)

my forms.py is :

ImagenFormSet = inlineformset_factory(Articulo,Imagenes)

class ArticuloForm(forms.ModelForm):
class Meta:
model = Articulo

so in the views.py i had:

@csrf_protect
@login_required
def editar(request, model, key=None):
model_object = get_model('catalogo', model)
if model_object:
if model == "articulo":

articulo = Articulo.objects.get(pk=key)
ImagenFormSet = inlineformset_factory(Articulo, Imagenes)
if request.method == "POST":
imagen_formset = ImagenFormSet(request.POST,
request.FILES, instance = articulo)
if imagen_formset.is_valid():
imagen_formset.save()
else:
imagen_formset = ImagenFormSet(instance = articulo)
return update_object(request, model=model_object,
object_id=key,extra_context={"imagen_formset": imagen_formset},
post_save_redirect='/catalogo/%s/' % model)

return update_object(request, model=model_object,
object_id=key, post_save_redirect='/catalogo/%s/' % model)
else:
raise Http404()



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Instalación en centOs 6.2

2012-05-03 Thread Segundo Acosta Delgado
Como es la instalación en centOS 6.2 de 64 bits 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/mY7Oq0Q-tO4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: users and groups management without admin site??

2012-05-03 Thread Kurtis Mullins
It might help to get a little bit more information. Do you want to
programmatically manage them to use in another application (or though the
command-line), do you want a web-based interface, etc...?

On Thu, May 3, 2012 at 3:34 PM, William Ibarra Rodriguez <
legolas...@gmail.com> wrote:

> i've working in a django project and  i need to know a way to manage
> users and groups without using  the admin site.  my django version is
> 1.3.1 ..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Short I hope explanation

2012-05-03 Thread Kurtis Mullins
When I first dove into Django, everything was confusing. I can't say I ever
used the book because I wanted to use class-based-views immediately (was
recommended in IRC). They were confusing as could be, I constantly needed
hand-holding, etc...

Eventually, I started to understand things a bit more, was able to
comprehend and use the docs, and finally I'm at the point where I just
refer to the actual source code when I want to get something done with
them. It was a steep learning curve with the lack of good documentation on
them but I *highly* recommend using them. They will save you a lot of time
in the end. Just my 2 cents :)

If I knew of a good place to post them, I'd be happy to write up a tutorial
with some cool tricks in my free time. A wiki would be best because others
(especially those more knowledgeable than I) could also contribute.

On Thu, May 3, 2012 at 3:33 PM, Gerald Klein  wrote:

> Good pick on the book, thanks. It is a lot more like what people need to
> pick something up.
>
> thanks
>
> --jerry
>
> On Wed, May 2, 2012 at 11:35 AM, Joel Goldstick 
> wrote:
>
>> On Wed, May 2, 2012 at 11:50 AM, Gerald Klein  wrote:
>> > Hi, I have been through a couple of tutorials including the one on the
>> site,
>> > the one thing that the authors have in common is they seem to want to
>> jump
>> > to the 'short cuts' to soon. I like to know the basic long hand version
>> > first because I want to understand.
>> >
>> > What I am having a problem with is generics. I did a tutorial and
>> couldn't
>> > get the generics to all work. So I wanted to do it the hard way and
>> move on
>> > then go back when I know more.
>> >
>> > I need an example of a queried result set.
>> >
>> > the 'get_absolute_url' from the model
>> > with the query line and render_to_response from the view and
>> > the regex url from URLConf without the generic references
>> > that should be enough to get me going if someone could just cut and
>> paste in
>> > some arbitrary code I would be very gratefull
>> >
>> > thanks
>> >
>> > --jerry
>> >
>> >
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Django users" group.
>> > To post to this group, send email to django-users@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > django-users+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/django-users?hl=en.
>>
>>
>> Have you checked out the djangobook.com http://www.djangobook.com/en/2.0/
>>
>> Its a little dated in that it doesn't cover Class based generic views.
>>  But it does walk you thru the individual pieces before it puts them
>> together and then rolls into the shortcuts
>>
>>
>> --
>> Joel Goldstick
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
>
> --
>
> Gerald Klein DBA
>
> contac...@geraldklein.com
>
> www.geraldklein.com 
>
> j...@zognet.com
>
> 708-599-0352
>
>
> Linux registered user #548580
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



users and groups management without admin site??

2012-05-03 Thread William Ibarra Rodriguez
i've working in a django project and  i need to know a way to manage
users and groups without using  the admin site.  my django version is
1.3.1 ..

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Short I hope explanation

2012-05-03 Thread Gerald Klein
Good pick on the book, thanks. It is a lot more like what people need to
pick something up.

thanks

--jerry

On Wed, May 2, 2012 at 11:35 AM, Joel Goldstick wrote:

> On Wed, May 2, 2012 at 11:50 AM, Gerald Klein  wrote:
> > Hi, I have been through a couple of tutorials including the one on the
> site,
> > the one thing that the authors have in common is they seem to want to
> jump
> > to the 'short cuts' to soon. I like to know the basic long hand version
> > first because I want to understand.
> >
> > What I am having a problem with is generics. I did a tutorial and
> couldn't
> > get the generics to all work. So I wanted to do it the hard way and move
> on
> > then go back when I know more.
> >
> > I need an example of a queried result set.
> >
> > the 'get_absolute_url' from the model
> > with the query line and render_to_response from the view and
> > the regex url from URLConf without the generic references
> > that should be enough to get me going if someone could just cut and
> paste in
> > some arbitrary code I would be very gratefull
> >
> > thanks
> >
> > --jerry
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en.
>
>
> Have you checked out the djangobook.com http://www.djangobook.com/en/2.0/
>
> Its a little dated in that it doesn't cover Class based generic views.
>  But it does walk you thru the individual pieces before it puts them
> together and then rolls into the shortcuts
>
>
> --
> Joel Goldstick
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 

Gerald Klein DBA

contac...@geraldklein.com

www.geraldklein.com 

j...@zognet.com

708-599-0352


Linux registered user #548580

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Kurtis Mullins
Another variable in the equation is that independent developers do not have
a guaranteed job every day. You have to compensate for that difference. So,
for example, if I were to take on a project that might last two weeks -- I
need to make up that other two weeks unless I have another job waiting on
me. On the other hand, if someone offers me a 6-month contract -- then I'm
happy taking a bit less because I know the money will be coming in for the
duration. Regardless, I know what I need to make each month to survive and
try to charge accordingly. I imagine others might follow the same approach.

As for the $2800/month being a great starting wage for a web developer -- I
sure hope they don't have kids :)

On Thu, May 3, 2012 at 11:50 AM, Daniel Sokolowski <
daniel.sokolow...@klinsight.com> wrote:

>   >>A plumber is mostly manual labour which will take a toll on the body
> over the years.
>  >>I've seen quite a few people making these comparisons to manual labour
> jobs and, in my opinion, they are completely irrelevant.
>  >>A plumber also has travel costs, fuel, cost in lost time travelling,
> covering free quotations etc.
>
> They are absolutely relevant, an expert spends time and money to improve
> his or her skills – continually -- be it a plumber or a programmer it's no
> difference if it’s manual or mental labour. I don’t know if you are
> attempting to prove a point against good rates for django developers or
> simply stating your opinion; I will assume the latter.
>
>
>  *From:* Cal Leeming [Simplicity Media 
> Ltd]
> *Sent:* Thursday, May 03, 2012 11:26 AM
> *To:* django-users@googlegroups.com
> *Subject:* Re: Django - Worldwide Developer Rates - Hourly Income -
> location and project duration specific
>
>
>
> On Thu, May 3, 2012 at 2:47 PM, Daniel Sokolowski wrote:
>
>> Did the math here and that works out to about $2700/month. I would say
>> that would be the bare minimum considering my NOT lavish life style -
>> family, house, car etc.
>>
>
> It completely depends on the cost of living in your
> country/area/circumstances.
>
> Perhaps sweet spot was the wrong choice of words, as I meant for it to
> mean "typical minimum" take home salary every month.
>
>
>> Furthermore these 'charlatans' driving the price up is a GREAT thing
>> because talent and skill is not cheap  - these people know what they are
>> worth and charge accordingly - sure some are better sales people then
>> programmers.
>>
>
>
>>
>> Time and time again I am reminded that anyone can call themselves a web
>> designer - but only a few can do what we can - that I am a web engineer.
>>
>> Django strengths lies in customization and ability to deliver exactly
>> when the client wants while saving us some a small amount of time on the
>> basics, it's easy to put up a pretty $15 dollar template based static site
>> - damn I had clients thinking they were good web designer and just wanted
>> hosting - but not everyone can deliver exactly what is required, that does
>> not use a purchased rigid piece of code out there, or code something
>> innovative from scratch to solve a need.
>>
>> I'll repeat *not everyone can do what we can do* so charge accordingly,
>> be proud, confident and call your self a web engineer. If you talk big,
>> appear big, deliver big you will attract those big projects - of course if
>> people Google you or your business you better be on first page to justify
>> that.
>>
>> The company I work for as an employee charges $65/hour - after all
>> expenses, down time, employee wages, not billable tasks the profit margins
>> are not that great I recon - I would guess target being business making $20
>> an hour I doubt that happens often though.
>>
>> Final food for thought - a plumber service here starts at $60-100 / hour.
>>
>
> A plumber is mostly manual labor which will take a toll on the body over
> the years.
>
> I've seen quite a few people making these comparisons to manual labor jobs
> and, in my opinion, they are completely irrelevant.
>
> A plumber also has travel costs, fuel, cost in lost time travelling,
> covering free quotations etc.
>
>
>>
>> --
>> Daniel Sokolowski
>> Web Engineer
>> Danols Web Engineeringhttp://webdesign.danols.com/
>> Office: 613-817-6833
>> Fax: 613-817-4553
>> Toll Free: 1-855-5DANOLS
>> Kingston, ON K7L 1H3, Canada
>>
>>
>>
>>
>> On 03/05/2012 06:31, Cal Leeming [Simplicity Media Ltd] wrote:
>>
>> Hi,
>>
>> Just my two cents worth on this (albeit slightly off topic) - it's not
>> all about technical ability or the industry you are working in.
>>
>> Most clients are willing to pay that extra premium for contractors who
>> are able to manage expectations and go above and beyond.
>>
>> I've seen many great developers with amazing skills go unnoticed,
>> primarily because they don't know how to handle clients, clear and concise
>> communication plays a huge part in pricing.
>>
>> The other problem is that the market is flooded with 

Re: Short I hope explanation

2012-05-03 Thread Steve Kilbane
Hi Jerry.

Not specifically related to queried result sets, but I've been
struggling with class-based generic views (I assume that's what you're
referring to), and I've posted some code in that thread, here:

http://groups.google.com/group/django-users/browse_thread/thread/ccd74d137068193e

steve

On May 2, 4:50 pm, Gerald Klein  wrote:
> Hi, I have been through a couple of tutorials including the one on the
> site, the one thing that the authors have in common is they seem to want to
> jump to the 'short cuts' to soon. I like to know the basic long hand
> version first because I want to understand.
>
> What I am having a problem with is generics. I did a tutorial and couldn't
> get the generics to all work. So I wanted to do it the hard way and move on
> then go back when I know more.
>
> I need an example of a queried result set.
>
> the 'get_absolute_url' from the model
> with the query line and render_to_response from the view and
> the regex url from URLConf without the generic references
> that should be enough to get me going if someone could just cut and paste
> in some arbitrary code I would be very gratefull
>
> thanks
>
> --jerry

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need help

2012-05-03 Thread Kurtis Mullins
Your Database may very well be setup to Authenticate the Accessing User on
127.0.0.1 and not 'localhost' (or vice-versa). This would be setup in the
database when setting credentials for a user, in the case with MySQL.

On Wed, May 2, 2012 at 9:52 PM, Peter of the Norse <
rahmcoff+...@radio1190.org> wrote:

> There is a difference between 'localhost' and the empty string.
> 'localhost' translates into 127.0.0.1 and is sent using the internet. The
> empty string means to use local sockets for communication. At least with
> PostgreSQL. (It might be different with MySQL.)
>
> In short, this is not a bug. Please don't treat it as such, and learn the
> connection settings of your database.
>
> On Apr 3, 2012, at 11:16 AM, Andre Terra wrote:
>
> It could be a regression bug.
>
> To be honest, I don't see a reason why '' should become 'localhost'
> automagically. I'd much prefer if users were forced to write 'localhost'
> rather than having Django do it (and fail) for them.
>
> Explicit is better than implicit.
>
> If you haven't yet, please file a bug report:
> https://code.djangoproject.com/newticket
>
>
> Cheers,
> AT
>
>
> On Tue, Apr 3, 2012 at 12:25 PM, thongor  wrote:
>
>> Wow this post is really old but this also solved my problem strangely
>> enough.
>>
>> On Thursday, June 25, 2009 2:48:32 PM UTC-4, amy wrote:
>>>
>>> I had this same problem...the user and pass were fine but no users
>>> could authenticate on any DB, regardless of settings.
>>>
>>> Turns out my issue was only that I needed to add the string
>>> "localhost" to the host parameter.
>>>
>>> It's odd since the comments specifically state to leave it blank for
>>> localhost...but oh well. It worked.
>>>
>>> DATABASE_HOST = 'localhost' # Set to empty string for
>>> localhost. Not used with sqlite3.
>>>
>>> Odd.
>>>
>>> On May 31, 6:14 am, Tim Chase  wrote:
>>> > mizan rahman wrote:
>>> > > No, i've checked that i've created a user named "djangouser" and the
>>> > > problem still exist what will i do? Plz help me
>>> >
>>> > and you've checked that the password in settings.py is correct?
>>> > You only confirmed one of the two problems I suggested.
>>> >
>>> > If both are correct, you may have to include the section of your
>>> > pg_hba.conf that defines access permissions.  It usually looks
>>> > something like
>>> >
>>> > ##**##**##
>>> > local   all postgres  ident sameuser
>>> >
>>> > # TYPE  DATABASEUSERCIDR-ADDRESS  METHOD
>>> >
>>> > # "local" is for Unix domain socket connections only
>>> > local   all all   ident sameuser
>>> > # IPv4 local connections:
>>> > hostall all 127.0.0.1/32  md5
>>> > # IPv6 local connections:
>>> > hostall all ::1/128   md5
>>> > ##**##**##
>>> >
>>> > along with information about how your connecting in Django (to
>>> > localhost, to the local machine by IP address, to a remote
>>> > machine, etc)
>>> >
>>> > -tkc
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/BI0mwz_xsrsJ.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
> Peter of the Norse
> rahmc...@radio1190.org
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DeleteView example with template

2012-05-03 Thread Steve Kilbane


On Apr 27, 9:17 am, Ejah  wrote:
> You might want to take a look at godjango.com for some nice short
> intro videos on generic class based views, and the source code.


As it happens, the godjango  videos didn't cover the templates, but
they did provide some clues - enough to get me going. So I'm posting
the kind of thing I ended up with here, in case it'll help someone
else struggling with the class-based generic views.

models.py:

This is a scheduling app, so people are assigned to scheduled items.
This model is used as the "through" model for that relation. You can
ignore the content of the model - it's not relevant to the use of
generic views, with the exception that I made sure to define
verbose_name and verbose_name_plural in everything. That's because I'm
using the same template to render things like lists of objects of
different models, and I want to have predictable names coming out.

class ItemPerson(models.Model):
  item = models.ForeignKey(Item)
  person = models.ForeignKey(Person)
  role = models.ForeignKey(PersonRole,
default=PersonRole.objects.find_default)
  status = models.ForeignKey(PersonStatus,
default=PersonStatus.objects.find_default)
  visible = models.CharField(max_length=4, choices=YesNo,
default='Yes')
  distEmail = models.CharField(max_length=4, choices=YesNo,
default='No')
  recordingOkay = models.CharField(max_length=4, choices=YesNo,
default='No')

  class Meta:
verbose_name = 'itemperson'
verbose_name_plural = 'itemspeople'

  def __unicode__(self):
return u"%s: %s [%s]" % (self.item, self.person, self.role)
  def get_absolute_url(self):
return mk_url(self)


forms.py:

I have a form for editing ItemPerson objects. This is used both when
creating and when editing the objects. The fromPerson field is some
plumbing I no longer need.

class ItemPersonForm(ModelForm):
  fromPerson = forms.BooleanField(required=False,
widget=forms.HiddenInput)
  class Meta:
model = ItemPerson


urls.py:

I have URLs to:
- list all the ItemPerson objects
- display the details of a given ItemPerson
- delete an ItemPerson
- edit an existing ItemPerson
- create a new ItemPerson
These all use subclassed generic views.

url(r'^progdb/itemspeople/$',
VisibleView.as_view(model=ItemPerson)),
url(r'^progdb/itemperson/(?P\d+)/$',
show_itemperson_detail.as_view()),
url(r'^progdb/delete_itemperson/(?P\d+)/$',
permission_required('progdb2.delete_itemperson')
(AfterDeleteView.as_view(
  model=ItemPerson))),
url(r'^progdb/edit_itemperson/(?P\d+)/$',
permission_required('progdb2.change_itemperson')(EditView.as_view(
  model = ItemPerson,
  form_class=ItemPersonForm))),
url(r'^progdb/new_itemperson/$',
permission_required('progdb2.add_itemperson')(NewView.as_view(
  template_name = 'progdb2/edit_itemperson.html',
  model = ItemPerson,
  form_class=ItemPersonForm))),


ListView
===

I have two levels of subclass of ListView. The first level, AllView,
is because I'm using the same template to render lists of lots of
different models (not just this one), so I'm setting up both the
common template name and populating the context with names and labels
relating to the model.


class AllView(ListView):
  template_name = 'progdb2/object_list.html'

  def get_context_data(self, **kwargs):
context = super(AllView, self).get_context_data(**kwargs)
context['request'] = self.request
context['verbose_name'] = self.model._meta.verbose_name
context['verbose_name_plural'] =
self.model._meta.verbose_name_plural
context['new_url'] = r'/progdb/new_%s/' %
( self.model.__name__.lower() )
return context


The second level, VisibleView, is because I'm filtering the queryset
based on whether the user is logged in (I don't do this for all
models, hence two levels).


class VisibleView(AllView):
  def get_queryset(self):
if self.request.user.is_authenticated():
  return self.model.objects.all()
else:
  return self.model.objects.filter(visible = True)


object_list.html:
I'm rendering the list with a common template that iterates over the
list, and has a link for creating a new object in the model. linky is
a filter that gives me a link to a particular object.

{% extends "progdb2/base.html" %}
{% load progdb_filters %}
{% block title %}{{ verbose_name_plural }} {% endblock %}
{% block body_content %}

{% for o in object_list %}
   {{ o|linky|safe }} 
{% empty %}
  None yet
{% endfor %}

{% if user.is_authenticated %}
Add new {{ verbose_name }}.
{% endif %}
{% endblock %}




DetailView

I'm subclassing DetailView, in order to set a few attributes, and for
some of the models, I'm doing more. For ItemPerson, I could just be
setting all of these via keyword arguments to DetailView in urls.py.

class show_itemperson_detail(DetailView):
  context_object_name = 'itemperson'
  model = ItemPerson
  template_name = 'progdb2/show_itemperson.html'



show_itemperson.html:
The template for 

Re: jquery form post without refresh the page

2012-05-03 Thread Kurtis Mullins
Here's something I do.

I have a page where I include {% csrf_token %} and another field. Then I do
a simple JQuery .post() call.

Note, I've tried to pull out a bunch of stuff that isn't specific to the
call. It's untested in this form but should work. I tried to include
comments to help you understand what's going on.


$('div.theme_image, div.theme_name').on("click", function(event) {

// Used later to access 'this' (the calling object)
var theme = this;

// Prepare our AJAX Call.
url = '{% url fireflie.wizard.api.choose_theme %}'; // The URL to the
View we're posting to.

// Building the POST data here.
data = {
theme_id: $(this).siblings('input').attr('value'),
csrfmiddlewaretoken:
$('input[name=csrfmiddlewaretoken]').attr('value')
};

// Post Data to the Server
var jqxhr = $.post(url, data, function(data) {

// Do something in here on Success
// In my example, I wanted to manipulate the calling object,
// so it would be "theme" here. If you try to use "this", it won't
work.

});

// On Error:
jqxhr.error(function() {

  // Do something in here in the case of errors.

});

});


Good luck!
-Kurtis Mullins

On Thu, May 3, 2012 at 1:46 PM, Bill Freeman  wrote:

> AJAX
>
> You may require a separate view, but maybe not.
>
> If you search for jQuery and AJAX there should be samples.
>
> On 5/3/12, Min Hong Tan  wrote:
> > is there any sample that i can refer to do the ajax style form post
> > without refresh the whole page?
> > or backend form.save validation without refresh my form?
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Access specific ModelForm field option within array of ModelForms for use with .js

2012-05-03 Thread Kurtis Mullins
You could do something along these lines:

{% for field in form %}
...

{% ifequal field form.someSpecificField %}

> {{ form }}
> 
> {% endfor %}
>
> Previously I have accessed certain ModelForms using {% if forloop.counter
> == # %} to add some customization.
>
> However, now I would like more detailed control of certain field tags
> within a given ModelForm. ie. ModelForm2 is a RadioSelect, and I would like
> to add an onChange="some function" to one of the Radio Buttons within this
> ModelForm.
>
> Is there a way to access this specific field in my implementation
> directly? Or, through the use of a custom template filter?
>
> To give the larger picture my goal is to have an "Other" RadioButton that
> when selected shows a Other text input using javascript, but while using
> ModelForms.
>
> As such, if there is an entirely different way to going about this I would
> love to hear it.
>
> Any help would be greatly appreciated!
>
>
> JD
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/OVPO5oqiXc4J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Dajaxice is not defined!!! please heelpppp!! :(

2012-05-03 Thread doniyor
Hi There, i need really your help 

i have been having this problem since 3 days.. it is really annoying me, i 
dont know why it is happening. The Problem is: 

i am trying to use dajax in my page and i followed all steps several times 
as given hier: http://dajaxproject.com/

but once i click on onclick="Dajaxice.home.randomize(Dajax.process), 
nothing is happening and i saw in console of firefox, there it says, 
"Dajaxice is not defined". but i included the {% dajaxice_js_import %} in 
the head, and even i linked the dajaxice.core.js file statically from my 
STATIC_URL. but it still says the same error. how can i go around this 
problem? is there any way of getting this work? 

when i link this {% dajaxice_js_import %} in the head, it says the error in 
console: *"NetworkError: 500 INTERNAL SERVER ERROR-
http://127.0.0.1:8000/dajaxice/dajaxice.core.js"*  
when i delete this  {% dajaxice_js_import %} and serve statically from 
dajaxice.core.js file from STATIC_URL, it shows nothing in console, but 
once i click on onlick event, it says: *Dajaxice is not defined*
*
*
{% dajaxice_js_import %} this will look for dajaxice.core.js in dajaxice 
folder in site-packages, right? the file is there, why it cannot find the 
Dajaxice object? 

thanks for help in advance, 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/UGUTBZj9O_4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: jquery form post without refresh the page

2012-05-03 Thread Bill Freeman
AJAX

You may require a separate view, but maybe not.

If you search for jQuery and AJAX there should be samples.

On 5/3/12, Min Hong Tan  wrote:
> is there any sample that i can refer to do the ajax style form post
> without refresh the whole page?
> or backend form.save validation without refresh my form?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [help] Server Config: django + uwsgi + nginx

2012-05-03 Thread Kurtis Mullins
Hey, I'm glad to hear you got it working! If you run into any more
problems, don't hesitate to ask.

On Wed, May 2, 2012 at 1:31 AM, easypie  wrote:

> Thanks. I was missing the virtualenv= mentions earlier. I'm glad I
> know this those settings are meant for development only. I was a little
> confused thinking that was ready for deployment. I'm new to all this and
> get confuse sometimes.
>
>
> On Tuesday, May 1, 2012 8:04:00 AM UTC-7, Kurtis wrote:
>>
>> Judging from your Import Error -- I think you're having a problem with
>> Django not being on the Python path. In my uwsgi configuration file (I used
>> .xml), it looks like this:
>>
>> 
>> 
>> DJANGO_SETTINGS_MODULE=**fireflie.settings
>> 4
>> 0.0.0.0:7999
>> /home/fireflie/staging/**fireflie/
>> django.core.handlers.**wsgi:WSGIHandler()
>> /home/fireflie/**staging/fireflie/
>> /home/fireflie/**staging/
>> /var/log/uwsgi/**uwsgi.log
>> /tmp/fireflie-**staging.pid
>> 
>>
>> Note: That's not guaranteed to be production-ready (we're just using it
>> for development) and I'm also not using a virtual environment (we use a
>> whole sever for the single Django application). In other words, I'm not
>> following best practices by a large margin. Good luck!
>>
>>
>> On Mon, Apr 30, 2012 at 7:36 PM, Karl Sutt  wrote:
>>
>>> I am not entirely sure what you mean by that. If you mean the nginx
>>> equivalent of Apache VirtualHosts then the nginx wiki explains it quite
>>> nicely 
>>> http://wiki.nginx.org/**ServerBlockExample.
>>> Is that what you meant?
>>>
>>> Karl Sutt
>>>
>>>
>>>
>>> On Mon, Apr 30, 2012 at 7:04 PM, easypie  wrote:
>>>
 does your configuration allow for running multiple sites?


 On Sunday, April 29, 2012 12:01:27 PM UTC-7, Karl Sutt wrote:
>
> Here is my uWSGI command and nginx.conf contents:
>
> uwsgi -- http://www.dpaste.org/**aiJuq**/
> nginx -- http://www.dpaste.org/**bAG0o**/
>
> I've used it for a Flask application, but I've just tested it and it
> works for a Django project as well. Note that wsgi.py file in the uwsgi
> command is the Python file that Django generates when you first create a
> project, there is no need to change it.
>
> Good luck!
>
> Karl Sutt
>
>
> On Sun, Apr 29, 2012 at 6:49 PM, easypie  wrote:
>
>> I have this file that was created for me by one of the users in
>> django's irc channel. I edited to have the right information inserted but
>> I"m not sure what I'm doing wrong to not make it work. I've spent some 
>> time
>> trying to understand each line by searching the web. There's still a 
>> thing
>> or two that's missing from the puzzle. Maybe it's the server config that
>> has a flaw or the way I went about it. I haven't done a fresh install of
>> uwsgi and nginx yet. However, please take a look to see if there's an 
>> error
>> or solution that could work. Thanks.
>>
>> Link to code: 
>> http://www.dpaste.org/**wW**Vd3/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To view this discussion on the web visit https://groups.google.com/d/
>> **ms**g/django-users/-/**2rekHP0I6V0J
>> .
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscribe@**googl**egroups.com
>> .
>> For more options, visit this group at http://groups.google.com/**
>> group**/django-users?hl=en
>> .
>>
>
>  --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To view this discussion on the web visit https://groups.google.com/d/**
 msg/django-users/-/**sMsRN5iG9NQJ
 .

 To post to this group, send email to django-users@googlegroups.com.
 To unsubscribe from this group, send email to django-users+unsubscribe@
 **googlegroups.com .
 For more options, visit this group at http://groups.google.com/**
 group/django-users?hl=en
 .

>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com 

Re: 'ascii' codec can't encode characters in position 36-38: ordinal not in range(128)

2012-05-03 Thread Bill Freeman
On 5/2/12, Bastian  wrote:
> This happens when trying to upload a file with a filename that is not in
> ascii. In this case I tried éè´´çoöp_iI$.jpg. The strange thing is that
> firefox uploads it but chrome gets the error!
> I know this has been discussed already but the solutions mentioned did not
> work: I tried to change encoding = "ascii" to encoding = "utf-8" in site.py
> then I tried to add export LANG='en_US.UTF-8' and export
> LC_ALL='en_US.UTF-8' in Apache envvars.
> The problem seems to be in the path since it happens at save time and the
> genericpath.py / exists is called to verify the path and returns what
> follows. Any hint is welcome. This is an ubuntu server but it happens also
> on the debian box. Django 1.3.1, python 2.7. The view is a form with
> request.POST that is saved.
>
>
>
>1.
>2.
>
># Does a path exist?
>
>3.
>
># This is false for dangling symbolic links on systems that support them.
>
>4.
>
>def exists(path):
>
>5.
>
>"""Test whether a path exists.  Returns False for broken symbolic
> links"""
>
>6.
>
>try:
>
>
>
>1.
>
>os.stat(path)
>
>...
>
>
>1.
>
>except os.error:
>
>2.
>
>return False
>
>3.
>
>return True
>
>4.
>5.
>6.
>
># This follows symbolic links, so both islink() and isdir() can be true
>
>
> ▼ Local vars 
> VariableValuepath
>
> u'/home/dev/user_media/imgs/\xe9\xe8\xe7o\xf6p_iI.jpg'

You might try reaching in and encoding the filename yourself, to
utf-8, or maybe url encoding it.  If this is happening in the admin,
then the easiest approaches may be to use a customized field, or a
field with a customized widget (you can probably sub-class, rather
than going from scratch).

Bill

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



jquery form post without refresh the page

2012-05-03 Thread Min Hong Tan
is there any sample that i can refer to do the ajax style form post
without refresh the whole page?
or backend form.save validation without refresh my form?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



admin.ModelAdmin - Recycling TabularInline requires backward foreign key?

2012-05-03 Thread mcJack
Hi all,

I try to build a django powered web application which deals with
several entities in the database.
There is one table - call it A -, which is referenced from several
other tables via ForeignKey "fields".
I managed to show the content of the referenced table as an inline,
but as soon as i show the inline in another ModelAdmin, I get the
error, that the table A has no ForeignKey to it's parent model.
There is no need in the database, to create the backwards link from
Adresses to all other relations, that aggregate an adress in A, but
will I have to do this for django?

BTW. I use django 1.4

Thanks in advance four your comments on this,
I attach a small example which shows the error:

<=== models.py ===>
from django.db import models

# Create your models here.

class Servant(models.Model):
name= models.CharField( max_length=64 )
master  = models.ForeignKey( 'Master' )
god = models.BooleanField()
def __unicode__(self):
return self.name

class Tools(models.Model):
name= models.CharField( max_length=64 )
owner   = models.ForeignKey( 'Master' )
whohasit= models.ForeignKey( 'Servant' )
def __unicode__(self):
return self.name

class Master(models.Model):
name= models.CharField( max_length=64 )
# servants  = models.ForeignKey( 'Servant' )
def __unicode__(self):
return self.name

<=== admin.py ===>
from mytest.models import *
from django.contrib import admin

class ServantInline(admin.TabularInline):
model   = Servant
extra   = 1

class ToolInline(admin.TabularInline):
model   = Tools

class MasterAdmin(admin.ModelAdmin):
inlines = [ ServantInline, ToolInline ]

admin.site.register(Master, MasterAdmin)

# these last four lines break the code:
class ToolsAdmin(admin.ModelAdmin):
inlines = [ ServantInline ]

admin.site.register(Tools, ToolsAdmin)
<=== end of code ===>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Denver Django users

2012-05-03 Thread Brian Rosner
Those of you who are in the Denver area and interested in talking about 
Django with other Django users should check 
out http://www.meetup.com/denver-django. I started the group up because I 
love Django and would love to talk with others who love it too in Denver. 
If you have any questions don't hesitate to email me :-)

Brian Rosner
http://twitter.com/brosner

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ahnYC8wsFNIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Daniel Sokolowski
>>A plumber is mostly manual labour which will take a toll on the body over the 
>>years.
>>I've seen quite a few people making these comparisons to manual labour jobs 
>>and, in my opinion, they are completely irrelevant.
>>A plumber also has travel costs, fuel, cost in lost time travelling, covering 
>>free quotations etc.

They are absolutely relevant, an expert spends time and money to improve his or 
her skills – continually -- be it a plumber or a programmer it's no difference 
if it’s manual or mental labour. I don’t know if you are attempting to prove a 
point against good rates for django developers or simply stating your opinion; 
I will assume the latter.


From: Cal Leeming [Simplicity Media Ltd] 
Sent: Thursday, May 03, 2012 11:26 AM
To: django-users@googlegroups.com 
Subject: Re: Django - Worldwide Developer Rates - Hourly Income - location and 
project duration specific




On Thu, May 3, 2012 at 2:47 PM, Daniel Sokolowski  wrote:

  Did the math here and that works out to about $2700/month. I would say that 
would be the bare minimum considering my NOT lavish life style - family, house, 
car etc.

It completely depends on the cost of living in your country/area/circumstances. 

Perhaps sweet spot was the wrong choice of words, as I meant for it to mean 
"typical minimum" take home salary every month.

  Furthermore these 'charlatans' driving the price up is a GREAT thing because 
talent and skill is not cheap  - these people know what they are worth and 
charge accordingly - sure some are better sales people then programmers.


  Time and time again I am reminded that anyone can call themselves a web 
designer - but only a few can do what we can - that I am a web engineer.

  Django strengths lies in customization and ability to deliver exactly when 
the client wants while saving us some a small amount of time on the basics, 
it's easy to put up a pretty $15 dollar template based static site - damn I had 
clients thinking they were good web designer and just wanted hosting - but not 
everyone can deliver exactly what is required, that does not use a purchased 
rigid piece of code out there, or code something innovative from scratch to 
solve a need.

  I'll repeat not everyone can do what we can do so charge accordingly, be 
proud, confident and call your self a web engineer. If you talk big, appear 
big, deliver big you will attract those big projects - of course if people 
Google you or your business you better be on first page to justify that.

  The company I work for as an employee charges $65/hour - after all expenses, 
down time, employee wages, not billable tasks the profit margins are not that 
great I recon - I would guess target being business making $20 an hour I doubt 
that happens often though. 

  Final food for thought - a plumber service here starts at $60-100 / hour.


A plumber is mostly manual labor which will take a toll on the body over the 
years. 

I've seen quite a few people making these comparisons to manual labor jobs and, 
in my opinion, they are completely irrelevant.

A plumber also has travel costs, fuel, cost in lost time travelling, covering 
free quotations etc.



-- 
Daniel Sokolowski
Web Engineer
Danols Web Engineering
http://webdesign.danols.com/
Office: 613-817-6833
Fax: 613-817-4553
Toll Free: 1-855-5DANOLS 
Kingston, ON K7L 1H3, Canada


  On 03/05/2012 06:31, Cal Leeming [Simplicity Media Ltd] wrote: 
Hi, 

Just my two cents worth on this (albeit slightly off topic) - it's not all 
about technical ability or the industry you are working in.

Most clients are willing to pay that extra premium for contractors who are 
able to manage expectations and go above and beyond.

I've seen many great developers with amazing skills go unnoticed, primarily 
because they don't know how to handle clients, clear and concise communication 
plays a huge part in pricing.

The other problem is that the market is flooded with charlatans, who are 
driving the prices up and make it even more diluted for the rest of us.

You also have to remember that many people don't factor in project 
management and sales/phone calls into the hourly rate - they simply absorb the 
costs - which further drives it down.

Cut a long story short though, I personally think that around £1700/month 
after tax is the 'sweet spot' for any developer (assuming you're not in the 
city). Anything beyond that is a bonus :)

Cal


On Thu, May 3, 2012 at 8:00 AM, Raphael  wrote:

  Hello Kurtis,

  thank you for letting is know about C. Lemmings post, we are going to use 
all the information we are able to grab.
  Got project data via email - but anyway till now its far not enough.

  http://develissimo.com/forum/topic/107887/

  Kind regards,
  Raphael 



  On Tue, 2012-05-01 at 10:44 -0400, Kurtis Mullins wrote:

Raphael, 



According to another topic -- some developers 

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Raphael
I agree very much with Daniel.
And Cal is right £1700/month (which is approximately ~2100EUR and
~2750USD) really is a good starting goal for a (web) developer (AFTER
tax!!!).
The problem is a lot of us (developers) - we are very poor business
economics. And why? Well this is simple:
we spend our day-time and night-time MO-FR and weekend SA-SU (even
holiday) with IT-subjects,
new programming techniques, operating systems, new high tech trends
etc... 
Don't get me wrong, this is really good. There is only missing one
single point - we should investigate a minimum of our time in business
economics and stop underselling ourselves.

This should be at least a 4hours talk on every single Tech-University or
Engineering-School before the final exams. A lot of highly qualified
engineers graduate from Tech-Schools and Universities worldwide with no
idea
how much the hourly rate is in their business sector. And this is what
really brings wages down. I don't want to be them experts, just to know
a minimum would be sufficient. I remember myself, its not far back in
time, I had no idea... ;-)

Thanks for participating
http://develissimo.com/forum/topic/107887/

Raphael



On Thu, 2012-05-03 at 09:47 -0400, Daniel Sokolowski wrote:

> Did the math here and that works out to about $2700/month. I would say
> that would be the bare minimum considering my NOT lavish life style -
> family, house, car etc. Furthermore these 'charlatans' driving the
> price up is a GREAT thing because talent and skill is not cheap  -
> these people know what they are worth and charge accordingly - sure
> some are better sales people then programmers.
> 
> Time and time again I am reminded that anyone can call themselves a
> web designer - but only a few can do what we can - that I am a web
> engineer.
> 
> Django strengths lies in customization and ability to deliver exactly
> when the client wants while saving us some a small amount of time on
> the basics, it's easy to put up a pretty $15 dollar template based
> static site - damn I had clients thinking they were good web designer
> and just wanted hosting - but not everyone can deliver exactly what is
> required, that does not use a purchased rigid piece of code out there,
> or code something innovative from scratch to solve a need.
> 
> I'll repeat not everyone can do what we can do so charge accordingly,
> be proud, confident and call your self a web engineer. If you talk
> big, appear big, deliver big you will attract those big projects - of
> course if people Google you or your business you better be on first
> page to justify that.
> 
> The company I work for as an employee charges $65/hour - after all
> expenses, down time, employee wages, not billable tasks the profit
> margins are not that great I recon - I would guess target being
> business making $20 an hour I doubt that happens often though. 
> 
> Final food for thought - a plumber service here starts at $60-100 /
> hour.
> 
> 
> -- 
> Daniel Sokolowski
> Web Engineer
> Danols Web Engineering
> http://webdesign.danols.com/
> Office: 613-817-6833
> Fax: 613-817-4553
> Toll Free: 1-855-5DANOLS 
> Kingston, ON K7L 1H3, Canada
> 
> 
> 
> 
> On 03/05/2012 06:31, Cal Leeming [Simplicity Media Ltd] wrote: 
> 
> > Hi, 
> > 
> > 
> > 
> > Just my two cents worth on this (albeit slightly off topic) - it's
> > not all about technical ability or the industry you are working in.
> > 
> > 
> > Most clients are willing to pay that extra premium for contractors
> > who are able to manage expectations and go above and beyond.
> > 
> > 
> > I've seen many great developers with amazing skills go unnoticed,
> > primarily because they don't know how to handle clients, clear and
> > concise communication plays a huge part in pricing.
> > 
> > 
> > The other problem is that the market is flooded with charlatans, who
> > are driving the prices up and make it even more diluted for the rest
> > of us.
> > 
> > 
> > You also have to remember that many people don't factor in project
> > management and sales/phone calls into the hourly rate - they simply
> > absorb the costs - which further drives it down.
> > 
> > 
> > Cut a long story short though, I personally think that around
> > £1700/month after tax is the 'sweet spot' for any developer
> > (assuming you're not in the city). Anything beyond that is a
> > bonus :)
> > 
> > 
> > Cal
> > 
> > 
> > 
> > 
> > On Thu, May 3, 2012 at 8:00 AM, Raphael
> >  wrote:
> > 
> > Hello Kurtis,
> > 
> > thank you for letting is know about C. Lemmings post, we are
> > going to use all the information we are able to grab.
> > Got project data via email - but anyway till now its far not
> > enough.
> > 
> > http://develissimo.com/forum/topic/107887/
> > 
> > Kind regards,
> > Raphael 
> > 
> > 
> > 
> > 
> > On Tue, 2012-05-01 at 10:44 -0400, Kurtis Mullins wrote:
> 

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Cal Leeming [Simplicity Media Ltd]
On Thu, May 3, 2012 at 2:47 PM, Daniel Sokolowski  wrote:

>  Did the math here and that works out to about $2700/month. I would say
> that would be the bare minimum considering my NOT lavish life style -
> family, house, car etc.
>

It completely depends on the cost of living in your
country/area/circumstances.

Perhaps sweet spot was the wrong choice of words, as I meant for it to mean
"typical minimum" take home salary every month.


> Furthermore these 'charlatans' driving the price up is a GREAT thing
> because talent and skill is not cheap  - these people know what they are
> worth and charge accordingly - sure some are better sales people then
> programmers.
>


>
> Time and time again I am reminded that anyone can call themselves a web
> designer - but only a few can do what we can - that I am a web engineer.
>
> Django strengths lies in customization and ability to deliver exactly when
> the client wants while saving us some a small amount of time on the basics,
> it's easy to put up a pretty $15 dollar template based static site - damn I
> had clients thinking they were good web designer and just wanted hosting -
> but not everyone can deliver exactly what is required, that does not use a
> purchased rigid piece of code out there, or code something innovative from
> scratch to solve a need.
>
> I'll repeat *not everyone can do what we can do* so charge accordingly,
> be proud, confident and call your self a web engineer. If you talk big,
> appear big, deliver big you will attract those big projects - of course if
> people Google you or your business you better be on first page to justify
> that.
>
> The company I work for as an employee charges $65/hour - after all
> expenses, down time, employee wages, not billable tasks the profit margins
> are not that great I recon - I would guess target being business making $20
> an hour I doubt that happens often though.
>
> Final food for thought - a plumber service here starts at $60-100 / hour.
>

A plumber is mostly manual labor which will take a toll on the body over
the years.

I've seen quite a few people making these comparisons to manual labor jobs
and, in my opinion, they are completely irrelevant.

A plumber also has travel costs, fuel, cost in lost time travelling,
covering free quotations etc.


>
> --
> Daniel Sokolowski
> Web Engineer
> Danols Web Engineeringhttp://webdesign.danols.com/
> Office: 613-817-6833
> Fax: 613-817-4553
> Toll Free: 1-855-5DANOLS
> Kingston, ON K7L 1H3, Canada
>
>
>
>
> On 03/05/2012 06:31, Cal Leeming [Simplicity Media Ltd] wrote:
>
> Hi,
>
>  Just my two cents worth on this (albeit slightly off topic) - it's not
> all about technical ability or the industry you are working in.
>
>  Most clients are willing to pay that extra premium for contractors who
> are able to manage expectations and go above and beyond.
>
>  I've seen many great developers with amazing skills go unnoticed,
> primarily because they don't know how to handle clients, clear and concise
> communication plays a huge part in pricing.
>
>  The other problem is that the market is flooded with charlatans, who are
> driving the prices up and make it even more diluted for the rest of us.
>
>  You also have to remember that many people don't factor in project
> management and sales/phone calls into the hourly rate - they simply absorb
> the costs - which further drives it down.
>
>  Cut a long story short though, I personally think that around
> £1700/month after tax is the 'sweet spot' for any developer (assuming
> you're not in the city). Anything beyond that is a bonus :)
>
>  Cal
>
>
> On Thu, May 3, 2012 at 8:00 AM, Raphael wrote:
>
>>  Hello Kurtis,
>>
>> thank you for letting is know about C. Lemmings post, we are going to use
>> all the information we are able to grab.
>> Got project data via email - but anyway till now its far not enough.
>>
>> http://develissimo.com/forum/topic/107887/
>>
>> Kind regards,
>> Raphael
>>
>>
>>
>> On Tue, 2012-05-01 at 10:44 -0400, Kurtis Mullins wrote:
>>
>> Raphael,
>>
>>
>>
>>  According to another topic -- some developers are being paid roughly
>> $20/hour. It's under a post by Cal Lemmings where he is trying to hire some
>> entry level developer(s). You might be able to use that information as
>> well. I just thought I'd let you know.
>>
>>  On Mon, Apr 30, 2012 at 4:24 PM, Raphael 
>> wrote:
>>
>>  Dear djangos,
>>
>> if you want to hand-in your data anonymously - just send us an email to
>> django[at]develissimo.com
>> we really need more data to achieve some meaningful results.
>>
>> http://develissimo.com/forum/topic/107887/
>>
>> Cheers,
>> Raphael
>>
>>
>>
>>   --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.

Re: Problemas con syncdb

2012-05-03 Thread Joel Goldstick
On Wed, May 2, 2012 at 7:23 PM, webipy  wrote:
> @Ivo Marcelo Leonardi Zaniolo
>
> Where have you created or put your database file while using 1.4 version ,
> because I too have got this error and have been struggling to run it :( but
> now reverted to 1.3 and it works.
>
> --
> View this message in context: 
> http://python.6.n6.nabble.com/Problemas-con-syncdb-tp4681998p4947768.html
> Sent from the django-users mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
According to the documentation:
https://docs.djangoproject.com/en/1.4/ref/settings/#name

Default: '' (Empty string)

The name of the database to use. For SQLite, it's the full path to the
database file. When specifying the path, always use forward slashes,
even on Windows (e.g. C:/homes/user/mysite/sqlite3.db).

So you should have a full path to the file, not just its name
-- 
Joel Goldstick

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



404 errors reported as 500 errors

2012-05-03 Thread James Hargreaves
Hello,

I have created a website using Django CMS:

http://www.trailer-traders.co.uk

When I visit a URL on this site that does not exist in Django CMS I get a 
500 error - eg:

http://www.trailer-traders.co.uk/xxx

I was expecting a 404 error. Before you say it I don't think this is caused 
by Django CMS since if I set DEBUG = TRUE in settings.py I get a page not 
found (404) error as expected. I have the following static files in my 
template directory:

lrwxrwxrwx 1 jay www-data   10 Apr 11 06:40 403.html -> error.html
lrwxrwxrwx 1 jay www-data   10 May  3 09:24 404.html -> error.html
lrwxrwxrwx 1 jay www-data   10 Apr 11 06:40 500.html -> error.html
-rw-r- 1 jay www-data  863 Apr 11 20:53 error.html  



The contents of error.html file is output with the 500 error, which implies 
that the 500.html symbolic link is working. Why is the 404.html file being 
ignored? I have tried replacing the symbolic link with a static file but to 
no avail.

Unfortunately I don't have logging enabled for this site - I'm going to 
rectify that ASAP but in the meantime can anyone point me in the right 
direction?

Thanks
James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/2XzRNeRyrvMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Marcin Tustin
This. Too many creative professionals sell themselves short, and so drive
down the going rate for all of us.

On Thu, May 3, 2012 at 2:47 PM, Daniel Sokolowski  wrote:

>  Did the math here and that works out to about $2700/month. I would say
> that would be the bare minimum considering my NOT lavish life style -
> family, house, car etc. Furthermore these 'charlatans' driving the price up
> is a GREAT thing because talent and skill is not cheap  - these people know
> what they are worth and charge accordingly - sure some are better sales
> people then programmers.
>
> Time and time again I am reminded that anyone can call themselves a web
> designer - but only a few can do what we can - that I am a web engineer.
>
> Django strengths lies in customization and ability to deliver exactly when
> the client wants while saving us some a small amount of time on the basics,
> it's easy to put up a pretty $15 dollar template based static site - damn I
> had clients thinking they were good web designer and just wanted hosting -
> but not everyone can deliver exactly what is required, that does not use a
> purchased rigid piece of code out there, or code something innovative from
> scratch to solve a need.
>
> I'll repeat *not everyone can do what we can do* so charge accordingly,
> be proud, confident and call your self a web engineer. If you talk big,
> appear big, deliver big you will attract those big projects - of course if
> people Google you or your business you better be on first page to justify
> that.
>
> The company I work for as an employee charges $65/hour - after all
> expenses, down time, employee wages, not billable tasks the profit margins
> are not that great I recon - I would guess target being business making $20
> an hour I doubt that happens often though.
>
> Final food for thought - a plumber service here starts at $60-100 / hour.
>
> --
> Daniel Sokolowski
> Web Engineer
> Danols Web Engineeringhttp://webdesign.danols.com/
> Office: 613-817-6833
> Fax: 613-817-4553
> Toll Free: 1-855-5DANOLS
> Kingston, ON K7L 1H3, Canada
>
>
>
>
> On 03/05/2012 06:31, Cal Leeming [Simplicity Media Ltd] wrote:
>
> Hi,
>
>  Just my two cents worth on this (albeit slightly off topic) - it's not
> all about technical ability or the industry you are working in.
>
>  Most clients are willing to pay that extra premium for contractors who
> are able to manage expectations and go above and beyond.
>
>  I've seen many great developers with amazing skills go unnoticed,
> primarily because they don't know how to handle clients, clear and concise
> communication plays a huge part in pricing.
>
>  The other problem is that the market is flooded with charlatans, who are
> driving the prices up and make it even more diluted for the rest of us.
>
>  You also have to remember that many people don't factor in project
> management and sales/phone calls into the hourly rate - they simply absorb
> the costs - which further drives it down.
>
>  Cut a long story short though, I personally think that around
> £1700/month after tax is the 'sweet spot' for any developer (assuming
> you're not in the city). Anything beyond that is a bonus :)
>
>  Cal
>
>
> On Thu, May 3, 2012 at 8:00 AM, Raphael wrote:
>
>>  Hello Kurtis,
>>
>> thank you for letting is know about C. Lemmings post, we are going to use
>> all the information we are able to grab.
>> Got project data via email - but anyway till now its far not enough.
>>
>> http://develissimo.com/forum/topic/107887/
>>
>> Kind regards,
>> Raphael
>>
>>
>>
>> On Tue, 2012-05-01 at 10:44 -0400, Kurtis Mullins wrote:
>>
>> Raphael,
>>
>>
>>
>>  According to another topic -- some developers are being paid roughly
>> $20/hour. It's under a post by Cal Lemmings where he is trying to hire some
>> entry level developer(s). You might be able to use that information as
>> well. I just thought I'd let you know.
>>
>>  On Mon, Apr 30, 2012 at 4:24 PM, Raphael 
>> wrote:
>>
>>  Dear djangos,
>>
>> if you want to hand-in your data anonymously - just send us an email to
>> django[at]develissimo.com
>> we really need more data to achieve some meaningful results.
>>
>> http://develissimo.com/forum/topic/107887/
>>
>> Cheers,
>> Raphael
>>
>>
>>
>>   --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at

Re: Satchmo product model ER graph?

2012-05-03 Thread Daniel Sokolowski
django_extensions app has a model graphing option I used successfully in 
the past - https://github.com/django-extensions/django-extensions


Example output I found 
http://brianglass.files.wordpress.com/2009/11/sheepology.png


On 03/05/2012 09:04, Guddu wrote:

You could use something like ER Master http://ermaster.sourceforge.net/
or Aqua Studio to generate the Graph.

On May 3, 8:42 am, kooliah
wrote:

I need to import an already running database into a satchmo store.
I started to make an ER graph, as a reference for the fields mapping, by
myself, but if someone had already done it, i'd like to save time.

Thanks to all

Kooliah



--
Daniel Sokolowski
Web Engineer
Danols Web Engineering
http://webdesign.danols.com/

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Daniel Sokolowski
Did the math here and that works out to about $2700/month. I would say 
that would be the bare minimum considering my NOT lavish life style - 
family, house, car etc. Furthermore these 'charlatans' driving the price 
up is a GREAT thing because talent and skill is not cheap  - these 
people know what they are worth and charge accordingly - sure some are 
better sales people then programmers.


Time and time again I am reminded that anyone can call themselves a web 
designer - but only a few can do what we can - that I am a web engineer.


Django strengths lies in customization and ability to deliver exactly 
when the client wants while saving us some a small amount of time on the 
basics, it's easy to put up a pretty $15 dollar template based static 
site - damn I had clients thinking they were good web designer and just 
wanted hosting - but not everyone can deliver exactly what is required, 
that does not use a purchased rigid piece of code out there, or code 
something innovative from scratch to solve a need.


I'll repeat *not everyone can do what we can do* so charge accordingly, 
be proud, confident and call your self a web engineer. If you talk big, 
appear big, deliver big you will attract those big projects - of course 
if people Google you or your business you better be on first page to 
justify that.


The company I work for as an employee charges $65/hour - after all 
expenses, down time, employee wages, not billable tasks the profit 
margins are not that great I recon - I would guess target being business 
making $20 an hour I doubt that happens often though.


Final food for thought - a plumber service here starts at $60-100 / hour.

--
Daniel Sokolowski
Web Engineer
Danols Web Engineering
http://webdesign.danols.com/
Office: 613-817-6833
Fax: 613-817-4553
Toll Free: 1-855-5DANOLS
Kingston, ON K7L 1H3, Canada




On 03/05/2012 06:31, Cal Leeming [Simplicity Media Ltd] wrote:

Hi,

Just my two cents worth on this (albeit slightly off topic) - it's not 
all about technical ability or the industry you are working in.


Most clients are willing to pay that extra premium for contractors who 
are able to manage expectations and go above and beyond.


I've seen many great developers with amazing skills go unnoticed, 
primarily because they don't know how to handle clients, clear and 
concise communication plays a huge part in pricing.


The other problem is that the market is flooded with charlatans, who 
are driving the prices up and make it even more diluted for the rest 
of us.


You also have to remember that many people don't factor in project 
management and sales/phone calls into the hourly rate - they simply 
absorb the costs - which further drives it down.


Cut a long story short though, I personally think that around 
£1700/month after tax is the 'sweet spot' for any developer (assuming 
you're not in the city). Anything beyond that is a bonus :)


Cal


On Thu, May 3, 2012 at 8:00 AM, Raphael > wrote:


Hello Kurtis,

thank you for letting is know about C. Lemmings post, we are going
to use all the information we are able to grab.
Got project data via email - but anyway till now its far not enough.

http://develissimo.com/forum/topic/107887/

Kind regards,
Raphael



On Tue, 2012-05-01 at 10:44 -0400, Kurtis Mullins wrote:
Raphael, 



According to another topic -- some developers are being paid
roughly $20/hour. It's under a post by Cal Lemmings where he is
trying to hire some entry level developer(s). You might be able
to use that information as well. I just thought I'd let you know.

On Mon, Apr 30, 2012 at 4:24 PM, Raphael
> wrote: 


Dear djangos,

if you want to hand-in your data anonymously - just send us
an email to django[at]develissimo.com 
we really need more data to achieve some meaningful results.

http://develissimo.com/forum/topic/107887/

Cheers,
Raphael



-- 
You received this message because you are subscribed to the

Google Groups "Django users" group.
To post to this group, send email to
django-users@googlegroups.com
.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.




-- 
You received this message because you are subscribed to the

Google Groups "Django users" group.
To post to this group, send email to
django-users@googlegroups.com .
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com

Re: i18n - local translation does not show up - bug

2012-05-03 Thread Ramiro Morales
On Thu, May 3, 2012 at 9:17 AM, kenneth gonsalves
 wrote:
>
> I had gone through the docs and added the LOCALE_PATHS setting - but it
> just does not work - have tried on fedora, debian, ubuntu ...

Good to know that, I couldn't infer that from your initial email.

It'd be strange, but certainly possible, it is broken. We have
a test case checking that such feature works:

https://github.com/django/django/blob/master/tests/regressiontests/views/tests/i18n.py#L140

Could you reduce your failing case to the simplest form
and share it so we can do more research?.

-- 
Ramiro Morales

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Satchmo product model ER graph?

2012-05-03 Thread Guddu
You could use something like ER Master http://ermaster.sourceforge.net/
or Aqua Studio to generate the Graph.

On May 3, 8:42 am, kooliah 
wrote:
> I need to import an already running database into a satchmo store.
> I started to make an ER graph, as a reference for the fields mapping, by
> myself, but if someone had already done it, i'd like to save time.
>
> Thanks to all
>
> Kooliah

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Satchmo product model ER graph?

2012-05-03 Thread kooliah

I need to import an already running database into a satchmo store.
I started to make an ER graph, as a reference for the fields mapping, by 
myself, but if someone had already done it, i'd like to save time.


Thanks to all

Kooliah

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: i18n - local translation does not show up - bug

2012-05-03 Thread kenneth gonsalves
On Wed, 2012-05-02 at 10:53 -0300, Ramiro Morales wrote:
> > I want two languages in my project - en and ta. I have set this up
> in
> > many projects over the years and this is the first time I am seeing
> > failure. The problem is that on switching to tamil, the django
> strings
> > are getting translated, but not the local strings. Django is
> obviously
> > not finding my local .mo file. Makemessages and compilemessages work
> > fine. My locale directory is at the same level as manage.py. Even if
> I
> > put it at the same level as settings.py, it still does not work.
> >
> > django version - latest trunk
> >
> > later: on checking, this works upto revision 17860 and breaks from
> 17861
> 
> Well if you are using the development version it is assumed you are
> closely
> following the development activity (so this kind of changes don't take
> you by
> surprise) and/or can read the Fine Manual where the decprecation
> and the steps you need to take are (and have been since Django 1.3 Apr
> 2011)
> documented.
> 
> Two hints: The Django 1.3 release notes and the LOCALE_PATHS setting.
> 
> 

I had gone through the docs and added the LOCALE_PATHS setting - but it
just does not work - have tried on fedora, debian, ubuntu ...
-- 
regards
Kenneth Gonsalves

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Cal Leeming [Simplicity Media Ltd]
Hi,

Just my two cents worth on this (albeit slightly off topic) - it's not all
about technical ability or the industry you are working in.

Most clients are willing to pay that extra premium for contractors who are
able to manage expectations and go above and beyond.

I've seen many great developers with amazing skills go unnoticed, primarily
because they don't know how to handle clients, clear and concise
communication plays a huge part in pricing.

The other problem is that the market is flooded with charlatans, who are
driving the prices up and make it even more diluted for the rest of us.

You also have to remember that many people don't factor in project
management and sales/phone calls into the hourly rate - they simply absorb
the costs - which further drives it down.

Cut a long story short though, I personally think that around £1700/month
after tax is the 'sweet spot' for any developer (assuming you're not in the
city). Anything beyond that is a bonus :)

Cal


On Thu, May 3, 2012 at 8:00 AM, Raphael  wrote:

> **
> Hello Kurtis,
>
> thank you for letting is know about C. Lemmings post, we are going to use
> all the information we are able to grab.
> Got project data via email - but anyway till now its far not enough.
>
> http://develissimo.com/forum/topic/107887/
>
> Kind regards,
> Raphael
>
>
>
> On Tue, 2012-05-01 at 10:44 -0400, Kurtis Mullins wrote:
>
> Raphael,
>
>
>
>  According to another topic -- some developers are being paid roughly
> $20/hour. It's under a post by Cal Lemmings where he is trying to hire some
> entry level developer(s). You might be able to use that information as
> well. I just thought I'd let you know.
>
>  On Mon, Apr 30, 2012 at 4:24 PM, Raphael 
> wrote:
>
>  Dear djangos,
>
> if you want to hand-in your data anonymously - just send us an email to
> django[at]develissimo.com
> we really need more data to achieve some meaningful results.
>
> http://develissimo.com/forum/topic/107887/
>
> Cheers,
> Raphael
>
>
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



404 Issues

2012-05-03 Thread James Hargreaves
Hello,

I have created a website using Django CMS:

http://www.trailer-traders.co.uk

When I visit a URL on this site that does not exist in Django CMS I get a 
500 error - eg:

http://www.trailer-traders.co.uk/xxx

I was expecting a 404 error. Before you say it I don't think this is caused 
by Django CMS since if I set DEBUG = TRUE in settings.py I get a page not 
found (404) error as expected. I have the following static files in my 
template directory:

lrwxrwxrwx 1 jay www-data   10 Apr 11 06:40 403.html -> error.html
lrwxrwxrwx 1 jay www-data   10 May  3 09:24 404.html -> error.html
lrwxrwxrwx 1 jay www-data   10 Apr 11 06:40 500.html -> error.html-rw-r- 1 
jay www-data  863 Apr 11 20:53 error.html   
   


The contents of error.html file is output with the 500 error, which implies 
that the 500.html symbolic link is working. Why is the 404.html file being 
ignored? I have tried replacing the symbolic link with a static file but to 
no avail.

Unfortunately I don't have logging enabled for this site - I'm going to 
rectify that ASAP but in the meantime can anyone point me in the right 
direction?

Thanks
James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/FPaNpPdeE2oJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Problemas con syncdb

2012-05-03 Thread webipy
@Ivo Marcelo Leonardi Zaniolo

Where have you created or put your database file while using 1.4 version ,
because I too have got this error and have been struggling to run it :( but
now reverted to 1.3 and it works.

--
View this message in context: 
http://python.6.n6.nabble.com/Problemas-con-syncdb-tp4681998p4947768.html
Sent from the django-users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Raphael
Hello Kurtis,

thank you for letting is know about C. Lemmings post, we are going to
use all the information we are able to grab.
Got project data via email - but anyway till now its far not enough.

http://develissimo.com/forum/topic/107887/

Kind regards,
Raphael


On Tue, 2012-05-01 at 10:44 -0400, Kurtis Mullins wrote:

> Raphael,
> 
> 
> 
> According to another topic -- some developers are being paid roughly
> $20/hour. It's under a post by Cal Lemmings where he is trying to hire
> some entry level developer(s). You might be able to use that
> information as well. I just thought I'd let you know.
> 
> 
> On Mon, Apr 30, 2012 at 4:24 PM, Raphael 
> wrote:
> 
> Dear djangos,
> 
> if you want to hand-in your data anonymously - just send us an
> email to django[at]develissimo.com
> we really need more data to achieve some meaningful results.
> 
> http://develissimo.com/forum/topic/107887/
> 
> Cheers,
> Raphael
> 
> 
> 
> -- 
> You received this message because you are subscribed to the
> Google Groups "Django users" group.
> To post to this group, send email to
> django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Server error caused by too many database look-ups

2012-05-03 Thread koenb
You should use DEBUG=True in your development settings, so you get a proper 
traceback of what is going on. 

As far as I can see, you do have syntax errors in your models.py file (eg 
line 266). You should fix them first.

As a side note, your unicode methods are not all correct, some of them are 
returning bytestrings (this may bite you once you start using non-ascii 
data).

Koen

Op woensdag 2 mei 2012 21:37:30 UTC+2 schreef Jonas Ghyllebert het volgende:
>
> Hi everybody,
>
> I've got a problem while accessing a model in the Django Adminpanel.
> I uploaded the models file, i hope this makes it easier for you to 
> understand my problem.
>
> When I try to add or view a *Region *in the adminpanel, the server 
> usually gives me an 500 server error.
> This is what i get to see:
>  
> Error: Server ErrorThe server encountered an error and could not complete 
> your request.
>
> If the problem persists, please 
> report your 
> problem and mention this error message and the query that caused it.
>
> Now, in the uploaded file you may (or not) have seen that I want to have 
> 25 fields from Zip.
>
> My guess is that Django connects to the database for every listbox it is 
> generating.
> Is there a way to cache the 2000+ zips?
> Or, am I seeing it wrong? What should I do then?
>
> Greetings
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/-6OzpusVZSMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Dojo Rich Editor Implementation in Admin.py

2012-05-03 Thread Gchorn
So after doing some more research and playing around with the settings, I 
want to post an updated version of my question.  Here it is.

I'm building a blog, with models "Post" and "Image" like so:

class Post(models.Model):
title = models.CharField(max_length=1000)
author = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
text = models.TextField(max_length=1)

class Image(models.Model):
post = models.ForeignKey(Post, related_name='images')
image = models.ImageField(upload_to='photos/%Y/%m/%d')
caption = models.CharField(max_length=1000,blank=True)

I've been trying to implement the Dojo rich editor in my admin site by 
following the example here:

http://lazutkin.com/blog/2011/mar/13/using-dojo-rich-editor-djangos-admin/

However, there's some kind of interference between settings in my admin.py 
file that is keeping me from registering both the rich editor and a 
ModelAdmin class for uploading images associated with an instance of 
"Post." If I use the following code in my admin.py file:

from django.contrib.admin import site, ModelAdmin
import models

class CommonMedia:
js = (
  'https://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js',
  'editor.js',
)
css = {
  'all': ('editor.css',),
}

site.register(models.Post,
Media = CommonMedia,
)

The rich text editor shows up fine. But if I add some code for image 
uploading fields, like so:

from blogs.models import Post,Image
from django.contrib import admin
from django.contrib.admin import site, ModelAdmin
import models


class CommonMedia:
  js = (
'https://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js',
'editor.js',
  )
  css = {
'all': ('editor.css',),
  }

class PostImageInline(admin.TabularInline):
model = Image
extra = 5

class PostAdmin(admin.ModelAdmin):
inlines = [PostImageInline]

site.register(models.Post,
list_display = ('text',),
search_fields = ['text',],
Media = CommonMedia,
)

admin.site.unregister(Post)

admin.site.register(Post, PostAdmin)

the rich editor doesn't show up. I'm guessing this is due to the 
"admin.site.unregister(Post)" line, but if I don't use that I get the 
error, "The model Post is already registered." If instead I remove both 
that line and the "Post" from "admin.site.register(Post, PostAdmin)", I get 
the error: "'MediaDefiningClass' object is not iterable".  I know I must be 
going about registering my ModelAdmin and the rich editor incorrectly, but 
I can't seem to find any documentation online about "admin.site.register" 
and "site.register," so I'm totally stuck.  Any help on this would be much 
appreciated!

cheers,

Guillaume

On Tuesday, May 1, 2012 1:34:31 PM UTC+8, Gchorn wrote:
>
> Hi All,
>
> I'm building a blog, with models "Post" and "Image" (each blog post can 
> have multiple images; they're related by ForeignKey) and I'm trying to 
> implement the Dojo rich editor in my admin site by following the example 
> here: 
>
> https://gist.github.com/868595
>
> However, the rich editor is not showing up.  I have a feeling I don't have 
> something set up correctly in my admin.py file; could anyone tell me what 
> it is?  Here are the contents of admin.py:
>
> from blogs.models import Post,Image
> from django.contrib import admin
> from django.contrib.admin import site, ModelAdmin
> import models
>
>
> class CommonMedia:
>   js = (
> 'https://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js',
> '/home/guillaume/mysite/blogs/static/editor.js',
>   )
>   css = {
> 'all': ('/home/guillaume/mysite/blogs/static/editor.css',),
>   }
>
> class PostImageInline(admin.TabularInline):
> model = Image
> extra = 5
>
> class PostAdmin(admin.ModelAdmin):
> inlines = [PostImageInline]
>
> site.register(models.Post,
> list_display = ('text',),
> search_fields = ['text',],
> Media = CommonMedia,
> )
>
> admin.site.unregister(Post)
>
> admin.site.register(Post, PostAdmin)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/DbT0JenkPsYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django's DecimalField represenation in admin as 0,00 values

2012-05-03 Thread jrief
Internally a price is always handled and stored as 0.00. Thats the way 
software and databases work.

What you can do is to change the representation of your Decimal in your 
frontend and backend. In Django, changing this in the frontend its easy, 
just add USE_L10N = True to your settings.py and add localized=True to all 
occurrences of form fields handling a Decimal (see 
https://docs.djangoproject.com/en/1.4/ref/forms/fields/#localize)

The problem is the backend, because you are not specifying these form 
field. What I do is to add a mixin class to my admin classes, as described 
here: https://github.com/divio/django-shop/pull/146#issuecomment-4720340 
and 
here https://github.com/divio/django-shop/blob/master/shop/admin/mixins.py

For your "2.1" problem, set decimal_places to 2 DecimalField.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/3W6XMRFdBFUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.