Re: Admin links not working after switching to Django 1.4

2012-06-08 Thread mete
Hello folks, i found out that we had a buggy url config that messed up admin urls, did not realized this in 1.3.1 though Cheers Hello folks, > > i have a django application that was created using 1.3.1, when i > change the runtime to use django 1.4 via virtualenv, on the admin > page: there

Graphs for my Django Application

2012-06-08 Thread Tanveer Ali Sha
Hello, How can I provide graphs in my djnago application.I wanna implement this for my Network Analysis Application . Can anyone give me idea how to provide graphs in Django. Thank Yo... Sha -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Graphs for my Django Application

2012-06-08 Thread kenneth gonsalves
On Fri, 2012-06-08 at 12:50 +0530, Tanveer Ali Sha wrote: > How can I provide graphs in my djnago application.I wanna implement > this > for my Network Analysis Application . https://developers.google.com/chart/ -- regards Kenneth Gonsalves -- You received this message because you are

Re: Question

2012-06-08 Thread Russell Keith-Magee
On Fri, Jun 8, 2012 at 1:59 PM, Tugume Humphrey wrote: > try out that book it may help you like it help mi alot. And any thing > you do not understand refer to https://www.djangoproject.com it will > also help alot I've just deleted this post from the django-users archive,

Re: Graphs for my Django Application

2012-06-08 Thread Tim Sawyer
On 08/06/12 08:20, Tanveer Ali Sha wrote: Hello, How can I provide graphs in my djnago application.I wanna implement this for my Network Analysis Application . Can anyone give me idea how to provide graphs in Django. Thank Yo... Sha I've done this using flot. http://code.google.com/p/flot/

Make a number range filter in change list

2012-06-08 Thread yillkid
Hi all, I want to add a filter in my change list, user can input maximum and minimum number, after press ok button, template will render output data in change list. There is my model.py : class test(models.Model): odd_even = models.DecimalField(max_digits = 2, decimal_places = 2) I have

Re:

2012-06-08 Thread Lucas Aride Moulin
Post the content of your URLs.py so we can see if there is any errors On Jun 8, 2012 2:17 AM, "Satvir Toor" wrote: > here is my problem > As i request for a url specified in urlpatterns variable in urls.py > file of the djangoproject It gives > TypeError > Exception

Re: Admin links not working after switching to Django 1.4

2012-06-08 Thread Lucas Aride Moulin
I don't use django 1.4 but do you have the admin.py file into your app folder with your models included? On Jun 8, 2012 3:22 AM, "mete" wrote: > Hello folks, > > i found out that we had a buggy url config that messed up admin urls, did > not realized this in 1.3.1 though >

User registeration

2012-06-08 Thread AJAYI THEOPHILUS
i have just uploaded a django site http://www.kuuzar.com but when users register it returns with the error IntegrityError at /accounts/ register/ duplicate key value violates unique constraint "auth_user_username_key" DETAIL: Key (username)=() already exists. -- You received this message

Re: Error creating project from the Command Prompt

2012-06-08 Thread andres orozco
Oh okay thank you so much El jueves, 7 de junio de 2012 03:01:01 UTC-5, Jani Tiainen escribió: > > 7.6.2012 10:29, andres orozco kirjoitti: > > I've installed django 1.4 and i want to test the installation, i don't > > know too much about this cuz' i'm just learning, but i tried it using > >

Re: Graphs for my Django Application

