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 collectstatic
Whn it will come to deployment, we will see what happens.
Thanks 
Nenad

-- 
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/-/rjUih6z7DJ4J.
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: 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 to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/k8T-LNKvOS8J.
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: 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
>
> > Some web-browsable link would have been more helpful (sorry, I'm not
> > going to clone your repo).
>
> I think that's justhttps://github.com/cmac0tt/wikicamp... I get a
> browsable repository view when browsing there.

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



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 best to explain what I have tried thus
far.

First, my assumption: This self contained bitnami djangostack package
already has everything internally to do a basic Geodjango/PostGIS
project (I have looked through directories and see them all, but maybe
they still must be installed?? hmm).  Please let me know if this is
incorrect.

I am following https://docs.djangoproject.com/en/1.4/ref/contrib/gis/tutorial/
My steps:

-Installed DjangoStack on Ubunutu 12.4 via the GUI, with all 3 DBs, no
initial project set up
-Open up and exclusively work from “use_djangostack” terminal
-followed the link for “spatial database template” to
https://docs.djangoproject.com/en/1.4/ref/contrib/gis/install/#spatialdb-template,
followed directions there:
-was NOT able to execute the command “$ sudo su – postgres” (“unknown
id”) to switch to being a “privileged database user,” BUT I could
still (mostly) successfully execute:
$ POSTGIS_SQL_PATH=/home/jstratman/djangostack-1.4-1/postgresql/share/
contrib/postgis-2.0
$ createdb -E UTF8 template_postgis
$ createlang -d template_postgis plpgsql # Adding PLPGSQL language
support.
(^this command was unsuccessful, stating it already had this language
support)
$ psql -d postgres -c "UPDATE pg_database SET datistemplate='true'
WHERE   datname='template_postgis';"
$ psql -d template_postgis -f $POSTGIS_SQL_PATH/postgis.sql
$ psql -d template_postgis -f $POSTGIS_SQL_PATH/spatial_ref_sys.sql
$ psql -d template_postgis -c "GRANT ALL ON geometry_columns TO
PUBLIC;"
$ psql -d template_postgis -c "GRANT ALL ON geography_columns TO
PUBLIC;"
$ psql -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO
PUBLIC;"
-Moved back to main tutorial page, executed:
$ createdb -T template_postgis mysitedatabase
$ sudo su – postgres (tried again, NOT SUCCESSFUL! “unknown id”)
$ createuser --createdb mysiteuser
$ django-admin.py startproject mysite (I stayed in the main
directory, did not create this in “Apps>Django>Django_Projects”)
$ cd mysite
$ python manage.py startapp world
-I then set up the settings.py:
DATABASES = {
'default': {
 'ENGINE': 'django.contrib.gis.db.backends.postgis',
 'NAME': 'mysitedatabase',
 'USER': 'mysiteuser',
 }
}
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.gis',
'world'
)
-I did try adding 'PASSWORD' to the settings.py on my second try but
that made no difference once I got to the syncdb (see below)
-Installed world borders shp files in world/data
-Used both ogrinfo commands and got proper results
-exactly copied and pasted into world/models.py from the “Defining a
Geographic Model” section, to include the very top line of “from
django.contrib.gis.db import models
“
The Error:
-Attempted to run “$ python manage.py sqlall world” but got:
--
Traceback (most recent call last):
  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/
site-packages/django/core/management/__init__.py", line 443, in
execute_from_command_line
utility.execute()
  File "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/
site-packages/django/core/management/__init__.py", line 382, in
execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/
site-packages/django/core/management/__init__.py", line 261, in
fetch_command
klass = load_command_class(app_name, subcommand)
  File "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/
site-packages/django/core/management/__init__.py", line 69, in
load_command_class
module = import_module('%s.management.commands.%s' % (app_name,
name))
  File "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/
site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
  File "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/
site-packages/django/core/management/commands/sqlall.py", line 4, in

from django.core.management.sql import sql_all
  File "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/
