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 Pin

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 Pin

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 crea

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

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 w

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

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 "Djang

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 w

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 >

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

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

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

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:

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

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

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

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 d

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 >

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"

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

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):

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 with

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 hav

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 a

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) a

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

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() { $( '#searc

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 Fr

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 Tust

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]

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 yo

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: ad

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 >

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

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, y

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

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

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:

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 di

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

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 in

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,

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 p

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 m

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 au

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

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

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

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, pl

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 >

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

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

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)95792

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

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

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

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 se

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

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 g

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, fir

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 thi

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.

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 escap

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 cont

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 with