Re: How to create two different login system

2018-12-13 Thread Manjunath
There are multiple options to maintain different kind of users in Django. When I came across this situation, I created a custom User class by inheriting AbstractBaseUser class and kept a positive integer field to maintain the type of user. Then I created Sub-classes Manager & Employee classes.

Re: Why does my Django project open the same home page irrespective or which url I type?

2018-11-14 Thread Manjunath
Also, It would be better if you rearrange your patterns. urlpatterns=[ path('login/', LoginView.as_view(template_name='accounts/login.html'), name='login'), re_path(r'^$',views.home, name='home'), ] Since your path *r'^$' *matches all request, it is better to keep this at end of your list. On

Re: PDF extarcting

2018-11-12 Thread Manjunath
I think regular expression would be a better option for your requirements. If you provide some sample resume docs, we can help better. On Tuesday, November 13, 2018 at 7:04:06 AM UTC+5:30, swathi2801 Yadhav wrote: > > Hi everyone, there is a project given to us to develop an application > I

Re: problem in pattern matching in urls.py and redirecting to another page after few secs

2018-11-02 Thread Manjunath
er> > . > For more options, visit https://groups.google.com/d/optout. > -- Thanks & Regards, Manjunath -- 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, s

Re: problem in pattern matching in urls.py and redirecting to another page after few secs

2018-11-02 Thread Manjunath
you can easily use java script set_timeout method for redirection after certain time. Elaborate your second question. Provide relevant screenshots if possible. On Friday, November 2, 2018 at 5:11:40 PM UTC+5:30, praveen bhuvi wrote: > > Now my 1st problem is in views.py i have a function , now

Re: New to Django: Please Help!! Django User Model not saving first_name, last_name and email - Authentication App

2018-10-29 Thread Manjunath
Remove declaration of first_name, last_name & email in Form calss. class SignUpForm(UserCreationForm): class meta(): model = User fields = ('username', 'first_name', 'last_name', 'email', 'password1', 'password2', ) And while Saving the form, follow below steps. if

Re: Identify failed insert field

2018-10-29 Thread Manjunath
I think one of the numeric values you are passing is an empty string. Django is trying to cast it to int but failing to do so. Best solution would be to print each values before save() call & you will know which is the error causing column.. Hope it helps!! On Sunday, October 28, 2018 at

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-24 Thread Manjunath
You are welcome. I suggest you go through the documentation & guide carefully and work accordingly.. I learned the same way!! On Wednesday, October 24, 2018 at 8:17:06 AM UTC+5:30, Bugs Bunny wrote: > > i use this and work, thanks (y) > > On Tue, Oct 23, 2018 at 1:04 AM Ma

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-22 Thread Manjunath
; wrote: > >> first , no spaces are allowed in URLS >> as Manjunath said >> replace path(' ', views.index, name='index') with path('', views.index, >> name='index') in your polls/urls.py and check the result. >> >> second , run the server >> python manage.p

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-21 Thread Manjunath
I think you have a space in your url path. replace path(' ', views.index, name='index') with path('', views.index, name='index') in your polls/urls.py and check the result. On Friday, October 19, 2018 at 4:59:10 PM UTC+5:30, Bugs Bunny wrote: > > Greetings django team, I'm a newbie with this

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Manjunath
Try adding for action to your add_comment url then submit the form. I guess currently form is getting submitted in the same page. On Friday, October 12, 2018 at 12:00:03 PM UTC+5:30, Robert CR wrote: > > here is the template file. > > *add_comment.html* > > > > *{% extends "blog/base.html" %}{%

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Manjunath
Please provide snapshot of your template file as well as project's urls.py file. On Friday, October 12, 2018 at 11:14:22 AM UTC+5:30, Robert CR wrote: > > I am making a blog app for my django website. Right now i'm making a > comment feature, but when i try to view a post and the posts comments

Re: NoReverseMatch at /catalog/author/1

2018-10-10 Thread Manjunath
No issues.. Glad I was of some help. :) On Wednesday, October 10, 2018 at 12:07:24 AM UTC+5:30, victor jack wrote: > > Manjunath thanks i have fixed the bug in my code , the problem was in the > author_detail page. THanks so much for your time , i really appreciate your > help >

Re: NoReverseMatch at /catalog/author/1