site-packages/django/core/management/sql.py", line 6, in 
from django.db import models
  File "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/

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 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: 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
(https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/#django-admin-collectstatic)



-- 
Javier

-- 
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: 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 
https://groups.google.com/d/msg/django-users/-/DS-4lTg-9gwJ.
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: 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 Django.
>
> Thank Yo...
> Sha  
>

-- 
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/-/415tLSIbJYYJ.
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: 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 all sorts of 'recursive' => 1 it didn't matter.
> Please help me.
>
> CakePHP 1.3.15
>
>

I'd try debugging it by putting a 'import pdb; pdb.set_trace()' there in
your php file.  Or maybe installing django-debug-toolbar-- I think theres a
slight chance it *might* work




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

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 more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 the web visit 
https://groups.google.com/d/msg/django-users/-/TmHO0i5QN0IJ.
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: 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):
> ...
>
> class B(Model):
> a = ForeignKey(A)
> ...
>
> class C(Model):
> b = ForeignKey(B)
> ...
>
> the most database records are instances of C, user need to access C from
> B, B from A under the hierarchical structure, now I collect the instances
> of C like this,
>
> theA = A.objects.get(name = 'theA')
> theBs = theA.b_set.filter(a = theA)
> for theB in theBs:
> theCs = theB.c_set.all()
>
> So should I add a new ForeignKey to C and filter the objects by (a =
> theA, b = theB) ? Is there any performance impact for SQL database ?
> Thanks !
>
> --
> 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: 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 current URI in a template tag.
>
> You'll have to use a RequestContext in the views rendering the
> templates where you use this templatetag, and activate the
> django.core.context_processors.request context processor. Then it's
> just a matter of passing either the whole context or just the request
> (or even just the request URI) to you template tag.
>
>
>
> --
> 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: 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 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: 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/
commands/runserver.py", line 91, in inner_run
self.validate(display_num_errors=True)
  File "/usr/lib/python2.6/site-packages/django/core/management/
base.py", line 266, in validate
num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.6/site-packages/django/core/management/
validation.py", line 23, in get_validation_errors
from django.db import models, connection
  File "/usr/lib/python2.6/site-packages/django/db/__init__.py", line
40, in 
backend = load_backend(connection.settings_dict['ENGINE'])
  File "/usr/lib/python2.6/site-packages/django/db/__init__.py", line
34, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/usr/lib/python2.6/site-packages/django/db/utils.py", line 92,
in __getitem__
backend = load_backend(db['ENGINE'])
  File "/usr/lib/python2.6/site-packages/django/db/utils.py", line 24,
in load_backend
return import_module('.base', backend_name)
  File "/usr/lib/python2.6/site-packages/django/utils/importlib.py",
line 35, in import_module
__import__(name)
  File "/usr/lib/python2.6/site-packages/django/db/backends/mysql/
base.py", line 16, in 
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
module: No module named _mysql


On Jun 8, 10:41 am, Anand Jeyahar  wrote:
> 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 the
> > MySQLdb package called _mysql lib, which I'm assuming is some C
> > library that MySQLdb wraps.  Is this something that should have been
> > created when I installed MySQLdb, is it a C library that needs to be
> > on the path that MySQLdb isn't seeing?
>
> > Any help would be greatly appreciated.
>
> Have you installed mysql-devel package on your OS's package manager?
> Can you paste the actual error trace?
>
>
>
>
>
> > Thanks!
>
> > --
> > 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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: 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 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 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: 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 the
> MySQLdb package called _mysql lib, which I'm assuming is some C
> library that MySQLdb wraps.  Is this something that should have been
> created when I installed MySQLdb, is it a C library that needs to be
> on the path that MySQLdb isn't seeing?
>
> Any help would be greatly appreciated.
>

Have you installed mysql-devel package on your OS's package manager?
Can you paste the actual error trace?

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



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
library that MySQLdb wraps.  Is this something that should have been
created when I installed MySQLdb, is it a C library that needs to be
on the path that MySQLdb isn't seeing?

Any help would be greatly appreciated.

Thanks!

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



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 were attached and i added c instance to it .. both post_add and
pre_add give the same pk_set in kwargs

ACTV_STATUS = (
('Active','Active'),
('Inactive','Inactive'),
)