2012-06-08 Thread 罗健忠
Google Chart(https://developers.google.com/chart/) may fix your need and there is a python wrapper for it: http://pygooglechart.slowchop.com/ -- http://about.me/newkedison -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: User registeration

2012-06-08 Thread kenneth gonsalves
On Fri, 2012-06-08 at 00:05 -0700, AJAYI THEOPHILUS wrote: > i have just uploaded a django site http://www.kuuzar.com but when > users register it returns with the error IntegrityError at /accounts/ > register/ > > duplicate key value violates unique constraint > "auth_user_username_key" >

Re:

2012-06-08 Thread Diego pascual lopez
Do you put your model views in the call of patterns? Like this in urls.py: patterns('namemodel.views', url(r'^routename/$', 'name_def_view', name='name_def_view_call'), ) Sorry for my english On Fri, Jun 8, 2012 at 12:11 PM, Lucas Aride Moulin wrote: > Post the

Re: User registeration

2012-06-08 Thread AJAYI THEOPHILUS
On Jun 8, 3:51 am, kenneth gonsalves wrote: > On Fri, 2012-06-08 at 00:05 -0700, AJAYI THEOPHILUS wrote: > > i have just uploaded a django sitehttp://www.kuuzar.combut when > > users  register it returns with the error IntegrityError at /accounts/ > > register/ > > >

Re: Graphs for my Django Application

2012-06-08 Thread Steve McConville
> Can anyone give me idea how to provide graphs in Django. Assuming you mean "graph" in the "graph theory" sense, then NetworkX (http://networkx.lanl.gov/) is a mature graph library for python. -- steve -- You received this message because you are subscribed to the Google Groups "Django

RSS Feed

2012-06-08 Thread armagan
Hi, I'm trying to implemente an rss to my project. I have done a simple example in django doc. But I have an error in urls.py. from 'blogum.feeds import LatestEntriesFeed' ==> I've imported this, I have an error 'No module named feeds'. Thanks in advance for any help provided. Armağan --

Re: RSS Feed

2012-06-08 Thread Diego pascual lopez
Hi, Do you have in your blogum directory a feeds.py? On Fri, Jun 8, 2012 at 1:53 PM, armagan wrote: > Hi, > > I'm trying to implemente an rss to my project. I have done a simple > example in django doc. But I have an error in urls.py. > > from 'blogum.feeds import

Re: RSS Feed

2012-06-08 Thread bruno desthuilliers
On Jun 8, 1:53 pm, armagan wrote: > Hi, > > I'm trying to implemente an rss to my project. I have done a simple > example in django doc. Which one ? url, please. > But I have an error in urls.py. > > from 'blogum.feeds import LatestEntriesFeed' ==> I've imported this, I

Re: RSS Feed

2012-06-08 Thread armagan
No, I just realized. But I tried import 'from projem.blogum.views import LatestEntriesFeed' and I've had a 404 error. I guess, i have a url error. #My RSS class class LatestEntriesFeed(Feed): title = "site news" link = "/projeler/haberler/" description = "Updates on changes and

Re: User registeration

2012-06-08 Thread kooliah
On 06/08/2012 01:06 PM, AJAYI THEOPHILUS wrote: No the user has not been added the site has just been uploaded and new user has been added i am testing trying to see how the registeration page works one user registers successfully but subsequent user i try to register return the exception

RE: Django mod_wsgi + No data received in browser

2012-06-08 Thread Sells, Fred
You may need to "view source" in your browser; also attached is a snippet I used to test mod_wsgi but does not really use django. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Jose Sent: Thursday, June 07, 2012 4:35 PM To:

Re: RSS Feed

2012-06-08 Thread Diego pascual lopez
On Fri, Jun 8, 2012 at 2:23 PM, armagan wrote: > No, I just realized. But I tried import 'from projem.blogum.views > import LatestEntriesFeed' and I've had a 404 error. I guess, i have a > url error. > > #My RSS class > class LatestEntriesFeed(Feed): >title = "site

Re: limit number of related instance for m2m field in django-admin

2012-06-08 Thread vijay shanker
override def clean() of form and raise forms.ValidationError( 'Your Error Message here' ) On Jun 7, 6:45 pm, Kurtis Mullins wrote: > You could customize the Admin Book Creation Form's save() method to check > for X number of books an author already has. > > Note: I have

more than 1 level of belongsTo

2012-06-08 Thread rahajiyev
Hi, I have a model Foo belongsTo Bar, which in turn belongsTo Xyzzy. When I do $this->Foo->find('all'); sql dump shows that the SQL join is performed only for Foo->Bar, but Xyzzy is never mentioned. I tried all sorts of 'recursive' => 1 it didn't matter. Please help me. CakePHP 1.3.15 -- You

more than 1 level of belongsTo

2012-06-08 Thread rahajiyev
Hi, I have a model Foo belongsTo Bar, which in turn belongsTo Xyzzy. When I do $this->Foo->find('all'); sql dump shows that the SQL join is performed only for Foo->Bar, but Xyzzy is never mentioned. I tried all sorts of 'recursive' => 1 it didn't matter. Please help me. CakePHP 1.3.15 -- You

Re: Graphs for my Django Application

2012-06-08 Thread william ratcliff
Jqplot is a succesor to flot. On Jun 8, 2012 7:12 AM, "Steve McConville" wrote: > > Can anyone give me idea how to provide graphs in Django. > > Assuming you mean "graph" in the "graph theory" sense, then NetworkX > (http://networkx.lanl.gov/) is a mature graph

Re: RSS Feed

2012-06-08 Thread armagan
I solved the problem. I used application's urls.py not project's urls.py and update urls like (r'^rss/$', LatestEntriesFeed()). Thanks for help. On Jun 8, 3:45 pm, Diego pascual lopez wrote: > On Fri, Jun 8, 2012 at 2:23 PM, armagan wrote: > > No,

m2m_changed signal can not distinguish between existing and newly added instances

2012-06-08 Thread vijay shanker
hi i have this model Client_Order i want to do some manipulation each time a new pakg is added to this field. i used m2m_changed signal, but it cant distinguish between existing instances attached and the newly added ones. both post_add and pre_add show the same number of instances .. i.e if a.b

Problem with MySQLdb...

2012-06-08 Thread J Allen
So I've been trying to get my Django instance up and running, and have installed Django via Cygwin and have all the supposed things it needs like MySQLdb, zlib, etc. When I run manage.py runserver, it dies on something needed in the MySQLdb package called _mysql lib, which I'm assuming is some C

Re: Problem with MySQLdb...

2012-06-08 Thread Anand Jeyahar
On 8 June 2012 20:01, J Allen wrote: > So I've been trying to get my Django instance up and running, and have > installed Django via Cygwin and have all the supposed things it needs > like MySQLdb, zlib, etc. > > When I run manage.py runserver, it dies on something needed in

Re: more than 1 level of belongsTo

2012-06-08 Thread bruno desthuilliers
What about posting your CakePHP questions to a CakePHP related group ? On Jun 8, 2:56 pm, rahajiyev wrote: > Hi, I have a model Foo belongsTo Bar, which in turn belongsTo Xyzzy. > When I do $this->Foo->find('all'); > > sql dump shows that the SQL join is performed only

Re: Problem with MySQLdb...

2012-06-08 Thread J Allen
I believe so (I pretty much installed every mysql development based option on Cygwin). Here is the trace after running manage.py runserver... Unhandled exception in thread started by > Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/django/core/management/

Re: more than 1 level of belongsTo

2012-06-08 Thread rihad
On Jun 8, 8:17 pm, bruno desthuilliers wrote: > What about posting your CakePHP questions to a CakePHP related > group ? > Dammit, sorry for that. Wrong topic. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Accessing current URI from template tag

2012-06-08 Thread Swaroop Shankar V
Thanks Bruno, will check that. Thanks and Regards, Swaroop Shankar V On Wed, Jun 6, 2012 at 2:59 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On Jun 6, 10:27 am, Swaroop Shankar V wrote: > > Hello All, > > > > Well my question is on how to get the

Re: ForeignKey and Performance

2012-06-08 Thread Thomas Orozco
Why not use a lookup: TheA = ... TheCs = C.objects.filter(b__a = TheA) Le 8 juin 2012 15:01, "bo.schwarzst...@gmail.com" a écrit : > ** > Hi all, > > Is there any guideline about SQL performance ? > > For example, now we have 3 models, > > class A(Model): > ... > >

setting debug to false

2012-06-08 Thread Nenad Cikic
Hello, is there any known reason why I can not see my static files when setting debug to false in the settings.py? Just setting debug to True all is OK. Thanks Nenad -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on

Re:

2012-06-08 Thread vinoth kumar renganathan
yaa its working thank you a lot -- 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

Re: more than 1 level of belongsTo

2012-06-08 Thread David Lam
On Fri, Jun 8, 2012 at 5:56 AM, rahajiyev wrote: > Hi, I have a model Foo belongsTo Bar, which in turn belongsTo Xyzzy. > When I do $this->Foo->find('all'); > > sql dump shows that the SQL join is performed only for Foo->Bar, but > Xyzzy is never mentioned. > I tried

Re: Graphs for my Django Application

2012-06-08 Thread Solvik
There is also Highcharts : http://www.highcharts.com/ Le vendredi 8 juin 2012 09:20:13 UTC+2, Ali Shaikh a écrit : > > Hello, > > How can I provide graphs in my djnago application.I wanna implement this > for my Network Analysis Application . > > Can anyone give me idea how to provide graphs in

Re: Graphs for my Django Application

2012-06-08 Thread bobhaugen
> > http://d3js.org/ can handle both meanings of graphs: charts like bar charts, or visualizations of network structures. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: setting debug to false

2012-06-08 Thread Javier Guerra Giraldez
On Fri, Jun 8, 2012 at 11:53 AM, Nenad Cikic wrote: > is there any known reason why I can not see my static files when setting > debug to false in the settings.py? > Just setting debug to True all is OK. you need to run the collectstatic management command

admin hangs deleting multiple users

2012-06-08 Thread Larry Martell
In my admin site, if I select multiple users, then select 'Delete selected users' and click 'Go', it hangs. I can delete one user at a time with no issues. There is nothing logged anywhere - not in any apache log nor in the mysql log. Where can I look for more info to debug this? -larry -- You

GeoDjango on Bitnami DjangoStack problems

2012-06-08 Thread jstratm
I posted this over at bitnami too, but perhaps the issue is not with the stack and is simply a general user error (highly likely!) I have been struggling now for about two days to get a GeoDjango/ PostGIS project started. Sorry to say, I am fairly new to both Django and Linux, but I will do my

Re: Problem with Django Project

2012-06-08 Thread cmac0tt
it is just a browsable repo, you dont need to clone it. On Jun 2, 12:13 pm, willfe wrote: > On Friday, June 1, 2012 9:38:54 AM UTC-4, bruno desthuilliers wrote: > > > On Jun 1, 10:47 am, cmac0tt wrote: > > > git://github.com/cmac0tt/wikicamp.git >

Re: setting debug to false

2012-06-08 Thread Nenad Cikic
Yes, I know about that, but I just wanted to test with runserver and debug=False (I have done my 404.html and with debug=True it does not shows up) Isn't the collectstatic command when you want to pass to deployment server? Thanks Nenad -- You received this message because you are subscribed

Re: setting debug to false

2012-06-08 Thread Nenad Cikic
I have managed to solve using the http://stackoverflow.com/questions/6363728/why-cant-i-get-my-static-dir-to-work-with-django-1-3 by adding to url url(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT } ), where I have first collected to STATIC_ROOT with