Re: Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread PULKIT AGRAWAL
Thanks Chetan for your response

On Tuesday, 11 April 2023 at 19:18:11 UTC+5:30 Chetan Ganji wrote:

> Hello Pulkit,
> Information you are asking is not readily available. It will become clear 
> to you as you start writing code. 
>
> However, you can use below options to make your life easier.
>
>1. https://ccbv.co.uk
>2. dir and callable methods can help you get more clarity. 
>
>
> I hope it helps you.
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji@gmail.com
> http://ryucoder.in
>
>
> On Tue, Apr 11, 2023 at 6:14 PM PULKIT AGRAWAL  wrote:
>
>> Hello Everyone,
>>
>> I am very new to Django and am still learning the ropes. If anyone can 
>> point me in the right direction, I will be thankful to you.
>>
>> My problems is as follows:
>> 1. I have learned about class based views and have started using them
>> 2. But every now and then I come across a new field that could have been 
>> overwritten in the class based view to shorted the code
>> 3. Is there a way to identify all the fields that can be over written in 
>> a class based view.
>>
>> Let me illustrate with an example:
>> class UnitCreateView(CreateView):
>> form_class = UnitCreationForm
>> template_name = 'units_of_measurement/unit_create.html'
>> success_url = reverse_lazy('units_of_measurement:unit_list')
>>
>> In the above class, can I know how many and what other fields such as 
>> "form_class" are available to over-riding? I have checked the documentation 
>> but have not found anything. Maybe its just me.
>>
>> Thanks in advance!
>>
>> Regards,
>>
>> Plkt
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/1666860d-5b3a-4cc8-a4b4-0187f5dc5b48n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 
https://groups.google.com/d/msgid/django-users/a665d290-d7ae-496a-97d1-0741c4e7172cn%40googlegroups.com.


Re: Telegram group joining

2023-04-11 Thread Satyajit Barik
Join here:   https://t.me/python_djangodevelopers

On Tue, Apr 11, 2023 at 8:40 PM shyam manek  wrote:

>
> Hi all group members,
> I've one idea regarding our communication and contacts
> So we can create a telegram group and discuss more about opportunities and
> issues and QA for technologies.
>
> Please join telegram group
>
> https://t.me/+e7j8hq-r_uIwMTNl
>
> --
> 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
> https://groups.google.com/d/msgid/django-users/CAL5Fy%3DCsypeZp_o1%3DDOjXPgcsARsia%3DoxQ9737%2BxBdazVCTiAw%40mail.gmail.com
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CANd-%2BoBjehMfqLCW3MU6Y92EthqqRZ7BY%3DtZG9pGkyJiUX4m0g%40mail.gmail.com.


Re: Illegal Hardware Instruction

2023-04-11 Thread Julio Cojom
Is your computer an apple silicon mac?






El mar, 11 abr 2023 a las 14:21, Mesfin Haftu () escribió:

> Hello There,
>
> This is Mesfin, I am working on a project of deep learning to classify
> images. I design the model, train, fit, evaluate and predict with my model.
> After that I save the model and try to do some users interface with Django
> to make things easier for users, however when  I try to "python manage.py
> runserver" It says Illegal Hardware Instruction.
> Is there any one who faces this thing before and have solution.
>
> Thankyou for your positive answers
> Mesfin
>
> --
> 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
> https://groups.google.com/d/msgid/django-users/cc06c8fc-6cda-436a-bac7-75b7bbe6c920n%40googlegroups.com
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CAHRQUHmS3d9GiQr1UgipqgqSeQrZsfJGK%2BCkEo7%2BbHeO9X7Jrw%40mail.gmail.com.


Illegal Hardware Instruction

2023-04-11 Thread Mesfin Haftu
Hello There,

This is Mesfin, I am working on a project of deep learning to classify 
images. I design the model, train, fit, evaluate and predict with my model. 
After that I save the model and try to do some users interface with Django 
to make things easier for users, however when  I try to "python manage.py 
runserver" It says Illegal Hardware Instruction. 
Is there any one who faces this thing before and have solution. 

Thankyou for your positive answers
Mesfin

