syncdb does not find model, but it does in the shell

2012-06-05 Thread Benedict Verheyen
Hi, as the title says, in a new project (django trunk), my model isn't found by syncdb. However, when I run a shell_plus (I use django extensions), then I can import it without a problem. So from sql.models.mytestmodel import MyTestModel works. syncdb doens't produce any errors, it just doesn't

Accessing Backend DB for UI

2012-06-05 Thread Ali Shaikh
Hey.. I am working for project, in that the back-end code is return in perl and am working for front-end part i.e UI using Django, Can any one can tell me how to access back-end database which is return in perl or any othere languages .?? Pls help Thank You -- You received this messag

Re: Accessing Backend DB for UI

2012-06-05 Thread Benoit Perdu
Is there a database (SQLite, MySQL, PostGreSQL, ...) at your backend, or is it an abstraction layer made in Perl? If you have a databse, why not access it directly with Django --You would need to build your model to fit, and set the username to one the DB accepts, but this looks like the clean

Re: PyPm / Django 1.4?

2012-06-05 Thread James
I use Postgres for this. You will need to install visual studios 2008. Not sure why you said that is an issue. I've never had a problem on several installations. However, pscyopg2 has binaries, that is what I use. >From there you can just virtualnv / pip. -- You received this message because

Re: Sorl thumbnails VS Google

2012-06-05 Thread kooliah
That's what i'll do. Thanks for the answer On 06/04/2012 03:10 PM, fabrixxm wrote: On 4 Giu, 12:32, kooliah wrote: So i can't understand if i want to have a better ranking, it is better to not use sorl for this kind of images and use that gives from a user perspective, I thin

runserver and the tty echo flag

