Re: page not found but url exists

2019-08-26 Thread Kean
Hi Gil, please see views.cregister def cregister(request): next = request.GET.get('next') form = CUserRegisterForm(request.POST or None) if form.is_valid(): user = form.save(commit=False) password1 = form.cleaned_data.get('password1') password1 =

Re: page not found but url exists

2019-08-26 Thread Sipum
Hey, Try by giving forward slashes(/) at the end of the each urls instead of using backward slashes like... Do as - register/ login/customer/ I think It will work On Tue, 27 Aug, 2019, 3:16 AM James Schneider, wrote: > > > >> Using the URLconf defined in bnt.urls, Django tried these URL

Re: page not found but url exists

2019-08-26 Thread Gil Obradors
admin/ urls are working fine? if you put print('hello0) at first line inside cregister, you see at the console? If yes the problem is in redirects Missatge de Kean del dia dl., 26 d’ag. 2019 a les 19:32: > Hi Gil, > > please see > > views.cregister > > def cregister(request): > next =

Re: page not found but url exists

2019-08-26 Thread Luca Mazzilli
Kean, Have you tried removing the initial slash inside the path? -- 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

Re: page not found but url exists

2019-08-26 Thread Gil Obradors
Hi! Can you paste views.cregister and projectname/urls.py ? Missatge de Kean del dia dl., 26 d’ag. 2019 a les 19:10: > Hi, > > I'm new to Django. I created several urls, in urls.py, however, when I try > to navigate to the URL it says page not found. > Page not found (404) > Request Method:

Re: How can I host my application in web hosting?

2019-08-26 Thread Techie Masters
You can use PayPal on digitalocean. On 25 Aug 2019, 11:11 +0300, Nur Mohsin , wrote: > Assalamu Alaikum Yusuf Bhaia, > > As I have no credit card, that's why I couldn't choose AWS or DO. I am from > Bangladesh and suffering to choose a hosting provider in Bangladesh where > Django and Postgresql

How can I stop my page from generating a resubmission alert after there is an invalid authentication attempt?

2019-08-26 Thread Mihir Malik
Upon submission of an invalid authentication after displaying the error that my login credentials were incorrect, whenever I refresh the page it keeps generating a re-submission of forms alert. I have inherited the standard 'contrib.auth' LoginView. Any help would be appreciated. I am new to

Re: page not found but url exists

2019-08-26 Thread James Schneider
> Using the URLconf defined in bnt.urls, Django tried these URL patterns, > in this order: > >1. admin/ >2. [name='home'] >3. /login [name='clogin'] >4. /login/customer [name='cpage'] >5. /register [name='cregister'] >6. /register/customer [name='cpage'] > > The current

Re: page not found but url exists

2019-08-26 Thread Kean Dumba
Tried this with print request, However it didn’t improve the issue. It can’t be a redirect issue, as it’s not even finding the first instance of the url which is GET action. The redirect is only actionable after on page actions I.e. user register Name, email etc. Are their any other root causes

Django real-time chat app

2019-08-26 Thread Suraj Thapa FC
Anyone have real-time pluggable chat system app in django. -- 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 view

How can I switch AUTH_USER_MODEL for each application?

2019-08-26 Thread Ayu Nakata
I want to use each database in each application. I tried using different settings.py for each application, but it didn't work. Can you give me some advice? Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Rest Franework

2019-08-26 Thread Andréas Kühne
Hi, OK - If you only want to create an autocomplete list - or a dropdown list with information django restframework could be a bit of an overkill for that specific task - you could instead use something like this: https://django-autocomplete-light.readthedocs.io/en/master/tutorial.html That's a

Re: How can I switch AUTH_USER_MODEL for each application?

2019-08-26 Thread Sim
https://docs.djangoproject.com/en/2.2/ref/settings/#databases DATABASES in settings.py is a dict() and use database_routers. Good luck On Mon, Aug 26, 2019 at 12:47 PM Ayu Nakata wrote: > I want to use each database in each application. > I tried using different settings.py for each

Re: Doesn't save data django Foreignkey model

2019-08-26 Thread Mark Ochieng
Are trying to save data for Customer that does not exist in your CustomerData table yet. Because I think the error is tries to inform you that Billing data can only be created for a customer that already exists on you CustomerData On Sunday, August 25, 2019 at 5:17:24 PM UTC+3, Asaduzzaman

Re: images in production mode. is pointed to a different path.

2019-08-26 Thread Aldian Fazrihady
On production, static files shouldn't be the burden of django server. Many people are using Nginx to handle static file. This is the guide: https://docs.djangoproject.com/en/2.2/howto/static-files/deployment/ On Mon, Aug 26, 2019 at 11:13 PM janderson abreu wrote: > Good afternoon, I'm having

page not found but url exists

2019-08-26 Thread Kean
Hi, I'm new to Django. I created several urls, in urls.py, however, when I try to navigate to the URL it says page not found. Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/register Using the URLconf defined in bnt.urls, Django tried these URL patterns, in this

how to add graphs in django admin panel

2019-08-26 Thread Balaji Shetty
Hi everyone Can anybody suggest me how to add different graphs in django admin panel for relational models. I will apply count, group by clsuse query to display count. One more questions. We can change default django Administration GUI using django admin suit. How is it. Is there any other way