-- 
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 
https://groups.google.com/d/msgid/django-users/cc06c8fc-6cda-436a-bac7-75b7bbe6c920n%40googlegroups.com.


Re: Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread Sebastian Jung
Hello Plkt i have no idea what you mean and what is the aim sorry

PULKIT AGRAWAL  schrieb am Di., 11. Apr. 2023, 14:44:

> Hello Everyone,
>
> I am very new to Django and am still learning the ropes. If anyone can
> point me in the right direction, I will be thankful to you.
>
> My problems is as follows:
> 1. I have learned about class based views and have started using them
> 2. But every now and then I come across a new field that could have been
> overwritten in the class based view to shorted the code
> 3. Is there a way to identify all the fields that can be over written in a
> class based view.
>
> Let me illustrate with an example:
> class UnitCreateView(CreateView):
> form_class = UnitCreationForm
> template_name = 'units_of_measurement/unit_create.html'
> success_url = reverse_lazy('units_of_measurement:unit_list')
>
> In the above class, can I know how many and what other fields such as
> "form_class" are available to over-riding? I have checked the documentation
> but have not found anything. Maybe its just me.
>
> Thanks in advance!
>
> Regards,
>
> Plkt
>
> --
> 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
> https://groups.google.com/d/msgid/django-users/1666860d-5b3a-4cc8-a4b4-0187f5dc5b48n%40googlegroups.com
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CAKGT9mw7cizo4JjECxJco-kU6eO%2B2skq5T9qwfD4fOAbEyCH2w%40mail.gmail.com.


Telegram group joining

2023-04-11 Thread shyam manek
Hi all group members,
I've one idea regarding our communication and contacts
So we can create a telegram group and discuss more about opportunities and
issues and QA for technologies.

Please join telegram group

https://t.me/+e7j8hq-r_uIwMTNl

-- 
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 
https://groups.google.com/d/msgid/django-users/CAL5Fy%3DCsypeZp_o1%3DDOjXPgcsARsia%3DoxQ9737%2BxBdazVCTiAw%40mail.gmail.com.


[no subject]

2023-04-11 Thread shyam manek
Hi all group members,
I've one idea regarding our communication and contacts
So we can create a telegram group and discuss more about opportunities and
issues and QA for technologies.

Please join telegram group

https://t.me/+e7j8hq-r_uIwMTNl

-- 
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 
https://groups.google.com/d/msgid/django-users/CAL5Fy%3DA0nbfzAbJg763z2ELQUxOzJy%3DJynBaLb5Z_UUCjPwjmA%40mail.gmail.com.


Re: Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread Chetan Ganji
Hello Pulkit,
Information you are asking is not readily available. It will become clear
to you as you start writing code.

However, you can use below options to make your life easier.

   1. https://ccbv.co.uk
   2. dir and callable methods can help you get more clarity.


I hope it helps you.

Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Tue, Apr 11, 2023 at 6:14 PM PULKIT AGRAWAL 
wrote:

> Hello Everyone,
>
> I am very new to Django and am still learning the ropes. If anyone can
> point me in the right direction, I will be thankful to you.
>
> My problems is as follows:
> 1. I have learned about class based views and have started using them
> 2. But every now and then I come across a new field that could have been
> overwritten in the class based view to shorted the code
> 3. Is there a way to identify all the fields that can be over written in a
> class based view.
>
> Let me illustrate with an example:
> class UnitCreateView(CreateView):
> form_class = UnitCreationForm
> template_name = 'units_of_measurement/unit_create.html'
> success_url = reverse_lazy('units_of_measurement:unit_list')
>
> In the above class, can I know how many and what other fields such as
> "form_class" are available to over-riding? I have checked the documentation
> but have not found anything. Maybe its just me.
>
> Thanks in advance!
>
> Regards,
>
> Plkt
>
> --
> 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
> https://groups.google.com/d/msgid/django-users/1666860d-5b3a-4cc8-a4b4-0187f5dc5b48n%40googlegroups.com
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CAMKMUjtB5yFCX7%2Bc9HgYNzzR7Jak8cOaXV6MEJQwyJVftzpTHg%40mail.gmail.com.


Re: Web portal by Django

