Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread ratnadeep ray
Hi Ogunsanya, I have added that line of code but still getting the same error. So what can be done next ? On Thursday, 25 June 2020 00:25:17 UTC+5:30, Ogunsanya Opeyemi wrote: > > > Yes > On Wednesday, June 24, 2020, ratnadeep ray > wrote: > >> So I need to add this also: >> >> >> >>

Re: Project Collaboration Team

2020-06-24 Thread shailendra singh
Interested. On Wed, Jun 24, 2020 at 7:11 PM Aditya Jawale wrote: > Interested > > On Tue, 23 Jun, 2020, 9:45 AM Shubhanshu Arya, < > shubhanshuarya...@gmail.com> wrote: > >> Hello Everyone, >> I want to make a team in which we will make some very good level projects >> together. These projects

Re: Form theory - locking a field

2020-06-24 Thread Clive Bruton
On 24 Jun 2020, at 23:03, Chetan Ganji wrote: Try this one https://docs.djangoproject.com/en/3.0/ref/forms/fields/#disabled Ok, well that's a little help, because I can disable the input: status = forms.ChoiceField(choices=Profile.status_choices,

Re: Symmetrical, Self-referencing ManyToManyField with Through Table

2020-06-24 Thread Mike Dewhirst
On 25/06/2020 8:29 am, Jim Shepherd wrote: I am unable to get a symmetrical, self-referencing ManyToManyField with a through table to actually be symmetrical, at least through the Admin interface. I am using Django 3.0 so it looks like the capability is supported. Models: class

Re: Oracle 12.0.1 admin not working with django 3+

2020-06-24 Thread Tim Graham
I'm not sure if this is the cause of your issue but Django 3.0 officially supports Oracle 12.2 and higher: https://docs.djangoproject.com/en/3.0/ref/databases/#oracle-notes On Tuesday, June 23, 2020 at 10:35:24 PM UTC-4, ashish goyal wrote: > > Ho All, > > Have created lot of stuff in app,

Symmetrical, Self-referencing ManyToManyField with Through Table

2020-06-24 Thread Jim Shepherd
I am unable to get a symmetrical, self-referencing ManyToManyField with a through table to actually be symmetrical, at least through the Admin interface. I am using Django 3.0 so it looks like the capability is supported. Models: class Contact(models.Model): last_name =

Re: Manage.py not working

2020-06-24 Thread Najath
Try python3 manage.py On Sat, 20 Jun 2020, 9:11 pm Tanisha Jain, wrote: > Hi everyone, > I am new to Django platform. Whenever I am trying to create a new app > using ( python manage.py startapp app1) then I am not able to create app. > Neither I get any error message in logs. Can someone plz

Re: Django Reference Manual on what classes can be used with views, urls, etc...

2020-06-24 Thread Dennis Triplett
Thank you Cbh Bnh... I need to know what commands are available in Django and this is exactly what I was looking for. Thanks again. On Tuesday, June 23, 2020 at 5:44:46 PM UTC-7, Dennis Triplett wrote: > > I have been looking for a Django Reference Manual to let me know what > classes, or

Getting exception while importing data though Django Admin

2020-06-24 Thread Sasi Tiru
Exception: \lib\site-packages\import_export\resources.py", line 581, in import_data raise ImproperlyConfigured django.core.exceptions.ImproperlyConfigured models.py class Supplier(models.Model) : supplier_id = models.IntegerField(primary_key=True) supplier_name =

using serializers with POST requests

2020-06-24 Thread Arpana Mehta
https://stackoverflow.com/questions/62561906/django-adding-a-new-row-in-a-table-based-on-a-foreign-key-value-using-serializ Please visit this link!! I have posted my question with details there. It's super urgent. -- You received this message because you are subscribed to the Google Groups

Django queryset filtering

2020-06-24 Thread mtp...@gmail.com
I have a queryset that returns all the expired licenses objects as shown below. *qs = LicenseIssue.objects.filter(expiry_date__lte=TODAY).order_by('-expiry_date')* Here is my situation: There exists multiple issued licenses of different businesses for year 2020 and their previous issued

Re: Form theory - locking a field

