reading excel docs using python made easy

2012-04-13 Thread dizzydoc
wrote this to get a list of dict with a key/value pair with key as col
name and value as its corresponding row value...
i'l b glad if its an aid to a programmer.

import xlrd

def get_xls_info_list( sheet_name, sheet_no ):
'''
Function: takes as arguments excel sheet name, sheet number within
excel
Returns: a list of dictionaries.
Each dict: key:: column name, value:: row value corresponding to
current column(key)
'''
wb = xlrd.open_workbook(sheet_name)
sh = wb.sheet_by_index(sheet_no)
rowlist = sh.__dict__['_cell_values']
colname_list = rowlist[0]
rowval_list = rowlist[1:]
value_dict_list = []

for each_rowval_index, each_rowval_list in enumerate(rowval_list):
val_dict = {}
for val_index, val in enumerate(each_rowval_list):
val_dict[colname_list[val_index]] = val
value_dict_list.append(val_dict)
return value_dict_list

-- 
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.



Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Eli_West
I've been attempting the most basic ajax call (.load()  )  through
django for over a month now - each time trying a different method or
tutorial none with success. Can someone post a working paradigm for
whatever django csrf, firefox, ect. workaround they use?

I can get jquery .load() to load content from an external file with
static files , no django. Same file served through django/templating
and the ajax is blocked. This is the general jquery call:

$(document).ready(function() {
$('.list').click(function () {
$('#message').load('namesinfo.htm li');
return false;
});
});

To make things worse I found that Firefox/Chrome breaks Jquery's
sample 'Tabs: load content via ajax'  in the Themroller download. But
it works in IE :/. Same .load() calls occuring here. Just working w
static files no django. Could it be related to Firefox/Chrome?

I am pretty sure it is not: static file serving issues. I have heard
comments to follow django 'csrf / ajax' and included their sameOrgin
script to no avail. :

https://docs.djangoproject.com/en/dev/ref/contrib/csrf/

A similar issue even though this guys solution is hard to understand:

http://stackoverflow.com/questions/6643242/jquery-load-not-working-in-django




-- 
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.



Avoid verbose_name HTML escaping in admin

