Re: reg: NoReverseMatch at "login"

2020-04-28 Thread 'Amitesh Sahay' via Django users
That didn't work. we need to redirect to a web page, and not a function. May be I am wrong. As I have said, it was working before, and suddenly it stopped working. Not sure what went wrong. Regards,Amitesh On Wednesday, 29 April, 2020, 12:52:16 am IST, 'Amitesh Sahay' via Django users

Re: Sqlite3 error

2020-04-28 Thread LGBS fine soul coders
Well try to download sqlite from google then install to your mashine manually dont use pip On Tue, 28 Apr 2020, 20:17 chucks ogwo, wrote: > Hi, Everyone, I have been trying to interact with the sqlite3 database on > Pycharm, every time I run the code it gives me an import error. > > > Traceback

Re: Question regarding Interactive Python shell response and django

2020-04-28 Thread Michael Karikari
Ill have to look at the DRF option, the python API I'm connecting assumes you are doing this from shell, so I was trying to work around that fact On Monday, April 27, 2020 at 10:51:10 AM UTC-4, Derek wrote: > > I think you are better off creating a proper API for your Django project, > using

Re: Watch "Django : Table doesn't exist | Fake migrations | no such table" on YouTube

2020-04-28 Thread Alay Patel
So jaao raj bhaiya On Wed, 29 Apr, 2020, 1:42 AM Dylan Reinhold, wrote: > It might just be me but this feels like spam... > > On Tue, Apr 28, 2020 at 1:06 PM Anonymous Patel > wrote: > >> https://youtu.be/dXlYIkXmbbw >> >> >> Errormania upcoming with as many solutions as possible in short time

Re: Watch "Django : Table doesn't exist | Fake migrations | no such table" on YouTube

2020-04-28 Thread Dylan Reinhold
It might just be me but this feels like spam... On Tue, Apr 28, 2020 at 1:06 PM Anonymous Patel wrote: > https://youtu.be/dXlYIkXmbbw > > > Errormania upcoming with as many solutions as possible in short time so > that no Developers can stuck. > > Share like and subscribe , i liked this channel

Watch "Django : Table doesn't exist | Fake migrations | no such table" on YouTube

2020-04-28 Thread Anonymous Patel
https://youtu.be/dXlYIkXmbbw Errormania upcoming with as many solutions as possible in short time so that no Developers can stuck. Share like and subscribe , i liked this channel personally. Even my friends in this channel will also like it Raj Patel -- You received this message because you

Re: reg: NoReverseMatch at "login"

2020-04-28 Thread 'Amitesh Sahay' via Django users
Well, I can try your suggestion. But I am little unsure of the outcome though. Will update. Thank you  Sent from Yahoo Mail on Android On Tue, 28 Apr 2020 at 23:05, 'Adrian Havenga-Bennett' via Django users wrote: Hello Redirect should call the view rather than the html page. Whichever

MaxValueValidator and small floats

2020-04-28 Thread Marshall Sutton
I have a form field: H2mix_inp = forms.DecimalField(label=mark_safe('H2mix (0.02 to 0.5) The mixing ratio of molecular hydrogen in the (otherwise) N2 background gas. Expressed as H2/(H2+N2.'), validators=[MinValueValidator(0.02),MaxValueValidator(max(H2mix ))]) When I enter 0.02 or

Django dropdown data display issues in the control

2020-04-28 Thread Ajeet Kumar Gupt
Dear Team, I am a beginner in Django and want to developing one assignment in django. Now, I am created one model category and subcategory. Based on category populate the data sub-category and data have saved like the below format. *Category = * Operations *Subcategory =*

Set a default value for a field as the instance of a second model (which links to a third)

2020-04-28 Thread Jonathan Acres
Based on the topic description, I can't help but feel I'm already overcomplicating this... I have 3 models: - Audit - LeadAuditor - Action The Audit model links to Lead_Auditor so each Audit instance has a single Audit.lead_auditor: *lead_auditor = models.ForeignKey('LeadAuditor',

Re: reg: NoReverseMatch at "login"

2020-04-28 Thread 'Adrian Havenga-Bennett' via Django users
Hello Redirect should call the view rather than the html page. Whichever view is handling the rendering of the chittr.html page is what should be the argument for redirect. Sent from my iPhone > On 28 Apr 2020, at 16:28, 'Amitesh Sahay' via Django users > wrote: > >  > Hi, > > Its a

Sqlite3 error

2020-04-28 Thread chucks ogwo
Hi, Everyone, I have been trying to interact with the sqlite3 database on Pycharm, every time I run the code it gives me an import error. Traceback (most recent call last): File ".\file.py", line 1, in import sqlite3 File "C:\Users\Dell\anaconda3\lib\sqlite3\__init__.py", line 23, in

Re: How to use ModelChoiceField? I whould like to filter the output from a field form.

2020-04-28 Thread Sergei Sokov
forms.py class OrderForm(forms.ModelForm): class Meta: model = Order name_job = forms.ModelMultipleChoiceField(queryset=None) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) qs = TypJob.objects.filter(author__id=request.user.id) views.py

