How to create an admin editable list?

2014-04-17 Thread radsepvj
Any suggestion on how to create an admin editable list? either using django or python? Thank you for your time. Regards, Rads -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: I can't connect Django with SQL Anywhere 11 Database

2014-04-17 Thread Tameen Malik
Elio -- Have you used UTF-8 *By default, with a UTF-8 database, MySQL will use the utf8_general_ci collation. This results in all string equality comparisons being done in a case-insensitive manner. That is, "Fred" and "freD" are considered equal at the database level. If you have a unique co

View Permissions -- DJANGO

2014-04-17 Thread Tameen Malik
An old Query / I know that but need assistance! so dear django users see what i want to ask and what i did: *Story:* As django admin has three permissions in it's auth : add, change, delete! I want to add view permission in this auth in admin panel.I know i have to customize permissions to add

VIEW PERMISSION

2014-04-17 Thread Tameen Malik
An old Query / I know that but need assistance! so dear django users see what i want to ask and what i did: *Story:* As django admin has three permissions in it's auth : add, change, delete! I want to add view permission in this auth in admin panel.I know i have to customize permissions to add

Re: Including Page Fragments

2014-04-17 Thread Venkatraman S
Well, the reason I sent this was due to the fact that while in templates when you are doing conditionals, the spaces are mandatory. i.e, Works : {% if request.session.VARIABLE_NAME == "1" %} Doesn't : {% if request.session.VARIABLE_NAME=="1" %} On Fri, Apr 18, 2014 at 8:10 AM, Ramón Carrillo w

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Ramón Carrillo
The file is probably in the wrong directory or you're naming it incorrectly. It must be project_name/app_name/admin.py Maybe you're placing it in project_name/admin.py or project_name/project_name/admin.py On Thu, Apr 17, 2014 at 9:51 AM, Xiaofeng Feng wrote: > Yes. > INSTALLED_APPS = ( > '

Re: Deferred reverse geo coding upon record save/update

2014-04-17 Thread Ramón Carrillo
Hi Subodh, I would use use the same model as a queue. Add a address field to the sensordata model, make it nullable (null=True). Then write a custom django-admin command [0] that gets all the records in sensordata with null address, make the request to the geodecoder and save the result in the ad

Re: Including Page Fragments

2014-04-17 Thread Ramón Carrillo
I guess you are not supposed to use spaces there. IIRC spaces aren't allowed when using filters, neither (e.g. var|filter1 is ok, var | filter1 is not) You could find the exact reason digging in the template compiler code. https://github.com/django/django/blob/master/django/template/__init__.py

Deferred reverse geo coding upon record save/update

2014-04-17 Thread Subodh Nijsure
I have application where mobile devices are collecting data from sensors, and along with sensor reading they also save gps co-ordinates where the sensor data is taken. This is uploaded to web server using REST interface on django platform. But I am trying to figure out how do I reverse geo decode

Re: Ajax post problem

2014-04-17 Thread Jonathan Querubkna
Or: var dataForm = new FormData( $("form")[0] ); That way you can send even file fields. Serialize do not support file fields AFAIK Jonathan Diretor de Tecnologia +55(12)98864-1594 Sent from my iPhone > On Apr 17, 2014, at 17:25, Joseph Mutumi wrote: > > You could try using $("form").serial

Re: Ajax post problem

2014-04-17 Thread Joseph Mutumi
You could try using $("form").serialize() to get the form inputs in the ajax data. But from the URL it looks like your HTML is somehow rendering badly. The form action is coming out as '/newmarkets/search/ method=' Kind regards On 4/17/14, willyhakim wrote: > Hi everyone? > > I am trying to use

Ajax post problem

2014-04-17 Thread willyhakim
Hi everyone? I am trying to use ajax to do the following 1)User inputs a number. 2) I use ajax to return a query list into the same page. Here is my code and I keep getting this error Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/newmarkets/search/%20method=?csr

Re: views

2014-04-17 Thread Lee
Go through the tutorial linked in the other post before trying to write your own apps. That'll cover all the questions you just asked -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: Django app

2014-04-17 Thread Andrew Farrell
I'm a bit confused. Are you looking for something other than the Django Tutorial found here: https://docs.djangoproject.com/en/1.6/intro/tutorial01/? It takes you through building up an application. Or is that what you are looking for? On T

Django app

2014-04-17 Thread ngangsia akumbo
Please m i need just one scenario. I have just been learning small small app within a django project. Please how do i piece up this small small app to come out with a full django site or app please just a guide -- You received this message because you are subscribed to the Google Groups "Dja

Re: views

2014-04-17 Thread ngangsia akumbo
On Thursday, April 17, 2014 5:42:30 PM UTC+1, ngangsia akumbo wrote: > > I just created another app within my django project call test_project. > Within that project i have two apps. > > I keep having this error that > name views not define -- You received this message because you are subsc

views

2014-04-17 Thread ngangsia akumbo
I just created another app within my django project call test_project. Within that project i have two apps. I keep having this error for -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Template

2014-04-17 Thread ngangsia akumbo
Thanks bro > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@goog

Re: Template

2014-04-17 Thread Andrew Farrell
Do you mean that you are new to the syntax of django templates so you just want to look at and see what django templates look like? Take a look at the ones used in the admin of django itself: https://github.com/django/django/tree/master/django/contrib/admin/templates/admin index.html is a reasona

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Xiaofeng Feng
Yes. INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'TestApp', ) The last line TestApp is my first app. On Thursday, April 17, 2014 8:2

Template

2014-04-17 Thread ngangsia akumbo
New to django I need free template, a variety of them. Any help? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

Re: How to create Union in Django queryset

2014-04-17 Thread Simon Charette
I'm not sure this will work but you could try creating a VIEW on the database side that does the union there and access it through an un-managed model. CREATE VIEW *view_name* AS SELECT id, name FROM *a* UNION SELECT id, name FROM *b*; class C(models.Model): name = models.CharField()

Re: How to create Union in Django queryset

2014-04-17 Thread Thomas Lockhart
On 4/16/14 11:51 PM, Shoaib Ijaz wrote: I don't want use SQL query in django OK. You *could* have class B inherit from class A: class B(A): link = models.IntegerField(blank=True, null=True) and then do your query on A: ulist = A.objects.all() hth - Tom On Th

Re: what's the best admin skin (free)

2014-04-17 Thread Rafael E. Ferrero
+1 Grappelli -- *RAFAEL FERRERO* *Chief Officer Technology* San Francisco Cba. | Argentina +54 9 356251 4856 www.perseux.com 2014-04-17 10:22 GMT-03:00 Majo : > Hey Bobby, > > I'm using Grappelli for some of my projects and I like it. If you want to > know about other skins, you should head ov

Re: what's the best admin skin (free)

2014-04-17 Thread Majo
Hey Bobby, I'm using Grappelli for some of my projects and I like it. If you want to know about other skins, you should head over to https://www.djangopackages.com/grids/g/admin-interface/ and check out what they have listed. The best choice for you will depend on how much you actually want to

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Jorge Andrés Vergara Ebratt
Did you register the app in settings.py? 2014-04-16 23:03 GMT-05:00 Xiaofeng Feng : > I am now trying to set up my first app using django tutorial. However, I > was stuck at adding the poll app in part 2. I think I followed all the > steps and it goes well before this question. After I change ad

Questions about setting up my first app in django tutorial

2014-04-17 Thread Xiaofeng Feng
I am now trying to set up my first app using django tutorial. However, I was stuck at adding the poll app in part 2. I think I followed all the steps and it goes well before this question. After I change admin.py with from django.contrib import adminfrom polls.models import Poll admin.site.regis