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
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
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
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
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
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.
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
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
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
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
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
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
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
>
>
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
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
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
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
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):
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
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
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
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
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
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
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
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
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
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
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
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
30 matches
Mail list logo