Re: Template/Form Errors and DynaTree.js

2014-02-27 Thread Andreas Kuhne
Hi Timothy, What you probably have to do is submit the form in a ajax call via jquery for example. https://api.jquery.com/jQuery.ajax/ You create a request via the ajax method in jquery and then add a success and error handler. They only have to update the div you want to replace: $("#div_id").ht

Admin and search_fields

2014-02-27 Thread ReneMarxis
Hello does anyone know some app similar to https://pypi.python.org/pypi/django-admin-visualsearch that is able to filter over more than one related (foreign key) level? Would be great to define just some fields i'd like to search on (in admin.py), and get one input field for every search_field

Tools to document api

2014-02-27 Thread naveen
I have a Django project in which i have written api interface to which i want to document. what are the best tools for documenting the api ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

collectstatic is not working

2014-02-27 Thread Robin Lery
Hello, I have been trying to collect statics from the static folder but, its not collecting any files. But it did collect the admin files. What's wrong. Please help me. Thank you. *settings:* import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) STATIC_URL = '/static/' # Template loc

Re: Template/Form Errors and DynaTree.js

2014-02-27 Thread Timothy W. Cook
Hi Andreas, Thanks for the reply. On Thu, Feb 27, 2014 at 9:42 AM, Andreas Kuhne wrote: > Hi Timothy, > > What you probably have to do is submit the form in a ajax call via jquery > for example. https://api.jquery.com/jQuery.ajax/ > > You create a request via the ajax method in jquery and then

Re: collectstatic is not working

2014-02-27 Thread Timothy W. Cook
I think you need to set STATICFILES_DIRS as well On Thu, Feb 27, 2014 at 10:05 AM, Robin Lery wrote: > Hello, > I have been trying to collect statics from the static folder but, its not > collecting any files. But it did collect the admin files. What's wrong. > Please help me. > > Thank you.

Re: collectstatic is not working

2014-02-27 Thread Robin Lery
if DEBUG: MEDIA_URL = '/media/' STATIC_ROOT = os.path.join(os.path.dirname( BASE_DIR), "static", "static-only") MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "static", "media") STATIC_DIRS = ( *os.path.join(os.path.dirname(**BASE_DIR), "static", "static"),* ) On

Re: Tools to document api

2014-02-27 Thread Timothy W. Cook
Are you using the django-rest-framework? See: http://www.django-rest-framework.org/topics/documenting-your-api Swagger works great. On Thu, Feb 27, 2014 at 3:41 AM, wrote: > I have a Django project in which i have written api interface to which i > want to document. > what are the best too

erreur django.core.management

2014-02-27 Thread Grimaud Florent
bonjour, quand j'installe updatengine j'ai un problème avec Django "file /var/www/UE-environment/updatengine-server/manage.py", line 8, in module from Django.core.management importe exécute from_commande_line import error: no module name Django.core.management " merci de votre aide -- You rec

Re: collectstatic is not working

2014-02-27 Thread Robin Lery
ohh my god..it should be STATICFILES_DIRS ! And not STATIC_DIRS? Thank you so much!!! On Thu, Feb 27, 2014 at 6:38 PM, Robin Lery wrote: > > if DEBUG: > MEDIA_URL = '/media/' > STATIC_ROOT = os.path.join(os.path.dirname( > BASE_DIR), "static", "static-only") > MEDIA_ROOT = os.path

Re: Template/Form Errors and DynaTree.js

2014-02-27 Thread Andreas Kuhne
Hi again Timothy, Actually it's much easier than you think. The error you showed is a validation error, is it not? What you do is that you submit the form via jquery ajax, something like this should work: $.ajax({ type: 'POST', url: the_form_url, dataType: 'html', data: { email : $('#id_email

Re: Template/Form Errors and DynaTree.js

2014-02-27 Thread Timothy W. Cook
Thanks Andreas. I'll poke around with this and see if I can figure it out. If not; I'll Be Back! :-) Cheers, Tim On Thu, Feb 27, 2014 at 10:18 AM, Andreas Kuhne wrote: > Hi again Timothy, > > Actually it's much easier than you think. > > The error you showed is a validation error, is it n

Re: How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-27 Thread DJ-Tom
Am Dienstag, 25. Februar 2014 13:50:11 UTC+1 schrieb Tom Evans: > > > Use different STATIC_ROOT for each site, eg /static2013 and /static2014. > > But what you should really be doing is putting this in to a separate > vhost. Domain names are cheap, sub-domains are even cheaper. > > Cheers > >

Re: Terrible performance when dropping into raw SQL Oracle

2014-02-27 Thread Scott Anderson
Are you timing the query in the view specifically, or the entire view? That is, do you know for sure that it is *only* the query that is taking 16 seconds and not the rest of the view? -scott On Wednesday, February 26, 2014 5:53:15 PM UTC-5, Shawn H wrote: > > I said that before testing it. Th

How to detect clear checkbox chequed on ClearableFileInput

2014-02-27 Thread Héctor Urbina
Hello, I have a edit view to modify an object. The model includes an inline formset of insumoRecurso objects, for including files associated with the main object. These files appear with a checkbox for clearing files (ClearableFileInput widget). What should I test on my view to detect that the

Re: Terrible performance when dropping into raw SQL Oracle