2023-04-11 Thread Chetan Ganji
Hi Ananya,
Your question is very open ended.
You will need to give specific requirements to get any help.
e.g.
Whose license?
How many licenses per user?
Can multiple user have the same license key?
What is the format of the license key?


I hope it helps!


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Tue, Apr 11, 2023 at 6:14 PM Ananya Agrawal 
wrote:

> How to build a web portal for license information management by using
> 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 this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0d9ea21f-c6be-4cb9-8ad6-f4f019974545n%40googlegroups.com
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CAMKMUjusJOgX_qn%3DpnMmeTz_8rwPk8H6E%3DXv6zuXs6LBrgXp_g%40mail.gmail.com.


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

2023-04-11 Thread Michael Starr
You probably weren't careful enough following instructions. The beginner's 
tutorial is self-contained and allows a complete Django project to be made. 
Re-read everything word-for-word and then come back with some hypotheses 
for us to test for you.
Michael

On Tuesday, April 4, 2023 at 9:44:38 AM UTC-7 Tanveer wrote:

> 0
> 
>
> I know this question has been asked before, but I haven't found an answer 
> that solves my situation.
>
> I'm looking at the Django tutorial, and I've set up the first URLs exactly 
> as the tutorial has it, word for word, but when I go to 
> http://127.0.0.1:8000/, it gives me this error: but when i go to 
> http://127.0.0.1:8000/admin/ its working fine,where and what i am doing 
> wrong? i am using python version 3.11.1 please let me know for any other 
> info
> urls.py
>
> from django.contrib import admin
> from django.urls import path, include
> from django.conf.urls.static import static
> from django.conf import settings
> from .views import home
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', home)
>   ]
>
> views.py
> from django.http import HttpResponse
> from django.shortcuts import render
>
> # Create your views here.
> def home(request):
> return render(request,home.html,{})
>
>

-- 
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 
https://groups.google.com/d/msgid/django-users/6ae14b24-3fff-4f12-a9d9-80f4baa95c81n%40googlegroups.com.


Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread PULKIT AGRAWAL
Hello Everyone,

I am very new to Django and am still learning the ropes. If anyone can 
point me in the right direction, I will be thankful to you.

My problems is as follows:
1. I have learned about class based views and have started using them
2. But every now and then I come across a new field that could have been 
overwritten in the class based view to shorted the code
3. Is there a way to identify all the fields that can be over written in a 
class based view.

Let me illustrate with an example:
class UnitCreateView(CreateView):
form_class = UnitCreationForm
template_name = 'units_of_measurement/unit_create.html'
success_url = reverse_lazy('units_of_measurement:unit_list')

In the above class, can I know how many and what other fields such as 
"form_class" are available to over-riding? I have checked the documentation 
but have not found anything. Maybe its just me.

Thanks in advance!

Regards,

Plkt

-- 
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 
https://groups.google.com/d/msgid/django-users/1666860d-5b3a-4cc8-a4b4-0187f5dc5b48n%40googlegroups.com.


Re: Custom Unique Registration Number Required

2023-04-11 Thread Martin Mwai
It depends whether you want it on the front end or backend :
for front end have a function thats add the above abbreviations before 
inserting the data into the form. assuming the form has all the variables 
(school, year, dept, 0213) parse this to the function then it returns 
registration number . 

if its in the admin section you may create a function within the model 
class and  use super to return registration number before saving. 
 

On Thursday, 6 April 2023 at 04:42:30 UTC+3 chen...@gmail.com wrote:

> Good day all
>
> I am new to django and I need assistance where I can make a unique 
> registration number via model with the following format
>
> *ch2023ed0213* where 
>
> *'ch'* stands for abbreviated school name,
> *'2023'* year of programme,
> *'ed'* for department and 
> *'0213'* student unique number..
>
> Urls Link or recorded tutorials are welcome.
>
> Thank you
>

-- 
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 
https://groups.google.com/d/msgid/django-users/7cbedd70-d1e5-4c1a-9faf-7a08d9ad487fn%40googlegroups.com.


Web portal by Django

2023-04-11 Thread Ananya Agrawal
How to build a web portal for license information management by using 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0d9ea21f-c6be-4cb9-8ad6-f4f019974545n%40googlegroups.com.