Re: How to use ModelChoiceField? I whould like to filter the output from a field form.

2020-04-28 Thread Antje Kazimiers
the form doesn't know the request only the view does. how does your view function look like? On 4/28/20 5:57 PM, Sergei Sokov wrote: > я не совсем понял > > | >     class Meta: >         model = Order >         fields = '__all__' >     name_job = forms.ModelMultipleChoiceField(queryset=None) >    

Add Active Directory accounts informations (sn, givenname, etc....) in the postgresql DB

2020-04-28 Thread David OCTAU
Hi all the community, I try to develop a webb app which must manage our Active Directory accounts (the users) in our office. I get all the accounts informations with the ldap module and i can view the users in my webpage. Now i would like to integrate the AD users informations (sn, givenName,

Re: How to use ModelChoiceField? I whould like to filter the output from a field form.

2020-04-28 Thread Sergei Sokov
я не совсем понял class Meta: model = Order fields = '__all__' name_job = forms.ModelMultipleChoiceField(queryset=None) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) qs = TypJob.objects.filter(author__id=request.user.id)

reg: NoReverseMatch at "login"

2020-04-28 Thread 'Amitesh Sahay' via Django users
Hi, Its a shame that I am not able to resolve this simple issue. Explanation as below Once the user login, he/she will be rendered to a page called (chitrr.html). This I have mentioned as a "return redirect('chitrr')". But when I login, it is giving "NoReverseMatch" error.  It's ironic that

Re: How to use ModelChoiceField? I whould like to filter the output from a field form.

2020-04-28 Thread hend hend
user.id надо брать из request объекта в контроллере request.user.id. В том же контроллере метод get_initial() позволяет инициализировать поля формы(указанной в аттрибуте "form_class")контроллера. Например: def get_initial(self): # поле category формы будет установлено в результат

Re: DateTime

2020-04-28 Thread Kushal Neupane
Thank you sir On Tue, Apr 28, 2020, 17:10 Kasper Laudrup wrote: > Hi Kushal, > > On 28/04/2020 03.39, Kushal Neupane wrote: > > How to make date time as per my region? > > > > This might be helpful: > > >

Re: DateTime

2020-04-28 Thread Kasper Laudrup
Hi Kushal, On 28/04/2020 03.39, Kushal Neupane wrote: How to make date time as per my region? This might be helpful: https://howchoo.com/g/ywi5m2vkodk/working-with-datetime-objects-and-timezones-in-python#enter-timezones Kind regards, Kasper Laudrup -- You received this message because

Re: How to use ModelChoiceField? I whould like to filter the output from a field form.

2020-04-28 Thread Antje Kazimiers
qs = TypJob.objects.filter(author__id=user.id) needs to go inside of the __init__ function. you pass user = request.user as a parameter to OrderTestForm when you instantiate it in your view and can use it then in your init function. Also you can only filter the id of the author if the author

Re: A Business Solutions and ERP framework released.

2020-04-28 Thread Devender Kumar
Excited to try it out On Tue, 28 Apr, 2020, 12:43 pm Ramez Ashraf, wrote: > Hello Fellow Developers > > We released the reporting engine of Ra ERP framework as a standalone > package `django-slick-reporting` > https://github.com/ra-systems/django-slick-reporting > > Slick Reporting is a Report

paytm page not display

2020-04-28 Thread waqar khan
My paytm file not working inside form tag defined link paytm ingratiation order not success but save databases, how can solve problem -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re:

2020-04-28 Thread Shreyas S K
Please refer the attached. On Tuesday, 28 April 2020 05:41:32 UTC+5:30, fahad rasool wrote: > > How to retrieve data from database and display on web page ,example i want > to display the details of the user on a web page which he has entered in a > form which is stored in database. > -- You

How to use ModelChoiceField? I whould like to filter the output from a field form.

2020-04-28 Thread Sergei Sokov
I have some models classes. And some classes have bounding fields with another class. Each class have the field - author. I whould like that for each user the form bounding field shows only those data which was created these authors. For example: class “TypeJob” has field “author”. User Jhon

Re: A Business Solutions and ERP framework released.

2020-04-28 Thread Ramez Ashraf
Hello Fellow Developers We released the reporting engine of Ra ERP framework as a standalone package `django-slick-reporting` https://github.com/ra-systems/django-slick-reporting Slick Reporting is a Report Engine that creates grouped by, time series and cross tab reports out of your data in a