class Client_Order(models.Model):
order_name  = models.CharField(max_length=300)
order_desc  = models.TextField(verbose_name="Order
Description")
order_client= models.ForeignKey(Client_sda)
order_active_status = models.CharField(choices = ACTV_STATUS,
max_length=300)
order_pakages   = models.ManyToManyField(Pakage,
help_text="Please attach a maximum of 5 packages only. ")
discount= models.IntegerField(default=0)
total_amount= models.IntegerField()
order_booking_date  = models.DateField()
order_expiry_date   = models.DateField()

@receiver(m2m_changed)
def handle_something(sender, instance, signal,*args, **kwargs):
print kwargs
print 'pk_set->',kwargs['pk_set']

how do i distinguish between newly added instances from previously
added ones ?

-- 
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: 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, 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 additions"
>
> > #in urls.py
>
> > url(r'^projeler/rss/$', LatestEntriesFeed()),
>
> I think you should send a function name not a class name in the second
> parameter.
>
> you should 
> checkhttps://docs.djangoproject.com/en/dev/topics/http/urls/#urltocreate
> patterns in your urls.py and check if you create your app
> correctly.
>
> do you use startapp 
> toolhttps://docs.djangoproject.com/en/dev/ref/django-admin/#startapp-appn...
>
>
>
>
>
>
>
>
>
> > Have a problem in urls?
>
> > My home urlhttp://localhost:8000/projeler/
>
> > and rss urlhttp://localhost:8000/projeler/haberler/
>
> > On Jun 8, 3:11 pm, Diego pascual lopez  wrote:
> > > 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 LatestEntriesFeed' ==> I've imported this, I
> > > > have an error  'No module named feeds'.
>
> > > > Thanks in advance for any help provided.
>
> > > > Armağan
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Django users" group.
> > > > To post to this group, send email to django-users@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > django-users+unsubscr...@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/django-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

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



Re: 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 library for python.
>
> --
> steve
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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



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



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 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: 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 very limited experience customizing the Admin application and
> have only used this method through a normal Form.
>
>
>
>
>
>
>
> On Thu, Jun 7, 2012 at 7:56 AM, vijay shanker  wrote:
> > hi
> > is there any way to limit the number of instances that can be attached
> > to a m2m field.
> > e.g
> > author = models.manytomany(Book)
>
> > i want to limit the max number of book objects that can be attached to
> > author.
> > How to go about this.
>
> > --
> > 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: 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 news"
>link = "/projeler/haberler/"
>description = "Updates on changes and additions"
>
> #in urls.py
>
> url(r'^projeler/rss/$', LatestEntriesFeed()),
>

I think you should send a function name not a class name in the second
parameter.

you should check
https://docs.djangoproject.com/en/dev/topics/http/urls/#urlto create
patterns in your urls.py and check if you create your app
correctly.

do you use startapp tool
https://docs.djangoproject.com/en/dev/ref/django-admin/#startapp-appname-destination?


>
> Have a problem in urls?
>
> My home url http://localhost:8000/projeler/
>
> and rss url http://localhost:8000/projeler/haberler/
>
>

> On Jun 8, 3:11 pm, Diego pascual lopez  wrote:
> > 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 LatestEntriesFeed' ==> I've imported this, I
> > > have an error  'No module named feeds'.
> >
> > > Thanks in advance for any help provided.
> >
> > > Armağan
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-users@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

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



RE: 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: Django users
Subject: Django mod_wsgi + No data received in browser

I have the following code in wsgi.py and when I try viewing my site in a
browser I get a no data received message (Unable to load the webpage
because the server sent no data.)

I feel like I'm missing the part where this wsgi.py file loads the
actual contents of my site...

import os
import sys
import django.core.handlers.wsgi

# Reorder sys.path so new directories at the front.
sys.path = []
sys.path[:0] = ['/usr/bin/python26',
'/home/deploy/envs/site/lib/python2.6/site-packages/
setuptools-0.6c11-py2.6.egg',

'/home/deploy/envs/site/lib/python2.6/site-packages/pip-1.1-
py2.6.egg',

'/home/deploy/envs/site/lib/python2.6/site-packages',

'/home/deploy/envs/site/lib/python2.6/site-packages/PIL',
'/usr/lib64/python26.zip',
'/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2',
'/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',

'/usr/lib64/python2.6/site-packages/Numeric',

'/usr/lib64/python2.6/site-packages/gtk-2.0',
'/usr/lib/python2.6/site-packages',
'/home/deploy/web/cms.site.com']

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

application = django.core.handlers.wsgi.WSGIHandler()

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



myapp.py
Description: myapp.py


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   IntegrityError at /accounts/
register/
duplicate key value violates unique constraint
  "auth_user_username_key"
  DETAIL:  Key (username)=() already exists.

   
Try to check the auth_user table in the database to see if user already 
exists.


--
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: 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 additions"

#in urls.py

url(r'^projeler/rss/$', LatestEntriesFeed()),

Have a problem in urls?

My home url http://localhost:8000/projeler/

and rss url http://localhost:8000/projeler/haberler/

On Jun 8, 3:11 pm, Diego pascual lopez  wrote:
> 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 LatestEntriesFeed' ==> I've imported this, I
> > have an error  'No module named feeds'.
>
> > Thanks in advance for any help provided.
>
> > Armağan
>
> > --
> > 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: 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
> have an error  'No module named feeds'.

Is 'blogum' (which I assume it's a django app, iow a python package,
iow a directory with a __init__.py file in it) in your sys.path ? If
yes, is there a file named "feeds.py" in it ?

-- 
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: 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 LatestEntriesFeed' ==> I've imported this, I
> have an error  'No module named feeds'.
>
> Thanks in advance for any help provided.
>
> Armağan
>
> --
> 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.



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

-- 
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: 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 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: 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/
>
> > duplicate key value violates unique constraint
> > "auth_user_username_key"
> > DETAIL:  Key (username)=() already exists.
>
> that means that a user with that name has already been created.
> --
> regards
> Kenneth Gonsalves

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   IntegrityError at /accounts/
register/
duplicate key value violates unique constraint
 "auth_user_username_key"
 DETAIL:  Key (username)=() already exists.

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

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 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 Value: 'str' object is not callable
>>  suggest me
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

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



Re: 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"
> DETAIL:  Key (username)=() already exists. 

that means that a user with that name has already been created.
-- 
regards
Kenneth Gonsalves

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



Re: 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 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: 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 
> > the windows 7 command prompt but i've got this error 
> http://i.imgur.com/znZGW.png 
> > could someone help me please? 
> > 
>
> Your path indicates that you have installed Python 3.2. Django is only 
> Python 2.x compatible currently. 
>
> So install Python 2.7.x 
>
> Since you're beginner I also promote my blogpost how to make life easier 
> in Windows 7: 
> http://djangonautlostinspace.wordpress.com/2012/04/16/django-and-windows/ 
>
> -- 
> 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/-/okl10zvOXzcJ.
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.



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 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: 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
> 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 is only the main screen , and no links to crud operations.
>>
>> Anyone faced a similar issue?
>>
>> Thanks in advance
>> Mete
>
>  --
> 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/-/Ha-s6Ur_zr0J.
> 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:

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 Value: 'str' object is not callable
>  suggest me
>
> --
> 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.



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 already read the Django document, and still don't know how to do 
that.
Can anyone give me a hint ?

-- 
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/-/SuIlwmlvgaEJ.
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: 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/

http://drumcoder.co.uk/tags/flot/

Tim.

--
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: 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, for two reasons:

 1) What you've attached to this mail is copyrighted material. The
Django project does not condone the piracy of content, and will not
tolerate any attempt to use official Django forums as a mechanism for
distributing copyrighted material.

 2) Even if the book wasn't under copyright, sending a 5MB attachment
to a mailing list is *extremely* poor form. You've just put a 5MB
attachment into the mailboxes of over 22 *thousand* people. Frankly,
I'm amazed Google Groups even allows this sort of thing.

As it happens, the book you've referenced *is* available online, for
free, under the GNU documentation license [1] -- if you wanted to
direct someone's attention to this book, you should have either
referred to that URL, or pointed at a book store where they could
purchase the book legitimately.

Consider this your first and final warning: if you attempt to use a
Django forum to distribute pirated material in future, you will be
banned from this group.

[1] http://djangobook.com/en/2.0/

Yours,
Russ Magee %-)

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



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 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: 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 is only the main screen , and no links to crud operations. 
>
> Anyone faced a similar issue? 
>
> Thanks in advance 
> Mete

-- 
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/-/Ha-s6Ur_zr0J.
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.