2014-02-27 Thread Shawn H
The cursor.execute specifically. I'm printing a timestamp immediately before and immediately after that line. I'm positive it is ONLY the query that takes 16 seconds, whether using django.cursor or a cx_Oracle cursor. On Thursday, February 27, 2014 9:27:48 AM UTC-6, Scott Anderson wrote: > > A

Re: erreur django.core.management

2014-02-27 Thread Tom Evans
On Thu, Feb 27, 2014 at 1:10 PM, Grimaud Florent wrote: > bonjour, > quand j'installe updatengine j'ai un problème avec Django > > "file /var/www/UE-environment/updatengine-server/manage.py", line 8, in > module > from Django.core.management importe exécute from_commande_line > import error: no m

Question about populating user data with Django-cas

2014-02-27 Thread wasingej
Hi guys, I'm having trouble getting the example code that is posted in the overview document for django-cas to work. Here is my relevant code: *cas_backend.py:*from django_cas.backends import CASBackend class PopulatedCASBackend(CASBackend): def authenticate(self, ticket, service):

Re: Django i18n url is not working with en-us sublanguage

2014-02-27 Thread Eliecer Daza
Hi, I just have the same error could you solved it!! thanks On Monday, May 7, 2012 4:57:52 AM UTC-5, Suteepat Damrongyingsupab wrote: > > My django app's using i18n_patterns in urls.py and when I go to my app > with the url like: > > myapp.com/en/ > > myapp.com/de/ > > myapp.com/en-gb/ > > The u

Re: Javascript and sessions

2014-02-27 Thread C. Kirby
It sounds like you are trying to implement a wizard. If you are, Django has one built in: https://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/ On Wednesday, February 26, 2014 9:11:38 PM UTC-6, Luke Baker wrote: > > Hey there, > > (Forgive my ignorance) > > My web application

Re: How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-27 Thread C. Kirby
You can get a wildcard cert that captures all of *.site.com|org|net|etc On Thursday, February 27, 2014 9:18:57 AM UTC-6, DJ-Tom wrote: > > > > Am Dienstag, 25. Februar 2014 13:50:11 UTC+1 schrieb Tom Evans: >> >> >> Use different STATIC_ROOT for each site, eg /static2013 and /static2014. >> >> Bu

Re: Controlling admin ManyToManyField widget with keyboard

2014-02-27 Thread Ram Rachum
Ah, that works. It's not as nice as being able to move them without a tab dance, but it works. On Thu, Feb 27, 2014 at 12:40 AM, C. Kirby wrote: > Oh, sorry. That widget uses ModelAdmin.filter_horizontal ( > https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmi

Re: Django Windows Install Issues

2014-02-27 Thread Joe Buty
Thanks I got django and pip installed. I also got the community version of pyCharm and its is awesome. Thanks for all of the relevant comments and suggestions. On Tuesday, February 25, 2014 1:23:49 PM UTC-8, Joe Buty wrote: > > Hello, I am having trouble getting Django to work. I have installed

Re: Accessing a python function from a blog post stored in the db?

2014-02-27 Thread Dennis Marwood
OK I think you are talking about something like https://docs.djangoproject.com/en/dev/intro/tutorial02/#adding-related-objects where I could just insert a slider type of entry and then a text entry and so on. Is that it? On Wednesday, 26 February 2014 14:49:55 UTC-8, C. Kirby wrote: > > It does

django-php - yeah, it happened.

2014-02-27 Thread Cal Leeming [Simplicity Media Ltd]
Clearly this should be considered for merge into the core; https://github.com/mvasilkov/django-php The really sad part: someone somewhere *will* use this in production, and be totally srs about it. Excuse me whilst I cry myself to sleep. Cal -- You received this message because you are subscri

Re: View function and URL Conf basic question

2014-02-27 Thread Camilo Torres
On Wednesday, February 26, 2014 9:24:51 AM UTC-4:30, Daniel Roseman wrote: > > On Wednesday, 26 February 2014 08:10:40 UTC, ApathyBear wrote: >> >> Here is my urls.py: >> >> from django.conf.urls.defaults import *from mysite.views import hello, >> current_datetime, hours_ahead >> urlpatterns = pat

Re: Django with rabbit (but without async celery) - can be done?

2014-02-27 Thread Camilo Torres
On Tuesday, February 25, 2014 10:58:47 AM UTC-4:30, Alon Nisser wrote: > > I need to implement a quite simple Django server that server some http > requests *and *listens to a rabbitmq message queue that streams > information into the Django app (that should be written to the db). the > data *m

Re: Using Django without templates?

2014-02-27 Thread Camilo Torres
On Wednesday, February 26, 2014 6:16:39 PM UTC-4:30, ApathyBear wrote: > > He mentioned something that I hadn't really gotten a chance to ask him > more about > He told me to be careful with django templates because in terms of scale, > they can cause problems and almost always need to be re-writ

Re: Using Django without templates?

2014-02-27 Thread Mario Gudelj
You do have to be careful with templates if you're using too many inclusions or if you have too much logic in them. There's a good django debug toolbar add-on that informs you about the time a template takes to compile. On 27/02/2014 9:47 am, "ApathyBear" wrote: > I was briefly talking with a dev

Re: Javascript and sessions

2014-02-27 Thread Camilo Torres
On Wednesday, February 26, 2014 10:41:38 PM UTC-4:30, Luke Baker wrote: > > My web application is heavily based around form input. I'd like to update > the user's session with each form input that they update or change while > working with a form. I'm thinking of implementing some simple javascri