2012-04-13 Thread FraMazz
Is it possible to avoid HTML escaping in admin?
I have defined a model with verbose_name for several fields. 
In verbose_name I need HTML code to highlight part of the string e.g. 
d1 = models.CharField(max_length=1, blank=False, default='0',  
verbose_name="Hi all!'').
In admin the text gets escaped resulting in the whole string being shown 
(Hi all!) instead of Hi *all*!
I also tried verbose_name=mark_safe("Hi all!'') to no avail

Suggestions?
Thanks
Francesca

-- 
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/-/LYnO1AIlc_EJ.
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: DB queries at import time

2012-04-13 Thread Thomas Guettler

Am 12.04.2012 23:33, schrieb Matt Schinckel:

If you install django-devserver, and enable SQL queries in the console, then
every query will be displayed as it happens, and you should be able to track 
them
down.


thank you, django-devserver seems to have a lot of other nice debugging 
features.

  Thomas

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

--
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.



Django unable to write to an NFS share

2012-04-13 Thread Bastian
Hi,

I have a working Django project and I am trying to add a second server. In 
the process I am making an NFS share on one server. The Apache instances on 
this server (the NFS host) can write (mostly images) to this directory but 
the other server (the NFS client) seems unable. Actually from this second 
server I changed the permissions of the share to 777 just to make sure and 
still root can write but www-data can only create file, it is denied the 
right to write them. Very strange situation that I don't understand. 
Searching this group and Google led me to few information. There is this 
lock issue thing that I'm not sure to understand if it has been fixed. Any 
clue is welcome. I'm using Debian Squeeze, Django 1.3 and this is the 
options I use in the export: 
rw,sync,no_root_squash,no_subtree_check,insecure

Thanks,
Bastian

-- 
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/-/Sa6abp7NGHoJ.
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: Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Daniel Roseman
On Friday, 13 April 2012 08:08:19 UTC+1, Eli_West wrote:
>
> I've been attempting the most basic ajax call (.load()  )  through 
> django for over a month now - each time trying a different method or 
> tutorial none with success. Can someone post a working paradigm for 
> whatever django csrf, firefox, ect. workaround they use? 
>
> I can get jquery .load() to load content from an external file with 
> static files , no django. Same file served through django/templating 
> and the ajax is blocked. This is the general jquery call: 
>
> $(document).ready(function() { 
> $('.list').click(function () { 
> $('#message').load('namesinfo.htm li'); 
> return false; 
> }); 
> }); 
>
> To make things worse I found that Firefox/Chrome breaks Jquery's 
> sample 'Tabs: load content via ajax'  in the Themroller download. But 
> it works in IE :/. Same .load() calls occuring here. Just working w 
> static files no django. Could it be related to Firefox/Chrome? 
>
> I am pretty sure it is not: static file serving issues. I have heard 
> comments to follow django 'csrf / ajax' and included their sameOrgin 
> script to no avail. : 
>
> https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ 
>
> A similar issue even though this guys solution is hard to understand: 
>
>
> http://stackoverflow.com/questions/6643242/jquery-load-not-working-in-django 
>
>  
The argument to `load` is the URL you want to load. If you want that to be 
served by Django, you need to pass in a URL that's handled by your Django 
urls.py. 'namesinfo.htm' seems unlikely to be a Django url.
--
DR.

-- 
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/-/3CzEsK5NobAJ.
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: Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Joey Espinosa
Daniel is right. The only way your code will work is if you've set up your
argument to load() to be caught by urls.py.

Also, in your case, it seems like your argument to load() is a mix of URL
and CSS selector... Make sure you're using a URL there.

Check out my blog for a very basic tutorial on getting AJAX to work in
Django:

http://joelinux117.blogspot.com/2011/11/making-ajax-calls-in-django-using-dojo.html

It's using Dojo, but the same principle applies with jQuery (just make sure
where the tutorial calls a URL, you're passing the URL as an argument to
load().

--
Joey Espinosa
Software Engineer
http://about.me/joelinux
On Apr 13, 2012 5:39 AM, "Daniel Roseman"  wrote:

> On Friday, 13 April 2012 08:08:19 UTC+1, Eli_West wrote:
>>
>> I've been attempting the most basic ajax call (.load()  )  through
>> django for over a month now - each time trying a different method or
>> tutorial none with success. Can someone post a working paradigm for
>> whatever django csrf, firefox, ect. workaround they use?
>>
>> I can get jquery .load() to load content from an external file with
>> static files , no django. Same file served through django/templating
>> and the ajax is blocked. This is the general jquery call:
>>
>> $(document).ready(function() {
>> $('.list').click(function () {
>> $('#message').load('namesinfo.**htm li');
>> return false;
>> });
>> });
>>
>> To make things worse I found that Firefox/Chrome breaks Jquery's
>> sample 'Tabs: load content via ajax'  in the Themroller download. But
>> it works in IE :/. Same .load() calls occuring here. Just working w
>> static files no django. Could it be related to Firefox/Chrome?
>>
>> I am pretty sure it is not: static file serving issues. I have heard
>> comments to follow django 'csrf / ajax' and included their sameOrgin
>> script to no avail. :
>>
>> https://docs.djangoproject.**com/en/dev/ref/contrib/csrf/
>>
>> A similar issue even though this guys solution is hard to understand:
>>
>> http://stackoverflow.com/**questions/6643242/jquery-load-**
>> not-working-in-django
>>
>>
> The argument to `load` is the URL you want to load. If you want that to be
> served by Django, you need to pass in a URL that's handled by your Django
> urls.py. 'namesinfo.**htm' seems unlikely to be a Django url.
> --
> DR.
>
> --
> 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/-/3CzEsK5NobAJ.
> 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: Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Joey Espinosa
Btw, disregard what I said about mixing URL and CSS selectors. I forgot
that load() can do that (I usually use ajax() or get()/post(), neither of
which supports that). MY BAD!

--
Joey Espinosa
Software Engineer
http://about.me/joelinux
On Apr 13, 2012 6:05 AM, "Joey Espinosa"  wrote:

> Daniel is right. The only way your code will work is if you've set up your
> argument to load() to be caught by urls.py.
>
> Also, in your case, it seems like your argument to load() is a mix of URL
> and CSS selector... Make sure you're using a URL there.
>
> Check out my blog for a very basic tutorial on getting AJAX to work in
> Django:
>
>
> http://joelinux117.blogspot.com/2011/11/making-ajax-calls-in-django-using-dojo.html
>
> It's using Dojo, but the same principle applies with jQuery (just make
> sure where the tutorial calls a URL, you're passing the URL as an argument
> to load().
>
> --
> Joey Espinosa
> Software Engineer
> http://about.me/joelinux
> On Apr 13, 2012 5:39 AM, "Daniel Roseman"  wrote:
>
>> On Friday, 13 April 2012 08:08:19 UTC+1, Eli_West wrote:
>>>
>>> I've been attempting the most basic ajax call (.load()  )  through
>>> django for over a month now - each time trying a different method or
>>> tutorial none with success. Can someone post a working paradigm for
>>> whatever django csrf, firefox, ect. workaround they use?
>>>
>>> I can get jquery .load() to load content from an external file with
>>> static files , no django. Same file served through django/templating
>>> and the ajax is blocked. This is the general jquery call:
>>>
>>> $(document).ready(function() {
>>> $('.list').click(function () {
>>> $('#message').load('namesinfo.**htm li');
>>> return false;
>>> });
>>> });
>>>
>>> To make things worse I found that Firefox/Chrome breaks Jquery's
>>> sample 'Tabs: load content via ajax'  in the Themroller download. But
>>> it works in IE :/. Same .load() calls occuring here. Just working w
>>> static files no django. Could it be related to Firefox/Chrome?
>>>
>>> I am pretty sure it is not: static file serving issues. I have heard
>>> comments to follow django 'csrf / ajax' and included their sameOrgin
>>> script to no avail. :
>>>
>>> https://docs.djangoproject.**com/en/dev/ref/contrib/csrf/
>>>
>>> A similar issue even though this guys solution is hard to understand:
>>>
>>> http://stackoverflow.com/**questions/6643242/jquery-load-**
>>> not-working-in-django
>>>
>>>
>> The argument to `load` is the URL you want to load. If you want that to
>> be served by Django, you need to pass in a URL that's handled by your
>> Django urls.py. 'namesinfo.**htm' seems unlikely to be a Django url.
>> --
>> DR.
>>
>> --
>> 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/-/3CzEsK5NobAJ.
>> 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 unable to write to an NFS share

2012-04-13 Thread Bastian
Let me reformulate that, I started again from scratch and the www-data user 
can actually create and edit files in the NFS share. Now what happens is 
that the app simply says connecting while trying to upload a file and it 
stays like that in the browser for as long as I don't stop it. I cannot see 
any error in the logs. I have my user-media set to the NFS share in my 
django settings. I have no idea what is going on!

On Friday, April 13, 2012 11:22:48 AM UTC+2, Bastian wrote:
>
> Hi,
>
> I have a working Django project and I am trying to add a second server. In 
> the process I am making an NFS share on one server. The Apache instances on 
> this server (the NFS host) can write (mostly images) to this directory but 
> the other server (the NFS client) seems unable. Actually from this second 
> server I changed the permissions of the share to 777 just to make sure and 
> still root can write but www-data can only create file, it is denied the 
> right to write them. Very strange situation that I don't understand. 
> Searching this group and Google led me to few information. There is this 
> lock issue thing that I'm not sure to understand if it has been fixed. Any 
> clue is welcome. I'm using Debian Squeeze, Django 1.3 and this is the 
> options I use in the export: 
> rw,sync,no_root_squash,no_subtree_check,insecure
>
> Thanks,
> Bastian
>

-- 
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/-/fjsQImbSvAYJ.
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: Is it a good practice to delegate views based on GET / POST?

2012-04-13 Thread sbrandt
Sorry, answered directly to author by accident.



Isn't this achieved by using class based views?


from django.views.generic import View
class MyView(View):
def get(request, *args, **kwargs)
...
def post(request, *args, **kwargs)
...

In addition, you can use the built-in mixins. Also, the django-rest-
framework uses this paradigm and it's amazing. So why use such a
strange method like mentioned in the django book?

-- 
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: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Gerald Klein
Hi, I apologize I didn't get your response till this morning, for whatever
reason I couldn't reply to the other email. ? Anyway I thought it over and
18 sites is a lot of responsibility for that income, I must kindly decline
this offer thank you for your consideration.

On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Further update on this - budget has changed so, we can now offer a higher
> rate and a part time alternative.
>
> * 1500$/month for 70 hours (20$/hour)
> * 2000$/month for 100 hours (20$/hour)
>
> Thanks
>
> Cal
>
> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Hi all,
>>
>> Another urgent position has come up in our company, applicant needs to
>> have some experience with using Django but must also be comfortable with
>> PHP (our clients are a 50/50 split between PHP and Django).
>>
>> --
>>
>> Simplicity Media Ltd are an established UK company providing bespoke IT
>> solutions for a variety of clients across the globe.
>>
>> We are currently looking for a flexible and diverse developer to maintain
>> and extend our existing PHP deployments.
>>
>> Our solutions are high volume (peaking at around 5000 requests/minute),
>> with extremely large databases (400 million+ rows) and large content
>> servers (15TB+ of media files).
>>
>> The successful candidate should have at least 2 years commercial
>> experience, be fluent OOP, and have a general understanding of what it
>> means to be a good programmer.
>>
>> We're looking for a real person with real emotion, not a corporate robot
>> - and being a team player is absolutely critical. Our company attitude is
>> firm but fair, we encourage a healthy mixture of fun/work, and we even have
>> a 'NSFW' IRC channel!
>>
>> Essential skills:
>> * PHP 5.x (OOP)
>> * MySQL
>> * Linux (Debian)
>> * Bash (shell/ssh etc)
>>
>> Desired (non-essential) skills:
>> * MongoDB
>> * Redhat
>> * Percona
>> * Memcache
>> * Redis
>> * Python
>>
>> Desired (non-essential) experience:
>> * CodeIgniter (PHP)
>> * TubeX (PHP)
>> * Django (Python)
>> * JIRA (Atlassian)
>> * Basecamp
>> * Zendesk
>> * Livechat
>>
>> MINIMUM CRITERIA:
>> * MUST be able to work on either EST or GMT+0 timezone
>> * MUST be able to work 30+ hours a week.
>> * MUST be comfortable working on 18+ sites.
>> * MUST be fluent in written & spoken English
>>
>> The position is full time, offering around $2000/month (roughly
>> £1200/month) for the right candidate - price/hours are negotiable.
>>
>> This position MUST be filled by 15th April 2012.
>>
>> When applying, please also include a cover note explaining why you feel
>> you would be suitable for this role.
>>
>>
>>
>  --
> 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: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Tom Evans
On Fri, Apr 13, 2012 at 1:23 PM, Mario Gudelj  wrote:
> Is this anywhere near a standard rate in UK?
>

For a junior developer outside of London, yes. For a junior developer
outside of London working remotely, definitely.

Cheers

Tom

-- 
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.



Audio Streaming Using Django

2012-04-13 Thread atul khairnar
Hi,
I am developing Internet Radio App using Django. But i don't know how to
stream the audio over web using django. which modules and technology to
use. Please Help.


Atul Khairnar
B.Tech
Department of Computer Engineering and Information Technology
College of Engineering , Pune
Cell - (+91)9579289613

-- 
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.



Listening to change of value of a field in model

2012-04-13 Thread Plaban Nayak
Hi,


I want to listen the change of a value of a field in a model. Is there
a signal for this ?





Plaban

-- 
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.



Form Validation and unique_together on update a model

2012-04-13 Thread Massimo Barbierato
Hi all, i'm new. I searched  in the group for answers to my problem, but i 
didn't find anything :(

My problem is this:

i have a model with two fields in unique_together, the related ModelForm 
and the view.
When i pass an instance of my model to the form to update it and then save 
it, i receive an error that says me that there is already a row with the 
specified fields.
I can't understand why.

Here you can read my code: http://pastebin.com/vDiHvpiV

Thanks a lot.

-- 
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/-/oeiOo6XO5OMJ.
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: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Marcin Tustin
I guess junior dev rates have plummeted in the last 10 years.

On Fri, Apr 13, 2012 at 13:25, Tom Evans  wrote:

> On Fri, Apr 13, 2012 at 1:23 PM, Mario Gudelj 
> wrote:
> > Is this anywhere near a standard rate in UK?
> >
>
> For a junior developer outside of London, yes. For a junior developer
> outside of London working remotely, definitely.
>
> Cheers
>
> Tom
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Avoid verbose_name HTML escaping in admin

2012-04-13 Thread Andre Terra
I'm only guessing, but I think the escaping is being done at rendering time
by the template itself. Take a look at the default admin templates and
check the docs for an explanation on how to override them with your own.

Protip: do not edit the original files!

Cheers,
AT

-- Sent from my phone, please excuse any typos. --
On Apr 13, 2012 6:16 AM, "FraMazz"  wrote:

> Is it possible to avoid HTML escaping in admin?
> I have defined a model with verbose_name for several fields.
> In verbose_name I need HTML code to highlight part of the string e.g.
> d1 = models.CharField(max_length=1, blank=False, default='0',
> verbose_name="Hi all!'').
> In admin the text gets escaped resulting in the whole string being shown
> (Hi all!) instead of Hi *all*!
> I also tried verbose_name=mark_safe("Hi all!'') to no avail
>
> Suggestions?
> Thanks
> Francesca
>
> --
> 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/-/LYnO1AIlc_EJ.
> 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: Audio Streaming Using Django

2012-04-13 Thread Phang Mulianto
hi,

for stream over the web, you can us shoutcast or other torrent stream
technology to save your server bandwidth

maybe with django you can built your own backend..

Mulianto


On Fri, Apr 13, 2012 at 12:21 PM, atul khairnar wrote:

> Hi,
> I am developing Internet Radio App using Django. But i don't know how to
> stream the audio over web using django. which modules and technology to
> use. Please Help.
>
>
> Atul Khairnar
> B.Tech
> Department of Computer Engineering and Information Technology
> College of Engineering , Pune
> Cell - (+91)9579289613
>
>
>
>  --
> 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: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread wang tiezhen
BTW, is there any onsite work?

Tiezhen

On Fri, Apr 13, 2012 at 2:28 PM, Marcin Tustin wrote:

> I guess junior dev rates have plummeted in the last 10 years.
>
>
> On Fri, Apr 13, 2012 at 13:25, Tom Evans  wrote:
>
>> On Fri, Apr 13, 2012 at 1:23 PM, Mario Gudelj 
>> wrote:
>> > Is this anywhere near a standard rate in UK?
>> >
>>
>> For a junior developer outside of London, yes. For a junior developer
>> outside of London working remotely, definitely.
>>
>> Cheers
>>
>> Tom
>>
>> --
>> 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.
>>
>>
>
>
> --
> Marcin Tustin
> Tel: 07773 787 105
>
>  --
> 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: cache decorators in urls.py error

2012-04-13 Thread Phang Mulianto
Hi ,

i already try (r'^$',cache_page(index), { 'template_name':
'blog/public_list.html'},
> 'index'),

and even :

(r'^$',cache_page(index()), { 'template_name': 'blog/public_list.html'},
> 'index'),

but different error comes out...
i don't know whats wrong.. anyone can help point it out..





On Tue, Apr 10, 2012 at 9:42 PM, Tom Evans  wrote:

> On Sat, Apr 7, 2012 at 3:53 PM, Phang Mulianto 
> wrote:
> > Hi,
> >
> > i have my apps and try to use cache decorator in url.py but got error.
> >
> > Here are the urls.py
> >
> > from django.views.decorators.cache import cache_page
> >
> > urlpatterns = patterns('article.views',
> > #(r'^$','index', { 'template_name': 'blog/public_list.html'},
> 'index'),
> > (r'^$',cache_page('index'), { 'template_name':
> 'blog/public_list.html'},
> > 'index'),
> > )
> >
> > the error is :
> >
> > cache_page must be passed a view function if called with two arguments
> >
> > what is wrong in the url.. note i also use the DDT (django debug
> toolbar) .
> >
> > THanks for pointing me out..
>
>
> https://docs.djangoproject.com/en/1.3/topics/cache/#specifying-per-view-cache-in-the-urlconf
>
> cache_page wraps a function, not a string.
>
> Cheers
>
> Tom
>
> --
> 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: Audio Streaming Using Django

2012-04-13 Thread sebastien piquemal
Django won't be of much use for the audio streaming part in itself.

I've done it a while ago using Icecast2. Very simple to setup.


On Friday, April 13, 2012 7:21:49 AM UTC+3, atul khairnar wrote:
>
> Hi, 
> I am developing Internet Radio App using Django. But i don't know how to 
> stream the audio over web using django. which modules and technology to 
> use. Please Help. 
>
>
> Atul Khairnar
> B.Tech
> Department of Computer Engineering and Information Technology
> College of Engineering , Pune
> Cell - (+91)9579289613
>
>
>
>

-- 
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/-/SLJ0ds5HCSIJ.
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: Listening to change of value of a field in model

2012-04-13 Thread Святослав Б
Hi! You can use this:
http://parand.com/say/index.php/2008/06/11/using-django-signals-to-watch-for-changes-to-instances/

2012/4/13 Plaban Nayak 

> Hi,
>
>
> I want to listen the change of a value of a field in a model. Is there
> a signal for this ?
>
>
>
>
>
> Plaban
>
> --
> 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: cache decorators in urls.py error

2012-04-13 Thread Tom Evans
On Fri, Apr 13, 2012 at 1:51 PM, Phang Mulianto  wrote:
> Hi ,
>
> i already try

Randomly trying things is unlikely to fix anything.

cache_page decorates a function. Therefore, if this doesn't work:

> (r'^$',cache_page(index), { 'template_name':
> 'blog/public_list.html'},
>> 'index'),
>

then probably the error is that you have not imported your view
function. It's hard to tell, as you just say 'different errors come
out'.

> and even :
>
> (r'^$',cache_page(index()), { 'template_name': 'blog/public_list.html'},
>> 'index'),
>

This one is nonsense. Your function 'index' is to be called when it is
to be run. Here you are trying to decorate the return value of the
function, without passing it any arguments - which is probably one of
the 'different errors'.

> but different error comes out...
> i don't know whats wrong.. anyone can help point it out..
>

If you want to decorate a view in your urls.py, you must import the
view function, and then refer to the view function by name. Like in
the example I linked you to previously…

https://docs.djangoproject.com/en/1.3/topics/cache/#specifying-per-view-cache-in-the-urlconf

So if your urlconf looked like this:

urlpatterns = ('',
(r'^foo/(\d{1,2})/$', my_view),
)

then to add the cache_page decorator to that view, you make it like this:

urlpatterns = ('',
(r'^foo/(\d{1,2})/$', cache_page(my_view, 60 * 15)),
)

If you continue to have problems, then you will have to tell us what
those problems are. "It doesn't work", or "different errors" is not
good enough, you must tell us word-for-word what those errors are.

Cheers

Tom

-- 
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: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
> Is this anywhere near a standard rate in UK?
@mario - imho - for a junior position getting their foot in the door,
whilst also working remotely - I think it is pretty fair.

> I guess junior dev rates have plummeted in the last 10 years.
@marcin - You should see how much typical internships pay, it's shockingly
bad.
Also - the market is flooded with so called "professionals" that are
driving up the prices and make finding decent developers extremely
difficult.

For example, here was a typical response to our question sheet from someone
we interviewed.

QUESTION 5: Provide an example of how you would prevent SQL injection from
happening.
ANSWER: "I wouldn't - I would use NMap and other scanners."

>BTW, is there any onsite work?
@wang - If you are available in the Coventry (UK), Bedfordshire (UK) or
Pittsburgh (PA, US) areas, then we might be able to offer you an on-site
position (if this is what you wanted).


On Thu, Apr 12, 2012 at 8:27 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Further update on this - budget has changed so, we can now offer a higher
> rate and a part time alternative.
>
> * 1500$/month for 70 hours (20$/hour)
> * 2000$/month for 100 hours (20$/hour)
>
> Thanks
>
> Cal
>
>
> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Hi all,
>>
>> Another urgent position has come up in our company, applicant needs to
>> have some experience with using Django but must also be comfortable with
>> PHP (our clients are a 50/50 split between PHP and Django).
>>
>> --
>>
>> Simplicity Media Ltd are an established UK company providing bespoke IT
>> solutions for a variety of clients across the globe.
>>
>> We are currently looking for a flexible and diverse developer to maintain
>> and extend our existing PHP deployments.
>>
>> Our solutions are high volume (peaking at around 5000 requests/minute),
>> with extremely large databases (400 million+ rows) and large content
>> servers (15TB+ of media files).
>>
>> The successful candidate should have at least 2 years commercial
>> experience, be fluent OOP, and have a general understanding of what it
>> means to be a good programmer.
>>
>> We're looking for a real person with real emotion, not a corporate robot
>> - and being a team player is absolutely critical. Our company attitude is
>> firm but fair, we encourage a healthy mixture of fun/work, and we even have
>> a 'NSFW' IRC channel!
>>
>> Essential skills:
>> * PHP 5.x (OOP)
>> * MySQL
>> * Linux (Debian)
>> * Bash (shell/ssh etc)
>>
>> Desired (non-essential) skills:
>> * MongoDB
>> * Redhat
>> * Percona
>> * Memcache
>> * Redis
>> * Python
>>
>> Desired (non-essential) experience:
>> * CodeIgniter (PHP)
>> * TubeX (PHP)
>> * Django (Python)
>> * JIRA (Atlassian)
>> * Basecamp
>> * Zendesk
>> * Livechat
>>
>> MINIMUM CRITERIA:
>> * MUST be able to work on either EST or GMT+0 timezone
>> * MUST be able to work 30+ hours a week.
>> * MUST be comfortable working on 18+ sites.
>> * MUST be fluent in written & spoken English
>>
>> The position is full time, offering around $2000/month (roughly
>> £1200/month) for the right candidate - price/hours are negotiable.
>>
>> This position MUST be filled by 15th April 2012.
>>
>> When applying, please also include a cover note explaining why you feel
>> you would be suitable for this role.
>>
>>
>>
>

-- 
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: Form Validation and unique_together on update a model

2012-04-13 Thread Tom Evans
On Fri, Apr 13, 2012 at 1:08 PM, Massimo Barbierato
 wrote:
> Hi all, i'm new. I searched  in the group for answers to my problem, but i
> didn't find anything :(
>
> My problem is this:
>
> i have a model with two fields in unique_together, the related ModelForm and
> the view.
> When i pass an instance of my model to the form to update it and then save
> it, i receive an error that says me that there is already a row with the
> specified fields.
> I can't understand why.
>
> Here you can read my code: http://pastebin.com/vDiHvpiV
>
> Thanks a lot.

(I'm speculating a little)

In your code snippet, lines 36-38:

sale = None
if 'edit' in request.GET:
sale = Sales.objects.get(sale_id=request.GET['edit'])

When you submit the form again, 'edit' is not in request.GET, so
'sale' never gets a value. When you then subsequently save the form,
it tries to save a new instance, which fails because it already
matches a row in the database.

Cheers

Tom

-- 
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: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Gerald Klein
sql injection is defeated by methodizing sql calls and server side
validation.

On Fri, Apr 13, 2012 at 8:38 AM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> > Is this anywhere near a standard rate in UK?
> @mario - imho - for a junior position getting their foot in the door,
> whilst also working remotely - I think it is pretty fair.
>
> > I guess junior dev rates have plummeted in the last 10 years.
> @marcin - You should see how much typical internships pay, it's shockingly
> bad.
> Also - the market is flooded with so called "professionals" that are
> driving up the prices and make finding decent developers extremely
> difficult.
>
> For example, here was a typical response to our question sheet from
> someone we interviewed.
>
> QUESTION 5: Provide an example of how you would prevent SQL injection from
> happening.
> ANSWER: "I wouldn't - I would use NMap and other scanners."
>
> >BTW, is there any onsite work?
> @wang - If you are available in the Coventry (UK), Bedfordshire (UK) or
> Pittsburgh (PA, US) areas, then we might be able to offer you an on-site
> position (if this is what you wanted).
>
>
> On Thu, Apr 12, 2012 at 8:27 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Further update on this - budget has changed so, we can now offer a higher
>> rate and a part time alternative.
>>
>> * 1500$/month for 70 hours (20$/hour)
>> * 2000$/month for 100 hours (20$/hour)
>>
>> Thanks
>>
>> Cal
>>
>>
>> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Hi all,
>>>
>>> Another urgent position has come up in our company, applicant needs to
>>> have some experience with using Django but must also be comfortable with
>>> PHP (our clients are a 50/50 split between PHP and Django).
>>>
>>> --
>>>
>>> Simplicity Media Ltd are an established UK company providing bespoke IT
>>> solutions for a variety of clients across the globe.
>>>
>>> We are currently looking for a flexible and diverse developer to
>>> maintain and extend our existing PHP deployments.
>>>
>>> Our solutions are high volume (peaking at around 5000 requests/minute),
>>> with extremely large databases (400 million+ rows) and large content
>>> servers (15TB+ of media files).
>>>
>>> The successful candidate should have at least 2 years commercial
>>> experience, be fluent OOP, and have a general understanding of what it
>>> means to be a good programmer.
>>>
>>> We're looking for a real person with real emotion, not a corporate robot
>>> - and being a team player is absolutely critical. Our company attitude is
>>> firm but fair, we encourage a healthy mixture of fun/work, and we even have
>>> a 'NSFW' IRC channel!
>>>
>>> Essential skills:
>>> * PHP 5.x (OOP)
>>> * MySQL
>>> * Linux (Debian)
>>> * Bash (shell/ssh etc)
>>>
>>> Desired (non-essential) skills:
>>> * MongoDB
>>> * Redhat
>>> * Percona
>>> * Memcache
>>> * Redis
>>> * Python
>>>
>>> Desired (non-essential) experience:
>>> * CodeIgniter (PHP)
>>> * TubeX (PHP)
>>> * Django (Python)
>>> * JIRA (Atlassian)
>>> * Basecamp
>>> * Zendesk
>>> * Livechat
>>>
>>> MINIMUM CRITERIA:
>>> * MUST be able to work on either EST or GMT+0 timezone
>>> * MUST be able to work 30+ hours a week.
>>> * MUST be comfortable working on 18+ sites.
>>> * MUST be fluent in written & spoken English
>>>
>>> The position is full time, offering around $2000/month (roughly
>>> £1200/month) for the right candidate - price/hours are negotiable.
>>>
>>> This position MUST be filled by 15th April 2012.
>>>
>>> When applying, please also include a cover note explaining why you feel
>>> you would be suitable for this role.
>>>
>>>
>>>
>>
>  --
> 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: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
Just saw your response about the 18+ adult sites.

I think there may have been some confusion, 18+ sites refers to the fact
some of our clients work in the adult industry and their sites content 18+
mature content.

Cal


On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein  wrote:

> Hi, I apologize I didn't get your response till this morning, for whatever
> reason I couldn't reply to the other email. ? Anyway I thought it over and
> 18 sites is a lot of responsibility for that income, I must kindly decline
> this offer thank you for your consideration.
>
> On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Further update on this - budget has changed so, we can now offer a higher
>> rate and a part time alternative.
>>
>> * 1500$/month for 70 hours (20$/hour)
>> * 2000$/month for 100 hours (20$/hour)
>>
>> Thanks
>>
>> Cal
>>
>> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Hi all,
>>>
>>> Another urgent position has come up in our company, applicant needs to
>>> have some experience with using Django but must also be comfortable with
>>> PHP (our clients are a 50/50 split between PHP and Django).
>>>
>>> --
>>>
>>> Simplicity Media Ltd are an established UK company providing bespoke IT
>>> solutions for a variety of clients across the globe.
>>>
>>> We are currently looking for a flexible and diverse developer to
>>> maintain and extend our existing PHP deployments.
>>>
>>> Our solutions are high volume (peaking at around 5000 requests/minute),
>>> with extremely large databases (400 million+ rows) and large content
>>> servers (15TB+ of media files).
>>>
>>> The successful candidate should have at least 2 years commercial
>>> experience, be fluent OOP, and have a general understanding of what it
>>> means to be a good programmer.
>>>
>>> We're looking for a real person with real emotion, not a corporate robot
>>> - and being a team player is absolutely critical. Our company attitude is
>>> firm but fair, we encourage a healthy mixture of fun/work, and we even have
>>> a 'NSFW' IRC channel!
>>>
>>> Essential skills:
>>> * PHP 5.x (OOP)
>>> * MySQL
>>> * Linux (Debian)
>>> * Bash (shell/ssh etc)
>>>
>>> Desired (non-essential) skills:
>>> * MongoDB
>>> * Redhat
>>> * Percona
>>> * Memcache
>>> * Redis
>>> * Python
>>>
>>> Desired (non-essential) experience:
>>> * CodeIgniter (PHP)
>>> * TubeX (PHP)
>>> * Django (Python)
>>> * JIRA (Atlassian)
>>> * Basecamp
>>> * Zendesk
>>> * Livechat
>>>
>>> MINIMUM CRITERIA:
>>> * MUST be able to work on either EST or GMT+0 timezone
>>> * MUST be able to work 30+ hours a week.
>>> * MUST be comfortable working on 18+ sites.
>>> * MUST be fluent in written & spoken English
>>>
>>> The position is full time, offering around $2000/month (roughly
>>> £1200/month) for the right candidate - price/hours are negotiable.
>>>
>>> This position MUST be filled by 15th April 2012.
>>>
>>> When applying, please also include a cover note explaining why you feel
>>> you would be suitable for this role.
>>>
>>>
>>>
>>  --
>> 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.



Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
However as a side note, we actually manage and maintain somewhere in the
region of 40+ pay sites (including tours, members area etc), and literally
thousands of 'mini SEO' sites.

Cal

On Fri, Apr 13, 2012 at 3:16 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Just saw your response about the 18+ adult sites.
>
> I think there may have been some confusion, 18+ sites refers to the fact
> some of our clients work in the adult industry and their sites content 18+
> mature content.
>
> Cal
>
>
> On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein  wrote:
>
>> Hi, I apologize I didn't get your response till this morning, for
>> whatever reason I couldn't reply to the other email. ? Anyway I thought it
>> over and 18 sites is a lot of responsibility for that income, I must kindly
>> decline this offer thank you for your consideration.
>>
>> On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Further update on this - budget has changed so, we can now offer
>>> a higher rate and a part time alternative.
>>>
>>> * 1500$/month for 70 hours (20$/hour)
>>> * 2000$/month for 100 hours (20$/hour)
>>>
>>> Thanks
>>>
>>> Cal
>>>
>>> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
>>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>>
 Hi all,

 Another urgent position has come up in our company, applicant needs to
 have some experience with using Django but must also be comfortable with
 PHP (our clients are a 50/50 split between PHP and Django).

 --

 Simplicity Media Ltd are an established UK company providing bespoke IT
 solutions for a variety of clients across the globe.

 We are currently looking for a flexible and diverse developer to
 maintain and extend our existing PHP deployments.

 Our solutions are high volume (peaking at around 5000 requests/minute),
 with extremely large databases (400 million+ rows) and large content
 servers (15TB+ of media files).

 The successful candidate should have at least 2 years commercial
 experience, be fluent OOP, and have a general understanding of what it
 means to be a good programmer.

 We're looking for a real person with real emotion, not a corporate
 robot - and being a team player is absolutely critical. Our company
 attitude is firm but fair, we encourage a healthy mixture of fun/work, and
 we even have a 'NSFW' IRC channel!

 Essential skills:
 * PHP 5.x (OOP)
 * MySQL
 * Linux (Debian)
 * Bash (shell/ssh etc)

 Desired (non-essential) skills:
 * MongoDB
 * Redhat
 * Percona
 * Memcache
 * Redis
 * Python

 Desired (non-essential) experience:
 * CodeIgniter (PHP)
 * TubeX (PHP)
 * Django (Python)
 * JIRA (Atlassian)
 * Basecamp
 * Zendesk
 * Livechat

 MINIMUM CRITERIA:
 * MUST be able to work on either EST or GMT+0 timezone
 * MUST be able to work 30+ hours a week.
 * MUST be comfortable working on 18+ sites.
 * MUST be fluent in written & spoken English

 The position is full time, offering around $2000/month (roughly
 £1200/month) for the right candidate - price/hours are negotiable.

 This position MUST be filled by 15th April 2012.

 When applying, please also include a cover note explaining why you feel
 you would be suitable for this role.



>>>  --
>>> 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.



Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Marcin Tustin
As written, the most natural reading of your post is that a candidate will
be working on over 18 sites. Also, you want to pay people next to nothing
to work on something that they may hesitate to put on their CV. Nice.

On Fri, Apr 13, 2012 at 15:16, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Just saw your response about the 18+ adult sites.
>
> I think there may have been some confusion, 18+ sites refers to the fact
> some of our clients work in the adult industry and their sites content 18+
> mature content.
>
> Cal
>
>
> On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein  wrote:
>
>> Hi, I apologize I didn't get your response till this morning, for
>> whatever reason I couldn't reply to the other email. ? Anyway I thought it
>> over and 18 sites is a lot of responsibility for that income, I must kindly
>> decline this offer thank you for your consideration.
>>
>> On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Further update on this - budget has changed so, we can now offer
>>> a higher rate and a part time alternative.
>>>
>>> * 1500$/month for 70 hours (20$/hour)
>>> * 2000$/month for 100 hours (20$/hour)
>>>
>>> Thanks
>>>
>>> Cal
>>>
>>> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
>>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>>
 Hi all,

 Another urgent position has come up in our company, applicant needs to
 have some experience with using Django but must also be comfortable with
 PHP (our clients are a 50/50 split between PHP and Django).

 --

 Simplicity Media Ltd are an established UK company providing bespoke IT
 solutions for a variety of clients across the globe.

 We are currently looking for a flexible and diverse developer to
 maintain and extend our existing PHP deployments.

 Our solutions are high volume (peaking at around 5000 requests/minute),
 with extremely large databases (400 million+ rows) and large content
 servers (15TB+ of media files).

 The successful candidate should have at least 2 years commercial
 experience, be fluent OOP, and have a general understanding of what it
 means to be a good programmer.

 We're looking for a real person with real emotion, not a corporate
 robot - and being a team player is absolutely critical. Our company
 attitude is firm but fair, we encourage a healthy mixture of fun/work, and
 we even have a 'NSFW' IRC channel!

 Essential skills:
 * PHP 5.x (OOP)
 * MySQL
 * Linux (Debian)
 * Bash (shell/ssh etc)

 Desired (non-essential) skills:
 * MongoDB
 * Redhat
 * Percona
 * Memcache
 * Redis
 * Python

 Desired (non-essential) experience:
 * CodeIgniter (PHP)
 * TubeX (PHP)
 * Django (Python)
 * JIRA (Atlassian)
 * Basecamp
 * Zendesk
 * Livechat

 MINIMUM CRITERIA:
 * MUST be able to work on either EST or GMT+0 timezone
 * MUST be able to work 30+ hours a week.
 * MUST be comfortable working on 18+ sites.
 * MUST be fluent in written & spoken English

 The position is full time, offering around $2000/month (roughly
 £1200/month) for the right candidate - price/hours are negotiable.

 This position MUST be filled by 15th April 2012.

 When applying, please also include a cover note explaining why you feel
 you would be suitable for this role.



>>>  --
>>> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
You received this message bec

Re: cache decorators in urls.py error

2012-04-13 Thread Phang Mulianto
Hi Tom,

i already fix it, it is because

"then probably the error is that you have not imported your view
function. It's hard to tell, as you just say 'different errors come
out'."

i just realize i not import my view in the url.py , as in documentation is
not said i have to import it first before use it in url.py.

somebody gonna fix the documentation ?

it only remind you "If you take this approach, don't forget to import
cache_page within your URLconf."
please add "and import your view function to be called also"

anyway.. thank Tom for the light..

Regards,
Mulianto

On Fri, Apr 13, 2012 at 9:27 PM, Tom Evans  wrote:

> On Fri, Apr 13, 2012 at 1:51 PM, Phang Mulianto 
> wrote:
> > Hi ,
> >
> > i already try
>
> Randomly trying things is unlikely to fix anything.
>
> cache_page decorates a function. Therefore, if this doesn't work:
>
> > (r'^$',cache_page(index), { 'template_name':
> > 'blog/public_list.html'},
> >> 'index'),
> >
>
> then probably the error is that you have not imported your view
> function. It's hard to tell, as you just say 'different errors come
> out'.
>
> > and even :
> >
> > (r'^$',cache_page(index()), { 'template_name': 'blog/public_list.html'},
> >> 'index'),
> >
>
> This one is nonsense. Your function 'index' is to be called when it is
> to be run. Here you are trying to decorate the return value of the
> function, without passing it any arguments - which is probably one of
> the 'different errors'.
>
> > but different error comes out...
> > i don't know whats wrong.. anyone can help point it out..
> >
>
> If you want to decorate a view in your urls.py, you must import the
> view function, and then refer to the view function by name. Like in
> the example I linked you to previously…
>
>
> https://docs.djangoproject.com/en/1.3/topics/cache/#specifying-per-view-cache-in-the-urlconf
>
> So if your urlconf looked like this:
>
> urlpatterns = ('',
>(r'^foo/(\d{1,2})/$', my_view),
> )
>
> then to add the cache_page decorator to that view, you make it like this:
>
> urlpatterns = ('',
>(r'^foo/(\d{1,2})/$', cache_page(my_view, 60 * 15)),
> )
>
> If you continue to have problems, then you will have to tell us what
> those problems are. "It doesn't work", or "different errors" is not
> good enough, you must tell us word-for-word what those errors are.
>
> Cheers
>
> Tom
>
> --
> 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: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
On Fri, Apr 13, 2012 at 3:21 PM, Marcin Tustin wrote:

> As written, the most natural reading of your post is that a candidate will
> be working on over 18 sites.


Duly noted, I've updated the spec to use more precise wording "comfortable
working on sites containing mature 18+ content"


> Also, you want to pay people next to nothing to work on something that
> they may hesitate to put on their CV. Nice.


Are you suggesting that working on mature sites might be detrimental to
ones career? And are you also suggesting that (for example) people who work
on designing mens magazines (which also contain 18+ content) are only doing
so because they are being paid enough money to keep it a secret? (your
comments suggest that if the pay was higher, then the situation would be
different..?)

On a side note - there are many (well known) digital agencies that work
with companies in the adult industry - and we've certainly never had
problems retaining clients or securing contracts as a result of that.


>
>
> On Fri, Apr 13, 2012 at 15:16, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Just saw your response about the 18+ adult sites.
>>
>> I think there may have been some confusion, 18+ sites refers to the fact
>> some of our clients work in the adult industry and their sites content 18+
>> mature content.
>>
>> Cal
>>
>>
>> On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein  wrote:
>>
>>> Hi, I apologize I didn't get your response till this morning, for
>>> whatever reason I couldn't reply to the other email. ? Anyway I thought it
>>> over and 18 sites is a lot of responsibility for that income, I must kindly
>>> decline this offer thank you for your consideration.
>>>
>>> On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
>>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>>
 Further update on this - budget has changed so, we can now offer
 a higher rate and a part time alternative.

 * 1500$/month for 70 hours (20$/hour)
 * 2000$/month for 100 hours (20$/hour)

 Thanks

 Cal

 On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
 cal.leem...@simplicitymedialtd.co.uk> wrote:

> Hi all,
>
> Another urgent position has come up in our company, applicant needs to
> have some experience with using Django but must also be comfortable with
> PHP (our clients are a 50/50 split between PHP and Django).
>
> --
>
> Simplicity Media Ltd are an established UK company providing bespoke
> IT solutions for a variety of clients across the globe.
>
> We are currently looking for a flexible and diverse developer to
> maintain and extend our existing PHP deployments.
>
> Our solutions are high volume (peaking at around 5000
> requests/minute), with extremely large databases (400 million+ rows) and
> large content servers (15TB+ of media files).
>
> The successful candidate should have at least 2 years commercial
> experience, be fluent OOP, and have a general understanding of what it
> means to be a good programmer.
>
> We're looking for a real person with real emotion, not a corporate
> robot - and being a team player is absolutely critical. Our company
> attitude is firm but fair, we encourage a healthy mixture of fun/work, and
> we even have a 'NSFW' IRC channel!
>
> Essential skills:
> * PHP 5.x (OOP)
> * MySQL
> * Linux (Debian)
> * Bash (shell/ssh etc)
>
> Desired (non-essential) skills:
> * MongoDB
> * Redhat
> * Percona
> * Memcache
> * Redis
> * Python
>
> Desired (non-essential) experience:
> * CodeIgniter (PHP)
> * TubeX (PHP)
> * Django (Python)
> * JIRA (Atlassian)
> * Basecamp
> * Zendesk
> * Livechat
>
> MINIMUM CRITERIA:
> * MUST be able to work on either EST or GMT+0 timezone
> * MUST be able to work 30+ hours a week.
> * MUST be comfortable working on 18+ sites.
> * MUST be fluent in written & spoken English
>
> The position is full time, offering around $2000/month (roughly
> £1200/month) for the right candidate - price/hours are negotiable.
>
> This position MUST be filled by 15th April 2012.
>
> When applying, please also include a cover note explaining why you
> feel you would be suitable for this role.
>
>
>
  --
 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 **

Re: Form Validation and unique_together on update a model

2012-04-13 Thread Massimo Barbierato
Thanks Tom, you're right!!!
I solved it passing 'edit' again.

Thanks again

Max


(I'm speculating a little)
>
> In your code snippet, lines 36-38:
>
> sale = None
> if 'edit' in request.GET:
> sale = Sales.objects.get(sale_id=request.GET['edit'])
>
> When you submit the form again, 'edit' is not in request.GET, so
> 'sale' never gets a value. When you then subsequently save the form,
> it tries to save a new instance, which fails because it already
> matches a row in the database.
>
> Cheers
>
> Tom
>
>

-- 
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/-/shSrqRlsfa4J.
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: lose access to my app on dashboard when setting.DEBUG=False

2012-04-13 Thread Kejun He
top

On Sun, Apr 8, 2012 at 3:53 PM, sillyou su  wrote:

> It works fine with DEBUG=True. But when I set settings.DEBUG=False, I
> can,t access my app on dashboard except sites and auth.
> It is strange. Any idea?
>
>  --
> 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/-/N525zsZcrd0J.
> 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.



problem with users password hash in the django admin

2012-04-13 Thread Alvaro Gutiérrez
hi, im trying to show only some aspects of the user profile on the
admin page but im having an error:

the error that django sends:

Unknown password hashing algorithm 'test'. Did you specify it in the
PASSWORD_HASHERS setting?

i think that the error appears when i customize the django admin:


admin.site.unregister(User)


class Inline(admin.StackedInline):

model = UserProfile
list_display = ('key',)
exclude = ('old_key',)

class UserProfileAdmin(admin.ModelAdmin):

inlines = [UserProfileInline]
list_display =
('username','first_name','last_name','is_active','is_staff','email',)

admin.site.register(User,UserProfileAdmin)

i think that, when i use the unregister function, the user loose the
password hash.
i has been looking in google and the problem seems to be with the
last django version, but i dont know how to fix it
thanks

sorry for my poor english:

-- 
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: Urgent - PHP/Python Developer needed

2012-04-13 Thread waax
I'd +1 here Cal and what he said about adult industry.

It does not mean a thing if you were contracted by company with adult
focus or not. What matters is how you do your job and how fast you do
it. Bozos are looking into what sort of references you have, what kind
of college you went to and if you even have college and so forth.
Today school does not mean a thing in IT unless you are outside of US
and trying to permanently come into US by company sponsorship (because
you can't w/o college). Same thing applies for references. As far I
see, references should be here to see just overall who person is but
should not be took granted nor as something valuable. Internal company
tests are here to do so as interview (but tests more than interview).

I've for example work in my past on adult sites and had no issues
about that in future career what so ever. Again, if adult site you are
working on is great one than next employer will at least know you know
at least something about high-load apps and will for sure know that
you have great stomach :D It's not all so black.

On Apr 13, 4:56 pm, "Cal Leeming [Simplicity Media Ltd]"
 wrote:
> On Fri, Apr 13, 2012 at 3:21 PM, Marcin Tustin wrote:
>
> > As written, the most natural reading of your post is that a candidate will
> > be working on over 18 sites.
>
> Duly noted, I've updated the spec to use more precise wording "comfortable
> working on sites containing mature 18+ content"
>
> > Also, you want to pay people next to nothing to work on something that
> > they may hesitate to put on their CV. Nice.
>
> Are you suggesting that working on mature sites might be detrimental to
> ones career? And are you also suggesting that (for example) people who work
> on designing mens magazines (which also contain 18+ content) are only doing
> so because they are being paid enough money to keep it a secret? (your
> comments suggest that if the pay was higher, then the situation would be
> different..?)
>
> On a side note - there are many (well known) digital agencies that work
> with companies in the adult industry - and we've certainly never had
> problems retaining clients or securing contracts as a result of that.
>
>
>
>
>
>
>
>
>
> > On Fri, Apr 13, 2012 at 15:16, Cal Leeming [Simplicity Media Ltd] <
> > cal.leem...@simplicitymedialtd.co.uk> wrote:
>
> >> Just saw your response about the 18+ adult sites.
>
> >> I think there may have been some confusion, 18+ sites refers to the fact
> >> some of our clients work in the adult industry and their sites content 18+
> >> mature content.
>
> >> Cal
>
> >> On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein  wrote:
>
> >>> Hi, I apologize I didn't get your response till this morning, for
> >>> whatever reason I couldn't reply to the other email. ? Anyway I thought it
> >>> over and 18 sites is a lot of responsibility for that income, I must 
> >>> kindly
> >>> decline this offer thank you for your consideration.
>
> >>> On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
> >>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>  Further update on this - budget has changed so, we can now offer
>  a higher rate and a part time alternative.
>
>  * 1500$/month for 70 hours (20$/hour)
>  * 2000$/month for 100 hours (20$/hour)
>
>  Thanks
>
>  Cal
>
>  On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
>  cal.leem...@simplicitymedialtd.co.uk> wrote:
>
> > Hi all,
>
> > Another urgent position has come up in our company, applicant needs to
> > have some experience with using Django but must also be comfortable with
> > PHP (our clients are a 50/50 split between PHP and Django).
>
> > --
>
> > Simplicity Media Ltd are an established UK company providing bespoke
> > IT solutions for a variety of clients across the globe.
>
> > We are currently looking for a flexible and diverse developer to
> > maintain and extend our existing PHP deployments.
>
> > Our solutions are high volume (peaking at around 5000
> > requests/minute), with extremely large databases (400 million+ rows) and
> > large content servers (15TB+ of media files).
>
> > The successful candidate should have at least 2 years commercial
> > experience, be fluent OOP, and have a general understanding of what it
> > means to be a good programmer.
>
> > We're looking for a real person with real emotion, not a corporate
> > robot - and being a team player is absolutely critical. Our company
> > attitude is firm but fair, we encourage a healthy mixture of fun/work, 
> > and
> > we even have a 'NSFW' IRC channel!
>
> > Essential skills:
> > * PHP 5.x (OOP)
> > * MySQL
> > * Linux (Debian)
> > * Bash (shell/ssh etc)
>
> > Desired (non-essential) skills:
> > * MongoDB
> > * Redhat
> > * Percona
> > * Memcache
> > * Redis
> > * Python
>
> > Desired (non-essential) experience:
> > * CodeIgnite

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Marcin Tustin
I don't understand: you suggest that "adult" content is purely neutral, and
at the same time, you make a point of specifically warning about it. So,
which is it: something that no-one cares about, or something that carries a
stigma?

On Fri, Apr 13, 2012 at 15:56, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> On Fri, Apr 13, 2012 at 3:21 PM, Marcin Tustin wrote:
>
>> As written, the most natural reading of your post is that a candidate
>> will be working on over 18 sites.
>
>
> Duly noted, I've updated the spec to use more precise wording "comfortable
> working on sites containing mature 18+ content"
>
>
>> Also, you want to pay people next to nothing to work on something that
>> they may hesitate to put on their CV. Nice.
>
>
> Are you suggesting that working on mature sites might be detrimental to
> ones career? And are you also suggesting that (for example) people who work
> on designing mens magazines (which also contain 18+ content) are only doing
> so because they are being paid enough money to keep it a secret? (your
> comments suggest that if the pay was higher, then the situation would be
> different..?)
>
> On a side note - there are many (well known) digital agencies that work
> with companies in the adult industry - and we've certainly never had
> problems retaining clients or securing contracts as a result of that.
>
>
>>
>>
>> On Fri, Apr 13, 2012 at 15:16, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Just saw your response about the 18+ adult sites.
>>>
>>> I think there may have been some confusion, 18+ sites refers to the fact
>>> some of our clients work in the adult industry and their sites content 18+
>>> mature content.
>>>
>>> Cal
>>>
>>>
>>> On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein  wrote:
>>>
 Hi, I apologize I didn't get your response till this morning, for
 whatever reason I couldn't reply to the other email. ? Anyway I thought it
 over and 18 sites is a lot of responsibility for that income, I must kindly
 decline this offer thank you for your consideration.

 On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
 cal.leem...@simplicitymedialtd.co.uk> wrote:

> Further update on this - budget has changed so, we can now offer
> a higher rate and a part time alternative.
>
> * 1500$/month for 70 hours (20$/hour)
> * 2000$/month for 100 hours (20$/hour)
>
> Thanks
>
> Cal
>
> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Hi all,
>>
>> Another urgent position has come up in our company, applicant needs
>> to have some experience with using Django but must also be comfortable 
>> with
>> PHP (our clients are a 50/50 split between PHP and Django).
>>
>> --
>>
>> Simplicity Media Ltd are an established UK company providing bespoke
>> IT solutions for a variety of clients across the globe.
>>
>> We are currently looking for a flexible and diverse developer to
>> maintain and extend our existing PHP deployments.
>>
>> Our solutions are high volume (peaking at around 5000
>> requests/minute), with extremely large databases (400 million+ rows) and
>> large content servers (15TB+ of media files).
>>
>> The successful candidate should have at least 2 years commercial
>> experience, be fluent OOP, and have a general understanding of what it
>> means to be a good programmer.
>>
>> We're looking for a real person with real emotion, not a corporate
>> robot - and being a team player is absolutely critical. Our company
>> attitude is firm but fair, we encourage a healthy mixture of fun/work, 
>> and
>> we even have a 'NSFW' IRC channel!
>>
>> Essential skills:
>> * PHP 5.x (OOP)
>> * MySQL
>> * Linux (Debian)
>> * Bash (shell/ssh etc)
>>
>> Desired (non-essential) skills:
>> * MongoDB
>> * Redhat
>> * Percona
>> * Memcache
>> * Redis
>> * Python
>>
>> Desired (non-essential) experience:
>> * CodeIgniter (PHP)
>> * TubeX (PHP)
>> * Django (Python)
>> * JIRA (Atlassian)
>> * Basecamp
>> * Zendesk
>> * Livechat
>>
>> MINIMUM CRITERIA:
>> * MUST be able to work on either EST or GMT+0 timezone
>> * MUST be able to work 30+ hours a week.
>> * MUST be comfortable working on 18+ sites.
>> * MUST be fluent in written & spoken English
>>
>> The position is full time, offering around $2000/month (roughly
>> £1200/month) for the right candidate - price/hours are negotiable.
>>
>> This position MUST be filled by 15th April 2012.
>>
>> When applying, please also include a cover note explaining why you
>> feel you would be suitable for this role.
>>
>>
>>
>  --
> You rece

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
This is purely to make sure that the developer is comfortable working on
adult content.

(For example, they may have young children at home with no separated office
- or they may be subject to country/states laws which prohibit them from
being involved)

On Fri, Apr 13, 2012 at 4:35 PM, Marcin Tustin wrote:

> I don't understand: you suggest that "adult" content is purely neutral,
> and at the same time, you make a point of specifically warning about it.
> So, which is it: something that no-one cares about, or something that
> carries a stigma?
>
>
> On Fri, Apr 13, 2012 at 15:56, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> On Fri, Apr 13, 2012 at 3:21 PM, Marcin Tustin 
>> wrote:
>>
>>> As written, the most natural reading of your post is that a candidate
>>> will be working on over 18 sites.
>>
>>
>> Duly noted, I've updated the spec to use more precise wording "comfortable
>> working on sites containing mature 18+ content"
>>
>>
>>> Also, you want to pay people next to nothing to work on something that
>>> they may hesitate to put on their CV. Nice.
>>
>>
>> Are you suggesting that working on mature sites might be detrimental to
>> ones career? And are you also suggesting that (for example) people who work
>> on designing mens magazines (which also contain 18+ content) are only doing
>> so because they are being paid enough money to keep it a secret? (your
>> comments suggest that if the pay was higher, then the situation would be
>> different..?)
>>
>> On a side note - there are many (well known) digital agencies that work
>> with companies in the adult industry - and we've certainly never had
>> problems retaining clients or securing contracts as a result of that.
>>
>>
>>>
>>>
>>> On Fri, Apr 13, 2012 at 15:16, Cal Leeming [Simplicity Media Ltd] <
>>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>>
 Just saw your response about the 18+ adult sites.

 I think there may have been some confusion, 18+ sites refers to the
 fact some of our clients work in the adult industry and their sites content
 18+ mature content.

 Cal


 On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein  wrote:

> Hi, I apologize I didn't get your response till this morning, for
> whatever reason I couldn't reply to the other email. ? Anyway I thought it
> over and 18 sites is a lot of responsibility for that income, I must 
> kindly
> decline this offer thank you for your consideration.
>
> On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Further update on this - budget has changed so, we can now offer
>> a higher rate and a part time alternative.
>>
>> * 1500$/month for 70 hours (20$/hour)
>> * 2000$/month for 100 hours (20$/hour)
>>
>> Thanks
>>
>> Cal
>>
>> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Hi all,
>>>
>>> Another urgent position has come up in our company, applicant needs
>>> to have some experience with using Django but must also be comfortable 
>>> with
>>> PHP (our clients are a 50/50 split between PHP and Django).
>>>
>>> --
>>>
>>> Simplicity Media Ltd are an established UK company providing bespoke
>>> IT solutions for a variety of clients across the globe.
>>>
>>> We are currently looking for a flexible and diverse developer to
>>> maintain and extend our existing PHP deployments.
>>>
>>> Our solutions are high volume (peaking at around 5000
>>> requests/minute), with extremely large databases (400 million+ rows) and
>>> large content servers (15TB+ of media files).
>>>
>>> The successful candidate should have at least 2 years commercial
>>> experience, be fluent OOP, and have a general understanding of what it
>>> means to be a good programmer.
>>>
>>> We're looking for a real person with real emotion, not a corporate
>>> robot - and being a team player is absolutely critical. Our company
>>> attitude is firm but fair, we encourage a healthy mixture of fun/work, 
>>> and
>>> we even have a 'NSFW' IRC channel!
>>>
>>> Essential skills:
>>> * PHP 5.x (OOP)
>>> * MySQL
>>> * Linux (Debian)
>>> * Bash (shell/ssh etc)
>>>
>>> Desired (non-essential) skills:
>>> * MongoDB
>>> * Redhat
>>> * Percona
>>> * Memcache
>>> * Redis
>>> * Python
>>>
>>> Desired (non-essential) experience:
>>> * CodeIgniter (PHP)
>>> * TubeX (PHP)
>>> * Django (Python)
>>> * JIRA (Atlassian)
>>> * Basecamp
>>> * Zendesk
>>> * Livechat
>>>
>>> MINIMUM CRITERIA:
>>> * MUST be able to work on either EST or GMT+0 timezone
>>> * MUST be able to work 30+ hours a week.
>>> * MUST be comfortable working 

Re: Django unable to write to an NFS share

2012-04-13 Thread Bastian
ok I just gave up using NFS, it's just too much hassle, making sure the 
ports are static, configuring iptables and then permissions problems... I 
switched to sshfs and it just worked straight away :)
Now I don't know if it is a very good option for sharing the user-media 
folder, any idea?

On Friday, April 13, 2012 11:22:48 AM UTC+2, Bastian wrote:
>
> Hi,
>
> I have a working Django project and I am trying to add a second server. In 
> the process I am making an NFS share on one server. The Apache instances on 
> this server (the NFS host) can write (mostly images) to this directory but 
> the other server (the NFS client) seems unable. Actually from this second 
> server I changed the permissions of the share to 777 just to make sure and 
> still root can write but www-data can only create file, it is denied the 
> right to write them. Very strange situation that I don't understand. 
> Searching this group and Google led me to few information. There is this 
> lock issue thing that I'm not sure to understand if it has been fixed. Any 
> clue is welcome. I'm using Debian Squeeze, Django 1.3 and this is the 
> options I use in the export: 
> rw,sync,no_root_squash,no_subtree_check,insecure
>
> Thanks,
> Bastian
>

-- 
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/-/XqKMYXUwn9IJ.
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: Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Eli_West
Thanks, I tried to stay clear of posting code because I've tried maybe
20 different ways and nothing seems to work. I have used the {% url %}
tag and yesterday competed - a 'ajax_user_search' tut using django Q
still no luck. This was the load call:

$( document ).ready( function() {
$( '#searchSubmit' ).click( function() {
q = $( '#q' ).val();
$( '#results' ).html( ' ' ).load(
'{% url userbase_user_search %}?q=' + q );
});
});

Upon setting everything up and clicking the tag, nothing happens as
usual. I'm going to try the tut posted below with high hopes - and I
am considering trying 'djaxice'

On Apr 13, 3:39 am, Daniel Roseman  wrote:
> On Friday, 13 April 2012 08:08:19 UTC+1, Eli_West wrote:
>
> > I've been attempting the most basic ajax call (.load()  )  through
> > django for over a month now - each time trying a different method or
> > tutorial none with success. Can someone post a working paradigm for
> > whatever django csrf, firefox, ect. workaround they use?
>
> > I can get jquery .load() to load content from an external file with
> > static files , no django. Same file served through django/templating
> > and the ajax is blocked. This is the general jquery call:
>
> > $(document).ready(function() {
> >     $('.list').click(function () {
> > $('#message').load('namesinfo.htm li');
> >         return false;
> >     });
> > });
>
> > To make things worse I found that Firefox/Chrome breaks Jquery's
> > sample 'Tabs: load content via ajax'  in the Themroller download. But
> > it works in IE :/. Same .load() calls occuring here. Just working w
> > static files no django. Could it be related to Firefox/Chrome?
>
> > I am pretty sure it is not: static file serving issues. I have heard
> > comments to follow django 'csrf / ajax' and included their sameOrgin
> > script to no avail. :
>
> >https://docs.djangoproject.com/en/dev/ref/contrib/csrf/
>
> > A similar issue even though this guys solution is hard to understand:
>
> >http://stackoverflow.com/questions/6643242/jquery-load-not-working-in...
>
> The argument to `load` is the URL you want to load. If you want that to be
> served by Django, you need to pass in a URL that's handled by your Django
> urls.py. 'namesinfo.htm' seems unlikely to be a Django url.
> --
> DR.

-- 
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: Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Eli_West
Thanks. I found another example that used get() and didn't seem to
work for me either:

http://mitchfournier.com/tag/ajax/

I guess I want an example that is simple as possible so I can try and
find where the issue it occuring. I'll try your example later today.

On Apr 13, 4:12 am, Joey Espinosa  wrote:
> Btw, disregard what I said about mixing URL and CSS selectors. I forgot
> that load() can do that (I usually use ajax() or get()/post(), neither of
> which supports that). MY BAD!
>
> --
> Joey Espinosa
> Software Engineerhttp://about.me/joelinux
> On Apr 13, 2012 6:05 AM, "Joey Espinosa"  wrote:
>
>
>
>
>
>
>
> > Daniel is right. The only way your code will work is if you've set up your
> > argument to load() to be caught by urls.py.
>
> > Also, in your case, it seems like your argument to load() is a mix of URL
> > and CSS selector... Make sure you're using a URL there.
>
> > Check out my blog for a very basic tutorial on getting AJAX to work in
> > Django:
>
> >http://joelinux117.blogspot.com/2011/11/making-ajax-calls-in-django-u...
>
> > It's using Dojo, but the same principle applies with jQuery (just make
> > sure where the tutorial calls a URL, you're passing the URL as an argument
> > to load().
>
> > --
> > Joey Espinosa
> > Software Engineer
> >http://about.me/joelinux
> > On Apr 13, 2012 5:39 AM, "Daniel Roseman"  wrote:
>
> >> On Friday, 13 April 2012 08:08:19 UTC+1, Eli_West wrote:
>
> >>> I've been attempting the most basic ajax call (.load()  )  through
> >>> django for over a month now - each time trying a different method or
> >>> tutorial none with success. Can someone post a working paradigm for
> >>> whatever django csrf, firefox, ect. workaround they use?
>
> >>> I can get jquery .load() to load content from an external file with
> >>> static files , no django. Same file served through django/templating
> >>> and the ajax is blocked. This is the general jquery call:
>
> >>> $(document).ready(function() {
> >>>     $('.list').click(function () {
> >>> $('#message').load('namesinfo.**htm li');
> >>>         return false;
> >>>     });
> >>> });
>
> >>> To make things worse I found that Firefox/Chrome breaks Jquery's
> >>> sample 'Tabs: load content via ajax'  in the Themroller download. But
> >>> it works in IE :/. Same .load() calls occuring here. Just working w
> >>> static files no django. Could it be related to Firefox/Chrome?
>
> >>> I am pretty sure it is not: static file serving issues. I have heard
> >>> comments to follow django 'csrf / ajax' and included their sameOrgin
> >>> script to no avail. :
>
> >>>https://docs.djangoproject.**com/en/dev/ref/contrib/csrf/
>
> >>> A similar issue even though this guys solution is hard to understand:
>
> >>>http://stackoverflow.com/**questions/6643242/jquery-load-**
> >>> not-working-in-django
>
> >> The argument to `load` is the URL you want to load. If you want that to
> >> be served by Django, you need to pass in a URL that's handled by your
> >> Django urls.py. 'namesinfo.**htm' seems unlikely to be a Django url.
> >> --
> >> DR.
>
> >> --
> >> 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/-/3CzEsK5NobAJ.
> >> 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.



no such column: jobs_job.mainloc

2012-04-13 Thread alex3627
Hi all, 

I am new to django and just learning, but for the current error I have 
absolutely no idea about the cause. I have created a model named Job in 
model.py which contains several elements. One of the is defined as follows:

mainloc  = models.CharField(max_length=1, choices = MAINLOC)

and MAINLOC is a list of 2-tuples, with the first element a 1-character 
expression (like 'B', 'M'...). I have updated the database (the name 
mainloc is explicitly mentioned in the screen output), I have sync'd the 
database and restarted the server. But still, when I want to display the 
(empty) list on my browser, I get the message 

   no such column: jobs_job.mainloc


Any idea or advice I could try to do? 

Thanks
   Alex

-- 
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/-/4G24v1A5LaUJ.
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.



Logging works from 'manage.py shell', not from app

2012-04-13 Thread Jeff Blaine
Hi all. I'm stumped on something. Using logging via 'manage.py shell' is
working as expected. Using it in the webapp generates zero data and
zero errors.

NOTE: /var/log/hostdb.log is WORLD WRITABLE (in order to dodge any
permissions errors right now while debugging this)

My logging settings are as follows:

LOGGING = { 
'version': 1, 
'disable_existing_loggers': True, 
'formatters': { 
'verbose': { 
'format': '%(levelname)s %(asctime)s %(module)s %(process)d 
%(thread)d %(message)s' 
}, 
'simple': { 
'format': '%(levelname)s %(message)s' 
} 
}, 
'handlers': { 
'console': { 
'level':'DEBUG', 
'class':'logging.StreamHandler', 
'formatter': 'verbose' 
}, 
'logfile': { 
'level': 'DEBUG', 
'class': 'logging.handlers.WatchedFileHandler', 
'formatter': 'verbose', 
'filename': '/var/log/hostdb.log', 
'mode': 'a' 
} 
}, 
'loggers': { 
'django.request': { 
'handlers': ['logfile', 'console'], 
'level': 'DEBUG' 
} 
} 
} 

For example, the following works fine (shows up in /var/log/hostdb.log):

python manage.py shell
>> import logging
>> l = logging.getLogger('django.request')
>> l.info('this is info!')

Yet I get absolutely nothing logged when a click through pages of the app 
itself.

Any ideas?

-- 
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/-/TKIfqpwWZcUJ.
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: no such column: jobs_job.mainloc

2012-04-13 Thread Timothy Makobu
Did you run a syncdb, then added mainloc after? Also, using
southmakes things much easier.


On Fri, Apr 13, 2012 at 8:19 PM, alex3627 wrote:

> Hi all,
>
> I am new to django and just learning, but for the current error I have
> absolutely no idea about the cause. I have created a model named Job in
> model.py which contains several elements. One of the is defined as follows:
>
> mainloc  = models.CharField(max_length=1, choices = MAINLOC)
>
> and MAINLOC is a list of 2-tuples, with the first element a 1-character
> expression (like 'B', 'M'...). I have updated the database (the name
> mainloc is explicitly mentioned in the screen output), I have sync'd the
> database and restarted the server. But still, when I want to display the
> (empty) list on my browser, I get the message
>
>no such column: jobs_job.mainloc
>
>
> Any idea or advice I could try to do?
>
> Thanks
>Alex
>
> --
> 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/-/4G24v1A5LaUJ.
> 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: no such column: jobs_job.mainloc

2012-04-13 Thread alex3627


On Friday, April 13, 2012 12:45:22 PM UTC-5, Timothy Makobu wrote:
>
> Did you run a syncdb, then added mainloc after? Also, using 
> southmakes things much easier.
>
> Of course I ran a syncdb. I have no experience with South and would like 
to solve this problem without using something else.


Thanks
  Alex
 

> Hi all, 
>
> I am new to django and just learning, but for the current error I have 
> absolutely no idea about the cause. I have created a model named Job in 
> model.py which contains several elements. One of the is defined as follows:
>
> mainloc  = models.CharField(max_length=1, choices = MAINLOC)
>
> and MAINLOC is a list of 2-tuples, with the first element a 1-character 
> expression (like 'B', 'M'...). I have updated the database (the name 
> mainloc is explicitly mentioned in the screen output), I have sync'd the 
> database and restarted the server. But still, when I want to display the 
> (empty) list on my browser, I get the message 
>
>no such column: jobs_job.mainloc
>
>
> Any idea or advice I could try to do? 
>
> Thanks
>Alex
> -- 
> 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/-/4G24v1A5LaUJ.
> 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/-/mapjVj47xokJ.
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.



Master/Slave database and get_or_create

2012-04-13 Thread Nicolas Valcárcel
Hi,
I've a Master/Slave DB configuration using DATABASE_ROUTERS and such,
but recently i found that a script that has an intensive use of
get_or_create started eating up to much CPU and resources, looking at the
django code i found this:

def get_or_create(self, **kwargs):
# Update kwargs with the related object that this
# ForeignRelatedObjectsDescriptor knows about.
kwargs.update({rel_field.name: instance})
db = router.db_for_write(rel_model, instance=instance)
return super(RelatedManager,
self.db_manager(db)).get_or_create(**kwargs)
get_or_create.alters_data = True

>From there i can tell that the get as well as the create are being done on
the read DB and completely ignoring the read DB.

So, my question is, is this intended or a bug? If intended, can you give me
the criteria for this to understand it better please?


-- 
Nicolas Valcárcel
Gerente IT / CTO
Celular: (511) 976 330 707

-- 
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: no such column: jobs_job.mainloc

2012-04-13 Thread Timothy Makobu
Right. The question is whether you added the field "after" running syncdb
for the first time.

On Fri, Apr 13, 2012 at 8:58 PM, alex3627 wrote:

>
>
> On Friday, April 13, 2012 12:45:22 PM UTC-5, Timothy Makobu wrote:
>>
>> Did you run a syncdb, then added mainloc after? Also, using 
>> southmakes things much easier.
>>
>> Of course I ran a syncdb. I have no experience with South and would like
> to solve this problem without using something else.
>
>
> Thanks
>   Alex
>
>
>
>> Hi all,
>>
>> I am new to django and just learning, but for the current error I have
>> absolutely no idea about the cause. I have created a model named Job in
>> model.py which contains several elements. One of the is defined as follows:
>>
>> mainloc  = models.CharField(max_length=1, choices = MAINLOC)
>>
>> and MAINLOC is a list of 2-tuples, with the first element a 1-character
>> expression (like 'B', 'M'...). I have updated the database (the name
>> mainloc is explicitly mentioned in the screen output), I have sync'd the
>> database and restarted the server. But still, when I want to display the
>> (empty) list on my browser, I get the message
>>
>>no such column: jobs_job.mainloc
>>
>>
>> Any idea or advice I could try to do?
>>
>> Thanks
>>Alex
>> --
>> 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/-/**4G24v1A5LaUJ
>> .
>> 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/-/mapjVj47xokJ.
>
> 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: no such column: jobs_job.mainloc

2012-04-13 Thread alex3627
Here is a repetition of what exactly I have done:

1. Add this field in my models.py

2. Run " python manage.py sql  jobs" (jobs is the name of the directory); 
in this step the field in question is explicitly written to stdout

3. Run "python manage.py syncdb"

4. Run "python manage.py runserver"

5. Go to the admin webpage to look at "jobs", and get this error. 

Maybe I missed something? Or had the wrong order? Even if I repeat those 
steps I get the same result. 


Alex


On Friday, April 13, 2012 1:12:09 PM UTC-5, Timothy Makobu wrote:
>
> Right. The question is whether you added the field "after" running syncdb 
> for the first time.
>
>
>>
>> On Friday, April 13, 2012 12:45:22 PM UTC-5, Timothy Makobu wrote:
>>>
>>> Did you run a syncdb, then added mainloc after? Also, using 
>>> southmakes things much easier.
>>>
>>> Of course I ran a syncdb. I have no experience with South and would like 
>> to solve this problem without using something else.
>>
>>
>> Thanks
>>   Alex
>>
>>  
>>
>>> Hi all, 
>>>
>>> I am new to django and just learning, but for the current error I have 
>>> absolutely no idea about the cause. I have created a model named Job in 
>>> model.py which contains several elements. One of the is defined as follows:
>>>
>>> mainloc  = models.CharField(max_length=1, choices = MAINLOC)
>>>
>>> and MAINLOC is a list of 2-tuples, with the first element a 1-character 
>>> expression (like 'B', 'M'...). I have updated the database (the name 
>>> mainloc is explicitly mentioned in the screen output), I have sync'd the 
>>> database and restarted the server. But still, when I want to display the 
>>> (empty) list on my browser, I get the message 
>>>
>>>no such column: jobs_job.mainloc
>>>
>>>
>>> Any idea or advice I could try to do? 
>>>
>>> Thanks
>>>Alex
>>> -- 
>>> 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/-/**4G24v1A5LaUJ
>>> .
>>> 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/-/mapjVj47xokJ.
>>
>> 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/-/ePOOMUQyPEgJ.
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: no such column: jobs_job.mainloc

2012-04-13 Thread Daniel Roseman
On Friday, 13 April 2012 19:33:07 UTC+1, alex3627 wrote:
>
> Here is a repetition of what exactly I have done:
>
> 1. Add this field in my models.py
>
> 2. Run " python manage.py sql  jobs" (jobs is the name of the directory); 
> in this step the field in question is explicitly written to stdout
>
> 3. Run "python manage.py syncdb"
>
> 4. Run "python manage.py runserver"
>
> 5. Go to the admin webpage to look at "jobs", and get this error. 
>
> Maybe I missed something? Or had the wrong order? Even if I repeat those 
> steps I get the same result. 
>
>>
>>
So, as Timothy says, you added since you originally ran syncdb.  The 
documentation[1] is clear that this doesn't work:
"Syncdb will not alter existing tables
syncdb will only create tables for models which have not yet been 
installed. It will never issue ALTER TABLE statements to match changes made 
to a model class after installation. Changes to model classes and database 
schemas often involve some form of ambiguity and, in those cases, Django 
would have to guess at the correct changes to make. There is a risk that 
critical data would be lost in the process.
If you have made changes to a model and wish to alter the database tables 
to match, use the sql command to display the new SQL structure and compare 
that to your existing table schema to work out the changes."

Or, as Timothy also said, use South.

 [1]:https://docs.djangoproject.com/en/1.3/ref/django-admin/#syncdb
--
DR.

-- 
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/-/gmtPdIXAu7sJ.
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: ORA-00918: column ambiguously defined.

2012-04-13 Thread Jani Tiainen
Hi,

Could you provide a bit more information since I tried to reproduce your
problem but I didn't manage to do it.

On Thu, Apr 12, 2012 at 7:48 PM, Rui Silva  wrote:

> Hi,
>
> I was working with django 1.3.1 and oracle and i got this error:
> ORA-00918: column ambiguously defined.
> After some digging in django/db/models/sql/compiler.py i discovered
> the bug/error:
>
> My models had a definition according to django sujested naming:
>
> class SampleModel(models.Model):
>   my_custom_id = models.AutoField('ID', db_column='MY_CUSTOM_ID'
> primary_key=True)
>   field2 = models...
>
> class RelatedSampleModel(models.Model):
>   id = models.AutoField('ID', primary_key=True)
>   sample_model = models.ForeignKey(SampleModel)
>
> As it happens, when we make a query that involves select_related, the
> generated query WILL NOT create a column alias for the my_custom_id
> column and we will have something like:
>
> SELECT * FROM (
>   SELECT ROWNUM AS "_RN", "_SUB".* FROM (
>   SELECT
>   "SAMPLE_MODEL"."MY_CUSTOM_ID",
>   "SAMPLE_MODEL"."FIELD2...",
>   "RELATED_SAMPLE_MODEL"."ID",
>
> "RELATED_SAMPLE_MODEL"."MY_CUSTOM_ID"
>   FROM  "REL"
>   INNER JOIN ".)) "_SUB" WHERE ROWNUM <= 21) WHERE
> "_RN" > 0'
>
>
> The problem was the definition of the db_column in uppercase and the
> foreignkey as a regular model field, witch resulted in a lowercase
> column name in the sql generator.
> I solved this error by changing all the names to lowercase. After
> that, django correctly defined the column alias:
> "RELATED_SAMPLE_MODEL"."MY_CUSTOM_ID" as Col20
>
> --
> 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.
>
>


-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
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: Working Hello World Ajax example via django pleeeease

2012-04-13 Thread Daniel Roseman


On Friday, 13 April 2012 17:04:49 UTC+1, Eli_West wrote:
>
> Thanks, I tried to stay clear of posting code because I've tried maybe 
> 20 different ways and nothing seems to work. I have used the {% url %} 
> tag and yesterday competed - a 'ajax_user_search' tut using django Q 
> still no luck. This was the load call: 
>
> $( document ).ready( function() { 
> $( '#searchSubmit' ).click( function() { 
> q = $( '#q' ).val(); 
> $( '#results' ).html( ' ' ).load( 
> '{% url userbase_user_search %}?q=' + q ); 
> }); 
> }); 
>
> Upon setting everything up and clicking the tag, nothing happens as 
> usual. I'm going to try the tut posted below with high hopes - and I 
> am considering trying 'djaxice' 
>
 

> OK. So, next question: where is that Javascript? In which file? Is it 
inside the HTML template that is parsed by Django, or is it in a separate 
.js file that is served by the static server? The second won't work, 
because the `url` tag will not be resolved to the actual URL. In either 
case, have a look at the rendered output of that JS to see that it has the 
URL you expect.
--
DR.

-- 
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/-/01xuMfbquQwJ.
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: no such column: jobs_job.mainloc

2012-04-13 Thread alex3627
Hi, 

before even thinking to use 'South', I want to get it to work quick and 
quick. I don't care about existing databases, I have no information in the 
database anyway. Is there a way to just recreate a new, empty database from 
scratch? Really, remove the old database and create a new database so that 
it corresponds the one I have defined in models.py.


On the other side, I am not able to look at the database myself, because 
when trying to open it I get the error:

   ERROR 2002 (HY000): Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)

Is there a way to access the database, and to possibly alter it, via 
"python manage.py shell"?


Thanks
  Alex

On Friday, April 13, 2012 3:10:33 PM UTC-5, Daniel Roseman wrote:
>
> On Friday, 13 April 2012 19:33:07 UTC+1, alex3627 wrote:
>>
>> Here is a repetition of what exactly I have done:
>>
>> 1. Add this field in my models.py
>>
>> 2. Run " python manage.py sql  jobs" (jobs is the name of the directory); 
>> in this step the field in question is explicitly written to stdout
>>
>> 3. Run "python manage.py syncdb"
>>
>> 4. Run "python manage.py runserver"
>>
>> 5. Go to the admin webpage to look at "jobs", and get this error. 
>>
>> Maybe I missed something? Or had the wrong order? Even if I repeat those 
>> steps I get the same result. 
>>
>>>
>>>
> So, as Timothy says, you added since you originally ran syncdb.  The 
> documentation[1] is clear that this doesn't work:
> "Syncdb will not alter existing tables
> syncdb will only create tables for models which have not yet been 
> installed. It will never issue ALTER TABLE statements to match changes made 
> to a model class after installation. Changes to model classes and database 
> schemas often involve some form of ambiguity and, in those cases, Django 
> would have to guess at the correct changes to make. There is a risk that 
> critical data would be lost in the process.
> If you have made changes to a model and wish to alter the database tables 
> to match, use the sql command to display the new SQL structure and compare 
> that to your existing table schema to work out the changes."
>
> Or, as Timothy also said, use South.
>
>  [1]:https://docs.djangoproject.com/en/1.3/ref/django-admin/#syncdb
> --
> DR.
>

-- 
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/-/w6JgToJE30cJ.
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: no such column: jobs_job.mainloc

2012-04-13 Thread Daniel Roseman
On Friday, 13 April 2012 21:25:06 UTC+1, alex3627 wrote:
>
> Hi, 
>
> before even thinking to use 'South', I want to get it to work quick and 
> quick. I don't care about existing databases, I have no information in the 
> database anyway. Is there a way to just recreate a new, empty database from 
> scratch? Really, remove the old database and create a new database so that 
> it corresponds the one I have defined in models.py.
>

"manage.py reset" will drop and recreate all the tables.
 

>
> On the other side, I am not able to look at the database myself, because 
> when trying to open it I get the error:
>
>ERROR 2002 (HY000): Can't connect to local MySQL server through socket 
> '/var/run/mysqld/mysqld.sock' (2)
>
> Is there a way to access the database, and to possibly alter it, via 
> "python manage.py shell"?
>

"manage.py dbshell" will open the database shell with a connection to your 
DB.

-- 
DR. 

-- 
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/-/fgs05tsYuFYJ.
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.



South tutorial is not working

2012-04-13 Thread alex3627
Hi all, 

as adviced to use "South" to do something 'better', I have installed it and 
tried to follow the appropriate tutorial here:

http://south.aeracode.org/docs/tutorial/part1.html

However, the first command "./manage.py schemamigration southtut --initial" 
resulted in the following error:

  Unknown command: 'schemamigration'

I guess I need to update some environment settings? To use a different 
manage.py? To restart everything from scratch? I am sorry for all those 
very beginner questions regarding django, but I am a very beginner, trying 
to follow the tutorial, which just don't wok for me.


Any advice is greatly appreciated. 


Alex

-- 
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/-/7UwZyFYSj9cJ.
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: no such column: jobs_job.mainloc

2012-04-13 Thread alex3627
Finally that worked! Thanks a lot!


Alex


On Friday, April 13, 2012 4:01:11 PM UTC-5, Daniel Roseman wrote:
>
> On Friday, 13 April 2012 21:25:06 UTC+1, alex3627 wrote:
>>
>> Hi, 
>>
>> before even thinking to use 'South', I want to get it to work quick and 
>> quick. I don't care about existing databases, I have no information in the 
>> database anyway. Is there a way to just recreate a new, empty database from 
>> scratch? Really, remove the old database and create a new database so that 
>> it corresponds the one I have defined in models.py.
>>
>
> "manage.py reset" will drop and recreate all the tables.
>  
>
>>
>> On the other side, I am not able to look at the database myself, because 
>> when trying to open it I get the error:
>>
>>ERROR 2002 (HY000): Can't connect to local MySQL server through socket 
>> '/var/run/mysqld/mysqld.sock' (2)
>>
>> Is there a way to access the database, and to possibly alter it, via 
>> "python manage.py shell"?
>>
>
> "manage.py dbshell" will open the database shell with a connection to your 
> DB.
>
> -- 
> DR. 
>

-- 
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/-/rUk8dsWakGYJ.
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: South tutorial is not working

2012-04-13 Thread Jacco Flenter
Hi Alex,

It looks like south was not added to the INSTALLED_APPS list in your
settings.py

Regards jacco
On Apr 13, 2012 11:05 PM, "alex3627"  wrote:

> Hi all,
>
> as adviced to use "South" to do something 'better', I have installed it
> and tried to follow the appropriate tutorial here:
>
> http://south.aeracode.org/docs/tutorial/part1.html
>
> However, the first command "./manage.py schemamigration southtut
> --initial" resulted in the following error:
>
>   Unknown command: 'schemamigration'
>
> I guess I need to update some environment settings? To use a different
> manage.py? To restart everything from scratch? I am sorry for all those
> very beginner questions regarding django, but I am a very beginner, trying
> to follow the tutorial, which just don't wok for me.
>
>
> Any advice is greatly appreciated.
>
>
> Alex
>
>  --
> 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/-/7UwZyFYSj9cJ.
> 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: South tutorial is not working

2012-04-13 Thread alex3627
Hi, 

I added the following line in the section of INSTALLED_APPS of my 
settings.py:

 'south',

then I ran "python manage.py syncdb" giving this error:

  Error: No module named adminsouth


Any ideas I have done wrong again?

Alex



On Friday, April 13, 2012 4:13:55 PM UTC-5, Jacco Flenter wrote:
>
> Hi Alex,
>
> It looks like south was not added to the INSTALLED_APPS list in your 
> settings.py
>
> Regards jacco
>
> Hi all, 
>>
>> as adviced to use "South" to do something 'better', I have installed it 
>> and tried to follow the appropriate tutorial here:
>>
>> http://south.aeracode.org/docs/tutorial/part1.html
>>
>> However, the first command "./manage.py schemamigration southtut 
>> --initial" resulted in the following error:
>>
>>   Unknown command: 'schemamigration'
>>
>> I guess I need to update some environment settings? To use a different 
>> manage.py? To restart everything from scratch? I am sorry for all those 
>> very beginner questions regarding django, but I am a very beginner, trying 
>> to follow the tutorial, which just don't wok for me.
>>
>>
>> Any advice is greatly appreciated. 
>>
>>
>> Alex
>>
>>  -- 
>> 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/-/7UwZyFYSj9cJ.
>> 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/-/NQbNGtU7J5gJ.
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: South tutorial is not working

2012-04-13 Thread George Silva
Post part of your settings .py here.

On Fri, Apr 13, 2012 at 6:51 PM, alex3627 wrote:

> Hi,
>
> I added the following line in the section of INSTALLED_APPS of my
> settings.py:
>
>  'south',
>
> then I ran "python manage.py syncdb" giving this error:
>
>   Error: No module named adminsouth
>
>
> Any ideas I have done wrong again?
>
> Alex
>
>
>
>
> On Friday, April 13, 2012 4:13:55 PM UTC-5, Jacco Flenter wrote:
>
>> Hi Alex,
>>
>> It looks like south was not added to the INSTALLED_APPS list in your
>> settings.py
>>
>> Regards jacco
>>
>> Hi all,
>>>
>>> as adviced to use "South" to do something 'better', I have installed it
>>> and tried to follow the appropriate tutorial here:
>>>
>>> http://south.aeracode.org/**docs/tutorial/part1.html
>>>
>>> However, the first command "./manage.py schemamigration southtut
>>> --initial" resulted in the following error:
>>>
>>>   Unknown command: 'schemamigration'
>>>
>>> I guess I need to update some environment settings? To use a different
>>> manage.py? To restart everything from scratch? I am sorry for all those
>>> very beginner questions regarding django, but I am a very beginner, trying
>>> to follow the tutorial, which just don't wok for me.
>>>
>>>
>>> Any advice is greatly appreciated.
>>>
>>>
>>> Alex
>>>
>>>  --
>>> 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/-/**7UwZyFYSj9cJ
>>> .
>>> 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/-/NQbNGtU7J5gJ.
>
> 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.
>



-- 
George R. C. Silva

Desenvolvimento em GIS
http://geoprocessamento.net
http://blog.geoprocessamento.net

-- 
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: South tutorial is not working

2012-04-13 Thread Daniel Roseman
On Friday, 13 April 2012 22:51:06 UTC+1, alex3627 wrote:
>
> Hi, 
>
> I added the following line in the section of INSTALLED_APPS of my 
> settings.py:
>
>  'south',
>
> then I ran "python manage.py syncdb" giving this error:
>
>   Error: No module named adminsouth
>
>
> Any ideas I have done wrong again?
>
> Alex
>
>>
>>>
You're missing a comma at the end of the line before 'south', which 
presumably ends in 'admin'.
--
DR.
 

-- 
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/-/NXuBF0szBuMJ.
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 Book

2012-04-13 Thread Herock Xia


On Thursday, April 12, 2012 4:39:35 PM UTC+8, Svyatoslav Bulbakha wrote:
>
>
> List of tutorials: https://code.djangoproject.com/wiki/Tutorials
>
>
I found this tutorials list is very useful! thanks Svyatoslav.

-- 
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/-/y1B16LU2yd0J.
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.



Can't start new project

2012-04-13 Thread Brandy
After first installing Django, I am able to use "django-admin.py 
startproject " with no problem. After a while, if I try to 
start a new project, my editor opens and no files or directories are 
created. After doing LOTS of research, it turns out this is a rather common 
problem/bug. I have tried what feels like everything. I have edited the 
PATH, checked that all appropriate registry entries are "python.exe" "%1" 
%* (I even tried %%), I've tried variations of "django-admin startproject" 
and "python django-admin startproject". The only thing that has worked so 
far is reinstalling Django. However, I wind up encountering the same 
problem eventually. Does anyone have a permanent fix not listed here? I am 
running Python27, Django 1.4, and Windows 7. Thanks 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/-/G4kncIixzIAJ.
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: Can't start new project

2012-04-13 Thread Jani Tiainen
Are you using virtual environments?

Since I've been doing all my django development on windows last 3 years
without any major problems...

On Sat, Apr 14, 2012 at 6:04 AM, Brandy  wrote:

> After first installing Django, I am able to use "django-admin.py
> startproject " with no problem. After a while, if I try to
> start a new project, my editor opens and no files or directories are
> created. After doing LOTS of research, it turns out this is a rather common
> problem/bug. I have tried what feels like everything. I have edited the
> PATH, checked that all appropriate registry entries are "python.exe" "%1"
> %* (I even tried %%), I've tried variations of "django-admin startproject"
> and "python django-admin startproject". The only thing that has worked so
> far is reinstalling Django. However, I wind up encountering the same
> problem eventually. Does anyone have a permanent fix not listed here? I am
> running Python27, Django 1.4, and Windows 7. Thanks 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/-/G4kncIixzIAJ.
> 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.
>



-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
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: Can't start new project

2012-04-13 Thread Brandy
No, I'm not using virtual environments.
 

On Friday, April 13, 2012 11:51:33 PM UTC-5, Jani Tiainen wrote:

> Are you using virtual environments?
>
> Since I've been doing all my django development on windows last 3 years 
> without any major problems...
>
> On Sat, Apr 14, 2012 at 6:04 AM, Brandy  wrote:
>
>> After first installing Django, I am able to use "django-admin.py 
>> startproject " with no problem. After a while, if I try to 
>> start a new project, my editor opens and no files or directories are 
>> created. After doing LOTS of research, it turns out this is a rather common 
>> problem/bug. I have tried what feels like everything. I have edited the 
>> PATH, checked that all appropriate registry entries are "python.exe" "%1" 
>> %* (I even tried %%), I've tried variations of "django-admin startproject" 
>> and "python django-admin startproject". The only thing that has worked so 
>> far is reinstalling Django. However, I wind up encountering the same 
>> problem eventually. Does anyone have a permanent fix not listed here? I am 
>> running Python27, Django 1.4, and Windows 7. Thanks 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/-/G4kncIixzIAJ.
>> 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.
>>
>
>
>
> -- 
> Jani Tiainen
>
> - Well planned is half done, and a half done has been sufficient before...
>
>  

-- 
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/-/MFfD9AEjNQUJ.
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: Can't start new project

2012-04-13 Thread Jani Tiainen
I really suggest you to use virtualenv, it makes your life easier in the
long run. Also I use a TCC/LE instead of powershell / cmd prompt to mimic
more unix like environment.

Though you mentioned " After a while, if I try to start a new project, my
editor opens and no files or directories are created. "  what you exactly
mean by that?

I feel that I should write short article how to make development in win7
slightly less painful...

On Sat, Apr 14, 2012 at 8:19 AM, Brandy  wrote:

> No, I'm not using virtual environments.
>
>
> On Friday, April 13, 2012 11:51:33 PM UTC-5, Jani Tiainen wrote:
>
>> Are you using virtual environments?
>>
>> Since I've been doing all my django development on windows last 3 years
>> without any major problems...
>>
>> On Sat, Apr 14, 2012 at 6:04 AM, Brandy wrote:
>>
>>> After first installing Django, I am able to use "django-admin.py
>>> startproject " with no problem. After a while, if I try to
>>> start a new project, my editor opens and no files or directories are
>>> created. After doing LOTS of research, it turns out this is a rather common
>>> problem/bug. I have tried what feels like everything. I have edited the
>>> PATH, checked that all appropriate registry entries are "python.exe" "%1"
>>> %* (I even tried %%), I've tried variations of "django-admin startproject"
>>> and "python django-admin startproject". The only thing that has worked so
>>> far is reinstalling Django. However, I wind up encountering the same
>>> problem eventually. Does anyone have a permanent fix not listed here? I am
>>> running Python27, Django 1.4, and Windows 7. Thanks 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/-/**G4kncIixzIAJ
>>> .
>>> 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
>>> .
>>>
>>
>>
>>
>> --
>> Jani Tiainen
>>
>> - Well planned is half done, and a half done has been sufficient before...
>>
>>   --
> 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/-/MFfD9AEjNQUJ.
>
> 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.
>



-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
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: cannot import name `feed`

2012-04-13 Thread Nikhil Somaru
You have upgraded to Django 1.4.

I had the same problem when going from Django 1.3.1 to 1.4.

Suggestion:

pip install django==1.3.1

On Mar 6, 7:22 am, Alec Taylor  wrote:
> I keep getting an ImportError saying "cannot import name `feed`".
> (pinax-admin basic_project)
>
> I am running latest Pinax (from github) and latest DJango (from SVN),
>
> I have also tried with trunk versions of all dependencies, but I keep
> getting this error.
>
> How can I overcome this error?
>
> Thanks for all suggestions,
>
> Alec Taylor

-- 
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: cannot import name `feed`

2012-04-13 Thread Nikhil Somaru
You have upgraded to Django 1.4.

I had the same problem when going from Django 1.3.1 to 1.4.

Suggestion:

pip install django==1.3.1

On Mar 6, 7:22 am, Alec Taylor  wrote:
> I keep getting an ImportError saying "cannot import name `feed`".
> (pinax-admin basic_project)
>
> I am running latest Pinax (from github) and latest DJango (from SVN),
>
> I have also tried with trunk versions of all dependencies, but I keep
> getting this error.
>
> How can I overcome this error?
>
> Thanks for all suggestions,
>
> Alec Taylor

-- 
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.