Re: Can not include jquery in django template

2014-09-23 Thread Collin Anderson
You need -- 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@googlegrou

Re: Can not include jquery in django template

2014-09-23 Thread Fred Stluka
Change it to: --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no W

Re: Django url pass through

It depends on what is defined in your waitlist.urls. -- 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 g

Re: Confused by STATICFILES_DIRS not working

So it works fine in production, when DEBUG = False, but not on your local runserver when DEBUG = True? -- 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-us

Re: Django connecting to MySQL via Mysql-connector fails

You need to use "mysql.connector.django" as your backend ENGINE http://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Can not include jquery in django template

When I try to include jQuery to my template index.html, I get an blank page. Html source code is loading but I get just white page -- 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 i

Re: Open Django template in dialog box (not in window)

Collin, Excellent sample. Thanks! That's a nice standalone summary of how to do a popup dialog via jQuery and Ajax. Worth posting to a tips page or blog if you have such, so other people can Google it. Kamal, does this fill in the gaps for you? If not, let us know. --Fred --

Unable to delete cookie

Hi, I'm using a custom authentication backend for my Django project, and in order to log out I have to delete a cookie that's set by the (external) authentication site. Here is my view code: response = django_logout(request, next_page=post_logout_url) response.delete_co

Re: updating site domain with data migration

Markus, one specific question re your blog post. "What happens when you call python manage.py makemigrations? First of all, since no apps are given, Django reads the migrations from all apps listed in INSTALLED_APPS. In our case, this is ('author', 'book',). " I have the following in INSTALLED_

Re: request.META['REMOTE_USER'] with django runserver

Hi, you can add 'django.contrib.auth.backends.ModelBackend' to the AUTHENTICATION_BACKENDS and use a local user. or if you like to use the "REMOTE_USER" set up nginx with auth_basic and proxy on your local instance: location / { auth_basic "Restricted"; auth_basic_user_fil

Re: Django url pass through

Thank you your response answers the "what do I do" as a response by calling the 404 view. I also need to understand how the url will be coded so that an invalid url that does not match anything falls through the the last url in the urls.py file. I have a project urls.py file and expect that a

Re: I have configured SysLogHandler for my django app but nothing is going into the log file

This is from my logging config file from a non-django project, but the principals should be similar. Before you look too hard here, are you sure that rsyslog.d (or equivalent) is running on the box (at which you have targeted the logger? Is the facility on which you are logging configured (In my c

Django connecting to MySQL via Mysql-connector fails

Hi, I'm learning django with PyDev, MySQL as backend. According to doc I used Oracle's MySQL connector to communicate with db: > > The Python Database API is described in PEP 249 > . MySQL has two prominent > drivers that implement this API: > >- My

Re: Confused by STATICFILES_DIRS not working

Yes, that is how my urls are built. This works perfectly till I have DEBUG=TRUE. On Tuesday, 23 September 2014 14:49:52 UTC+2, Collin Anderson wrote: > > How are you referencing your css and images in the frontend? > > It should be something like > > > > > -- You received this message because

Re: I have configured SysLogHandler for my django app but nothing is going into the log file

What does your SysLogHandler look like? -- 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 em

Re: Confused by STATICFILES_DIRS not working

How are you referencing your css and images in the frontend? It should be something like -- 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+unsubsc

Re: Open Django template in dialog box (not in window)

# popupadvance.html Here's the worker object: {{ worker }} # views.py def popupadvance(request): worker = Worker.objects.get(id=request.GET.get('worker_id') return render(request, 'popupadvance.html', {'worker': worker}) # urls.py from . import views urlpatterns = [ url('popupadvance/

Re: Bug in Django 1.6.6 password_reset when user never logged in

I followed your steps and can't reproduce your issue. In django 1.6, last_login is null=False, so it should never be None. django 1.8 (master) changes the database to allow a null last_login, so if you've created the user using django1.8 and reset their password using django1.6 I could see that

Re: Behavior of the "update" in Django 1.7

If nothing else, if you know which field you edited, you can just save those field using: obj.save(update_fields=['field1', 'field5']) https://docs.djangoproject.com/en/dev/ref/models/instances/#saving-objects -- You received this message because you are subscribed to the Google Groups "Django

Re: Error UNIQUE constraint failed with Django 1.7

Hmm... That should be the same. I think the only difference is create() might use force_insert=True. Do you have a custom save() method? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Re: Confused by STATICFILES_DIRS not working

Hi Ivo, I have my project set up exactly as you suggested, and everything works in production. But I run into 2 problems. 1. When DEBUG=True, all my frontend styling is knocked out. So I resort to; STATIC_URL = '/static/' if DEBUG: STATIC_URL = 'static/' 2. which then leaves

Re: Sitemaps - multiple locations per object

Thanks Le jeudi 18 septembre 2014 01:50:13 UTC+2, PRyan a écrit : > > Hello, > I have business objects which have multiple urls each. The sitemap for the > business objects them self work and I get the following: > /store/ > > However, each business has sites specific to it. So I need sitemaps to

Re: Is there anything similar to phpmyadmin

I personally like DBeaver, since it can handle several types of DBMSes out of the box. And it's free. There are prebuilt packages for pretty much any major os/distribution. On Mon, 22 Sep 2014 19:37:26 -0700 (PDT) Yuan-Liang Tang wrote: > Thanks, but I'd like to use something open and free ;-)

Re: Is there anything similar to phpmyadmin

Well, you know it's more about personal comfort and specific needs. I didn't actually work with workbench but it seems that it's nice software. Also you can consider these ones: HeidiSQL (free and I've heard some good responses about it but needs wine) EMS SQL Studio (lite version is free) воскрес

Re: Django url pass through

Hi Robert, In those cases a HTTP 404 is the right response, to help Search Engines realise that such a URL doesn’t exist and to show users a "Page Not Found" message. To create a nice looking 404 response for users just write a view to handle it and add the “handler404” entry to your root URLCo