2018-10-09 Thread Manjunath
No issues. So, is the issue resolved now? On Tuesday, October 9, 2018 at 10:51:13 AM UTC+5:30, victor jack wrote: > > Will check it out . Thanks for your input very much appreciated > > On Tue, 9 Oct 2018 6:17 AM Manjunath, > > wrote: > >> Hi Victor, >> Are

Re: NoReverseMatch at /catalog/author/1

2018-10-09 Thread Manjunath
;> > wrote: >>>>>> >>>>>>> what is wrong with my...code...and setting please tell me >>>>>>> >>>>>>> On Tue, 9 Oct 2018 at 10:52, Pradeep Singh >>>>>> > wrote: >>>>>>> >

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Manjunath
Please Send the screenshot of your 404 page. On Tuesday, October 9, 2018 at 10:53:07 AM UTC+5:30, Pradeep Singh wrote: > > please help me ...i am always getting django 404 error .how to fix it > > On Mon, 8 Oct 2018 at 22:17, Manjunath > > wrote: > >>

Re: NoReverseMatch at /catalog/author/1

2018-10-08 Thread Manjunath
Hi Victor, Are you sure book.author.pk has value? can you send the model definition of Book & Author to verify? Or you can verify yourself by using django Shell. On Tuesday, October 9, 2018 at 12:52:28 AM UTC+5:30, victor jack wrote: > > > Thanks Manjunath, i will post two

Re: I put 3 more fields on database models

2018-10-06 Thread Manjunath
Seems like you have not performed migrations after adding the new fields. execute these commands & then run your server. python manage.py makemigrations python manage.py migrate On Sunday, October 7, 2018 at 3:33:54 AM UTC+5:30, Bleron Uka wrote: > > Hi, > My database has data there and i

Re: NoReverseMatch at /catalog/author/1

2018-10-06 Thread Manjunath
Seems like you are not passing the argument along with the url. Please share your template file to verify. On Saturday, October 6, 2018 at 7:06:08 AM UTC+5:30, victor jack wrote: > > Hello guys, i am in dire need of any django user's knowledge, i have this > issue that has been bugging me

Re: Need help with unique_together - on ForeignKey and Boolean field

2018-10-05 Thread Manjunath
How are you deciding which post is pinned? The unique approach might not do any good to you. A simple solution is to update the pinned values of each post to False & setting the required post pinned value to True when you are setting a pinned post. There may be better solutions, but I hope this

Re: redirect page

2018-10-04 Thread Manjunath
The issue is with your urls.py file. Since the first pattern you have given is empty, it will match all requests. Interchange lines 4 & 5 and your issue will be resolved. On Friday, October 5, 2018 at 2:17:27 AM UTC+5:30, Gear Crew wrote: > > > when you click on any link doesn't go to music/1/

Re: Deploying Django app with Channels on Linux Hosting

2018-10-03 Thread Manjunath
eck with them for more. > > Andrew > > On Wed, 3 Oct 2018 at 23:43, Manjunath > > wrote: > >> Hi all, >> I have developed a simple app using django channels. >> >> I would like to deploy it on a linux hosting provider (Currently I have >>

Deploying Django app with Channels on Linux Hosting

2018-10-03 Thread Manjunath
ings I need to do to setup the Socket layer? Kindly help me in this issue. Package versions used: Python - 3.6.6 Django - 2.1.1 Channels - 2.1.3 Channels_redis - 2.3.0 Hope to get help for this issue.. Thanks & Regards, Manjunath -- You received this message because you are subscribed to th

Deploying Django app with Channels on a Shared Linux Hosting

2018-10-03 Thread Manjunath
kage versions used: Python: 3.6.6 Django: 2.1.1 Channels: 2.1.3 Channels_redis: 2.3.0 Thanks & Regards, Manjunath -- 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

ABOUT DJANGO

2013-11-09 Thread HUGAR MANJUNATH Manjunath
HELLO , I AM NOT GETTING HOW TO INSTAL THE DJANGO AND PYTHAN ON OUR MACHINE. -- 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

Re: __unicode__() addition not working in basic poll application.

2013-06-20 Thread Manjunath Shivanna
Just restart the python interactive Shell... that should solve your problem Regards, Manju On Monday, May 16, 2011 5:32:41 AM UTC-7, maaz muqri wrote: > > Hi, > > class Poll(models.Model): > # ... > def __unicode__(self): > return