2020-06-24 Thread Chetan Ganji
Try this one https://docs.djangoproject.com/en/3.0/ref/forms/fields/#disabled On Wed, Jun 24, 2020, 8:06 PM Clive Bruton wrote: > I have a form in which, after filing, I would like one field to be > locked for editing, the forms.py looks like this: > > ** > > class

Manage.py not working

2020-06-24 Thread Ogunsanya Opeyemi
Install manage.py using pip -- 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 this discussion on the web visit

Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread Ogunsanya Opeyemi
Yes On Wednesday, June 24, 2020, ratnadeep ray wrote: > So I need to add this also: > > > > urlpatterns = [ > ... > ... > path('process_data/', views.process_data, name='process_data'), > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread ratnadeep ray
So I need to add this also: urlpatterns = [ ... ... path('process_data/', views.process_data, name='process_data'), -- 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,

Re: Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread Ogunsanya Opeyemi
You do not have a URL for process_data that you want to access, that is why it is saying no valid view name process_data On Wednesday, June 24, 2020, ratnadeep ray wrote: > Hi all, > > Any comment on this? > > -- > You received this message because you are subscribed to the Google Groups >

Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread ratnadeep ray
Hi all, Any comment on this? -- 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 this discussion on the web

Re: Custom Primary Key

2020-06-24 Thread Oleg Kishenkov
Yes, first you generate your custom key, second you specify it as the id of an object. id = 'A1B2C3D4E5' foo = Foo(id=id) foo.save() This code would create a record in the database. I also have to note that if you read this record to an object, changed it and saved it, the record wouldn't

Re: Custom Primary Key

2020-06-24 Thread Clive Bruton
On 24 Jun 2020, at 06:24, Soumen Khatua wrote: Yes, at the time of add a new record in model, automatically I want to create a custom ID and insert it into model There is a post about this at Stack Overflow: https://stackoverflow.com/questions/52070462/django-generate-custom-id -- Clive

Form theory - locking a field

2020-06-24 Thread Clive Bruton
I have a form in which, after filing, I would like one field to be locked for editing, the forms.py looks like this: ** class ProfileForm(forms.ModelForm): status = forms.ChoiceField(choices=Profile.status_choices, widget=forms.RadioSelect) class Meta: model =

Re: help

2020-06-24 Thread Peter Kirieny
thanks Robert On Wed, 24 Jun 2020 at 08:35, Robert Rajendra wrote: > to configure virtual environment > 1. python -m pip install virtualenv > 2. go to project folder and type:- virtualenv > 3. source /bin/activate > 4. Once it is activated you will see the name of your project in the left >

Re: Django Reference Manual on what classes can be used with views, urls, etc...

2020-06-24 Thread Cbh Bnh
hi, Have a look to this site https://devdocs.io/django~2.2/ They have the same content then the official django doc but add a usefull search engine, links between sections and organise their content regarding the code structure and modules Cheers Le mercredi 24 juin 2020 à 02:44:46 UTC+2,

Re: Django Reference Manual on what classes can be used with views, urls, etc...

2020-06-24 Thread Cbh Bnh
Hi, I don't know if this will help but from time to time I use this site to browse into django doc: https://devdocs.io/django~2.2/ I think they use the same content as the offcial documentation but with better links and quit good search tool Cheers Le mercredi 24 juin 2020 à 02:44:46 UTC+2,

Re: Project Collaboration Team

2020-06-24 Thread Aditya Jawale
Interested On Tue, 23 Jun, 2020, 9:45 AM Shubhanshu Arya, wrote: > Hello Everyone, > I want to make a team in which we will make some very good level projects > together. These projects will be very helpful in our interview as well. > Must have prior knowledge about Django/Python. We will do

Reverse for 'process_data' not found. 'process_data' is not a valid view function or pattern name.

2020-06-24 Thread ratnadeep ray
Hi all, I am trying to direct the option selected from the dropdown in the index.html along with the value to the process_data method in the views.py. But now I am getting the following error when I am trying to load my index page: NoReverseMatch at /index/ Reverse for 'process_data' not

Re: help

2020-06-24 Thread Kasper Laudrup
Hi RaviKiran, On 24/06/2020 07.42, RaviKiran Kk wrote: Hello All, Any one used django for IoT applications? Learn how to use Google Groups (or mailling lists): https://www.dummies.com/education/internet-basics/how-to-post-messages-in-google-groups/ Kind regards, Kasper Laudrup -- You