2012-06-05 Thread Bill Freeman
I have been noticing in recent Django versions (I don't remember it in 1.2, probably) that having run the development server, the tty's echo flag is set afterwards, no matter its value before. (I frequently run from an emacs shell window, which has echo off because emacs will have "echoed" the tex

Re: Django session and Dojo dnd.

2012-06-05 Thread voss
Hello Hendrik, Thank you for the explanation. It is *very* helpful! voss On Monday, June 4, 2012 8:21:15 PM UTC-5, henzk wrote: > > Hi Voss, > > i forgot about django's CSRF protection. > You can use the csrf_exempt decorator on the view function to disable > django's CSRF protection - howe

Re: django 1.4, wsgi, flex deploy best practices

2012-06-05 Thread Joni Bekenstein
Well, since this is the django group, I'll suppose that *${application}* is a template variable (Maybe it's a template used by ant when compiling the flex app). If this index is indeed handled by a django view, you could then configure the basePath / host like this: 1. You could add it to your

Re: Django unsupported locale settings

2012-06-05 Thread Thomas Lockhart
On 6/5/12 4:06 AM, Mo Mughrabi wrote: I've been developing an application using Django for the past a year. The application was written in a Debian environment, the development and testing was entirely done in a debain machine. Recently, I decided to move the application to my local Mac OS X

. delete() don't work

2012-06-05 Thread Lucas Aride Moulin
When I use example.objects.all().delete() I get an error that the table example_delete wasn't found on the DB. Any ideas of what am I doing wrong? Thanks, -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: . delete() don't work

2012-06-05 Thread David Markey
Did you do a python manage.py syncdb? Are you using sqlite and have relative paths? On 5 June 2012 14:37, Lucas Aride Moulin wrote: > When I use example.objects.all().delete() I get an error that the table > example_delete wasn't found on the DB. Any ideas of what am I doing wrong? > Thanks, >

Re: How to perform a simple search ignoring characters with accents (á, é, í, ó, ú)

2012-06-05 Thread bruno desthuilliers
Since no one seemed to mention it so far: what about using a real fulltext search engine ? (hint : django-haystack provides a django-ish, unified API over quite a few known search engines). -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: . delete() don't work

2012-06-05 Thread Lucas Aride Moulin
The syncdb worked. Isso didn't know that the delete() need a table. Thanks, On Jun 5, 2012 10:50 AM, "David Markey" wrote: > Did you do a python manage.py syncdb? > > Are you using sqlite and have relative paths? > > On 5 June 2012 14:37, Lucas Aride Moulin wrote: > >> When I use example.objects

Re: Question regarding cloud deployment and bash automatization

2012-06-05 Thread Robert Steckroth
For what it's worth, this script below is the best I could come up with so far --> site_domain="radioweedshow.com" site_name="www.radioweedshow.com" if [ -n "$sites_used" ]; then juju-log "Found django.contrib.sites in installed apps. Creating single table as defined in this script." echo "f

Admin filter sidebar problem

2012-06-05 Thread kooliah
Here me again :-) I know that with django 1.4 there are custom filters, but i have to use 1.3 so I have a model with a foreign key to another class mdl1(models.Model): color = models.ForeignKey(colors) name = models.CharField(_("name"), If in the admin.py i assign list_filter to c

Re: PyPm / Django 1.4?

2012-06-05 Thread Aaron C. de Bruyn
On Mon, Jun 4, 2012 at 12:41 PM, Aaron C. de Bruyn wrote: > Windows is such a nightmare.  PyPm doesn't have sqlite packages--they > all show a failure to compile on ActiveState's site.  Apparently > they've always failed for every version of Windows ever.  Pip wasn't > much help as I need to insta

Re: How to perform a simple search ignoring characters with accents (á, é, í, ó, ú)

2012-06-05 Thread akaariai
On Jun 4, 4:20 pm, Peter of the Norse wrote: > One possibility is to use MySQL. By default it indexes things so that a, á, > and À are the same thing. There are some gotchas though: you have to make > sure that it’s using an appropriate character set for the languages you’re > using. (UTF-8 is

Re:SOLVED Admin filter sidebar problem

2012-06-05 Thread kooliah
Solved using custom filterspecs as said in: http://djangosnippets.org/snippets/2261/ On 06/05/2012 07:27 PM, kooliah wrote: Here me again :-) I know that with django 1.4 there are custom filters, but i have to use 1.3 so I have a model with a foreign key to another class mdl1(models.M

Re: Sorl thumbnails VS Google

2012-06-05 Thread Àlex Pérez
Hello, You can change the name of the files generated by sorl and be sure that the name that you are giving to the image is unique, and if not, make a new name, you can find information about that locking the code: https://github.com/sorl/sorl-thumbnail/blob/master/sorl/thumbnail/base.py#L32 and

Getting the last modified datetime from a DateTimeField

2012-06-05 Thread Jesus Noland
Hello everyone, I am using Django 1.3 on Python 2.7 and I have a field in a model setup like this: date = models.DateTimeField(auto_now=True, auto_now_add=True) now I would like to know how to get the last modified date from this field if my model is called 'm': m.date.last_modified ???

How to edit form filling it with actual data

2012-06-05 Thread Lucas Aride Moulin
I have a function that creates a form, loading the info that already exists in the DB, but I want it to fill the form with the info loaded. I found an article on djangoproject teaching how to do this, but it won't work with me. At novo = disciplinaForm(request.POST, instance=atual), if I remove t

Re: How to edit form filling it with actual data

2012-06-05 Thread Lucas Aride Moulin
and with "request.POST" it don't load the info. Anyone, knows what to do? Thanks, 2012/6/5 Lucas Aride Moulin > I have a function that creates a form, loading the info that already > exists in the DB, but I want it to fill the form with the info loaded. I > found an article on djangoproject

Antw.: How to edit form filling it with actual data

2012-06-05 Thread Hendrik Speidel
Hi Lucas, Try moving the first novo=... Right after if request.method Then dedent the else and the line following it (the second novo) Then remove request.POST from the second novo Explanation: If the request method is not POST this will instanciate an unbound form that loads the data from the

Re: Antw.: How to edit form filling it with actual data

2012-06-05 Thread Lucas Aride Moulin
Hi Hendrik, I did what you said but I got an error because the variable "novo" is referenced before it's assignment. My html of this view is: {% csrf_token %} {{ novo.as_p }} 2012/6/5 Hendrik Speidel > Hi Lucas, > > Try moving the first novo=... Right after if request.method > > Then deden

Re: Antw.: How to edit form filling it with actual data

2012-06-05 Thread Lucas Aride Moulin
I'm sorry, the error was caused because I forgot to dedent the "else". But it still not showing the current information on the form. (it's working fine) 2012/6/5 Lucas Aride Moulin > Hi Hendrik, > > I did what you said but I got an error because the variable "novo" is > referenced before it's as

Re: Antw.: How to edit form filling it with actual data

2012-06-05 Thread Lucas Aride Moulin
Sorry about the flood but I made it. I removed the "request.POST" of the "else", and it worked. Thank you Hendrik. Problem solved 2012/6/5 Lucas Aride Moulin > I'm sorry, the error was caused because I forgot to dedent the "else". But > it still not showing the current information on the form. (i

Job in Newcastle NSW

2012-06-05 Thread Peter Williams
Hi all The RDN seeks a PROGRAMMER/SYSTEMS ENGINEER for 12 months to be based in our Head Office in Newcastle’s CBD. This position will provide essential programming services to the Information Management team utilising high-level development languages and libraries such as SQL, HTML, Django,

Re: Accessing Backend DB for UI

2012-06-05 Thread Tanveer Ali Sha
Thank you for your mail benoit. No ,it abstraction layer made in perl, i wanna access that data for my front-end part. On Tue, Jun 5, 2012 at 4:50 PM, Benoit Perdu wrote: > Is there a database (SQLite, MySQL, PostGreSQL, ...) at your backend, or > is it an abstraction layer made in Perl? > > If

about_dajngo

2012-06-05 Thread Satvir Kaur
I have problem regarding the graphs in django. which libraries are required to plot graph in django framework. -- 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 fro

Re: about_dajngo

2012-06-05 Thread kenneth gonsalves
On Tue, 2012-06-05 at 21:51 -0700, Satvir Kaur wrote: > I have problem regarding the graphs in django. which libraries are > required to plot graph in django framework. any library that you ordinarily use in your html pages will work. -- regards Kenneth Gonsalves -- You received this message b

Re: about_dajngo

2012-06-05 Thread Satvir Toor
On Wed, Jun 6, 2012 at 10:47 AM, kenneth gonsalves wrote: > any library that you ordinarily use in your html pages will work. What are the major uses of numpy and matplotlib libraries in django. -- Satvir Kaur satveerkaur.blogspot.in -- You received this message because you are subscribed to