Re: Multiple serializers

2015-12-14 Thread Bruno A.
Also having your models would be helpful. On Saturday, 12 December 2015 02:21:07 UTC, Daniel Chimeno wrote: > > This question is more about DRF than > Django itself, I haven't use it for a while so I can't answer you, > but please, put the code in a proper

Re: Multiple serializers

2015-12-14 Thread Mandeep Tondak
Hi, I thing you have an error in you queryset. On Mon, Dec 14, 2015 at 3:47 PM, Bruno A. wrote: > Also having your models would be helpful. > > > On Saturday, 12 December 2015 02:21:07 UTC, Daniel Chimeno wrote: >> >> This question is more about DRF th

application not recognized as URL namespace

2015-12-14 Thread Axel Rau
In my root url, I have: url(r'^authentication/', include('authentication.urls')), in authentication/urls.py, I have no app_name declared. In a module in authentication, I have from django.core.urlresolvers import reverse from django.apps import apps print('authentic

Re: application not recognized as URL namespace

2015-12-14 Thread knbk
Hi Axel, An installed application and a registered URL namespace are two distinct concepts. A URL namespace can only be defined by setting the app_name attribute in your urlconf. In this case, you haven't set a URL namespace for your authentication app, so your urls are not namespaced. Also, t

Re: application not recognized as URL namespace

2015-12-14 Thread Axel Rau
Thanks for taking the time, > Am 14.12.2015 um 14:06 schrieb knbk : > > Hi Axel, > > An installed application and a registered URL namespace are two distinct > concepts. A URL namespace can only be defined by setting the app_name > attribute in your urlconf. In this case, you haven’t set a UR

Re: application not recognized as URL namespace

2015-12-14 Thread knbk
Could you show your full root urls.py and authentication/urls.py? On Monday, December 14, 2015 at 3:22:14 PM UTC+1, axel...@chaos1.de wrote: > > Thanks for taking the time, > > > Am 14.12.2015 um 14:06 schrieb knbk >: > > Hi Axel, > > An installed application and a registered URL namespace are two

Re: Django for Data Tables to group by when coloumn hidden

2015-12-14 Thread Sid
Thanks for your reply Carsten. I want to use javascript...I will try to put my question on data-tables as per your suggestion . But thanks again for your reply :) On Wednesday, December 9, 2015 at 10:07:16 AM UTC-5, Sid wrote: > > *Question:* I have a Data table displaying on django , but now I

Re: application not recognized as URL namespace

2015-12-14 Thread Axel Rau
> Am 14.12.2015 um 15:29 schrieb knbk : > > Could you show your full root urls.py and authentication/urls.py? urls.py: from django.conf.urls import include, url from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin: from django.contrib import admin u

Re: application not recognized as URL namespace

2015-12-14 Thread knbk
> > authentication/urls.py: > from django.conf.urls import url > from . import views > app_name = 'authentication' > I thought you didn't have an app_name, but you do have one. In that case, the only problem was that you passed the wrong urlconf to reverse(). You should be able to reverse

Re: application not recognized as URL namespace

2015-12-14 Thread Axel Rau
> Am 14.12.2015 um 16:03 schrieb knbk : > > authentication/urls.py: > > from django.conf.urls import url > from . import views > > app_name = 'authentication' > > I thought you didn’t have an app_name, but you do have one. I changed this after your advice. > In that case, the only problem w

[RESOLVED] --was: Re: application not recognized as URL namespace

2015-12-14 Thread Axel Rau
I see my error: ’auth’ is already an appname (django.contrib.auth). Using ’accnt’ works perfectly! Thanks, again, Axel > Am 14.12.2015 um 16:32 schrieb Axel Rau : > > >> Am 14.12.2015 um 16:03 schrieb knbk > >: >> >> authentication/urls.py: >> >> from django.con

Re: calling html file from within javascript

2015-12-14 Thread Gary Roach
Hi Gergely I agree that document.write is a bad idea. Freezing in this case may be a poor choice of words. I was trying to convey that the code executes OK until it gets to the .write line and hangs up. It never completes the .write line. As for purpose. Main.html is a template contains the

Re: Tool to document project urls, views, templates, etc...

2015-12-14 Thread Royendgel Silberie
The closest I know is : python manage.py show_urls in the django-extensions package On Saturday, December 12, 2015 at 9:43:28 AM UTC-4, Mat Gessel wrote: > > Anyone know of a tool that can analyze a project and generate a list or > graph of *views* & related information? > > I'm maintaining a m

Re: Tool to document project urls, views, templates, etc...

2015-12-14 Thread Dan Tagg
http://ccbv.co.uk/ does this for django class based views. The code is on github https://github.com/refreshoxford/django-cbv-inspector/ Might be a good starting point. D On 14 December 2015 at 17:49, Royendgel Silberie wrote: > The closest I know is : > > python manage.py show_urls > > in the

Re: Django decision for tour reservation database

2015-12-14 Thread Billu
On Sunday, 13 December 2015 20:04:05 UTC+5:30, Tourmaster wrote: > > I want to put a single database on a server available to the office, > outside agents and customers who will reserve a seat, select upgrades, > agree to price and deposits and receive an email confirmation. > > Is this a job fo