Re: Help on Creating a Superuser account on render.

2024-04-11 Thread ALINDA Fortunate
Thanks so much for your assistance indeed the issue was I had failed to
visualise my data on railway since I am using an external database. A
friend helped understand that and now I am able to access my admin panel.

Thanks everyone.

On Wed, 10 Apr 2024, 19:59 Luis Zárate,  wrote:

> Maybe something like
>
> python manage.py shell -c "from django.contrib.auth.hashers import
> make_password;from django.contrib.auth.models import User; admin =
> User(username='username', email='exam...@example.com',
> password=make_password('password'),
> is_superuser=True,is_staff=True);admin.save()"
>
>
>
> El dom, 7 abr 2024 a las 2:13, ALINDA Fortunate (<
> alindafortuna...@gmail.com>) escribió:
>
>> It's my external database is postgres on railway.
>>
>> Let me try your opinion and I see.
>>
>> On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
>> wrote:
>>
>>> So you have used render to host your application, you might have
>>> connected an external database (postgreSQL or any other) you might have
>>> used the environment setup to set the database up with the postgreSQL
>>> hosted either on render itself or on a different server, just connect the
>>> database with your application on your local host and create a super user
>>> since the database is same on the render's server's application the
>>> superuser will be same as the superuser you created on the local server
>>> thus you can access the admin panel
>>>
>>>
>>> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>>>
 Hello I have successfully a django project on render but i have failed
 to access the admin panel

 Any idea on how to create a superuser account on a free tier of render

 Below is my build.sh file
 #!/usr/bin/env bash
 # Exit on error
 set -o errexit



 # Modify this line as needed for your package manager (pip, poetry,
 etc.)
 pip install -r requirements.txt

 # Convert static asset files
 python manage.py collectstatic --no-input

 # Apply any outstanding database migrations
 python manage.py migrate

 if [[ $CREATE_SUPERUSER ]];
 then
   python world_champ_2022/manage.py createsuperuser --no-input
 fi






 --
 ALINDA Fortunate
 Graduate Of Computer Science
 Gulu University
 Passionate about Software Development in Python
 If you can't explain it simply, you don't understand it well enough.
 alindafo...@gmail.com.
 +256 774339676 <+256%20774%20339676> / +256 702910041
 <+256%20702%20910041>
 Kagadi.

>>> --
>>> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
> --
> 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/CAG%2B5VyOcJ%2BeL3dTgVHfgW1tjH5p6-qHUzKq83t3z8xK7iNFGdQ%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/CAPifpCtM6bEOREKdmzD5-XOS7PZ4p6C9KTeMKt04FzS3yNZ8cw%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-10 Thread Luis Zárate
Maybe something like

python manage.py shell -c "from django.contrib.auth.hashers import
make_password;from django.contrib.auth.models import User; admin =
User(username='username', email='exam...@example.com',
password=make_password('password'),
is_superuser=True,is_staff=True);admin.save()"



El dom, 7 abr 2024 a las 2:13, ALINDA Fortunate ()
escribió:

> It's my external database is postgres on railway.
>
> Let me try your opinion and I see.
>
> On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
> wrote:
>
>> So you have used render to host your application, you might have
>> connected an external database (postgreSQL or any other) you might have
>> used the environment setup to set the database up with the postgreSQL
>> hosted either on render itself or on a different server, just connect the
>> database with your application on your local host and create a super user
>> since the database is same on the render's server's application the
>> superuser will be same as the superuser you created on the local server
>> thus you can access the admin panel
>>
>>
>> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>>
>>> Hello I have successfully a django project on render but i have failed
>>> to access the admin panel
>>>
>>> Any idea on how to create a superuser account on a free tier of render
>>>
>>> Below is my build.sh file
>>> #!/usr/bin/env bash
>>> # Exit on error
>>> set -o errexit
>>>
>>>
>>>
>>> # Modify this line as needed for your package manager (pip, poetry, etc.)
>>> pip install -r requirements.txt
>>>
>>> # Convert static asset files
>>> python manage.py collectstatic --no-input
>>>
>>> # Apply any outstanding database migrations
>>> python manage.py migrate
>>>
>>> if [[ $CREATE_SUPERUSER ]];
>>> then
>>>   python world_champ_2022/manage.py createsuperuser --no-input
>>> fi
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> ALINDA Fortunate
>>> Graduate Of Computer Science
>>> Gulu University
>>> Passionate about Software Development in Python
>>> If you can't explain it simply, you don't understand it well enough.
>>> alindafo...@gmail.com.
>>> +256 774339676 <+256%20774%20339676> / +256 702910041
>>> <+256%20702%20910041>
>>> Kagadi.
>>>
>> --
>> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyOcJ%2BeL3dTgVHfgW1tjH5p6-qHUzKq83t3z8xK7iNFGdQ%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-07 Thread ALINDA Fortunate
It's my external database is postgres on railway.

Let me try your opinion and I see.

On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
wrote:

> So you have used render to host your application, you might have connected
> an external database (postgreSQL or any other) you might have used the
> environment setup to set the database up with the postgreSQL hosted either
> on render itself or on a different server, just connect the database with
> your application on your local host and create a super user since the
> database is same on the render's server's application the superuser will be
> same as the superuser you created on the local server thus you can access
> the admin panel
>
>
> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>
>> Hello I have successfully a django project on render but i have failed to
>> access the admin panel
>>
>> Any idea on how to create a superuser account on a free tier of render
>>
>> Below is my build.sh file
>> #!/usr/bin/env bash
>> # Exit on error
>> set -o errexit
>>
>>
>>
>> # Modify this line as needed for your package manager (pip, poetry, etc.)
>> pip install -r requirements.txt
>>
>> # Convert static asset files
>> python manage.py collectstatic --no-input
>>
>> # Apply any outstanding database migrations
>> python manage.py migrate
>>
>> if [[ $CREATE_SUPERUSER ]];
>> then
>>   python world_champ_2022/manage.py createsuperuser --no-input
>> fi
>>
>>
>>
>>
>>
>>
>> --
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041
>> <+256%20702%20910041>
>> Kagadi.
>>
> --
> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-06 Thread Aniket Raj Singh
So you have used render to host your application, you might have connected 
an external database (postgreSQL or any other) you might have used the 
environment setup to set the database up with the postgreSQL hosted either 
on render itself or on a different server, just connect the database with 
your application on your local host and create a super user since the 
database is same on the render's server's application the superuser will be 
same as the superuser you created on the local server thus you can access 
the admin panel


On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:

> Hello I have successfully a django project on render but i have failed to 
> access the admin panel 
>
> Any idea on how to create a superuser account on a free tier of render
>
> Below is my build.sh file
> #!/usr/bin/env bash
> # Exit on error
> set -o errexit
>
>
>
> # Modify this line as needed for your package manager (pip, poetry, etc.)
> pip install -r requirements.txt
>
> # Convert static asset files
> python manage.py collectstatic --no-input
>
> # Apply any outstanding database migrations
> python manage.py migrate
>
> if [[ $CREATE_SUPERUSER ]];
> then
>   python world_champ_2022/manage.py createsuperuser --no-input
> fi
>
>
>
>
>
>
> -- 
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafo...@gmail.com.
> +256 774339676 <+256%20774%20339676> / +256 702910041 
> <+256%20702%20910041>
> Kagadi.
>

-- 
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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%40googlegroups.com.


Help on Creating a Superuser account on render.

2024-04-06 Thread ALINDA Fortunate
Hello I have successfully a django project on render but i have failed to
access the admin panel

Any idea on how to create a superuser account on a free tier of render

Below is my build.sh file
#!/usr/bin/env bash
# Exit on error
set -o errexit



# Modify this line as needed for your package manager (pip, poetry, etc.)
pip install -r requirements.txt

# Convert static asset files
python manage.py collectstatic --no-input

# Apply any outstanding database migrations
python manage.py migrate

if [[ $CREATE_SUPERUSER ]];
then
  python world_champ_2022/manage.py createsuperuser --no-input
fi






-- 
ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
alindafortuna...@gmail.com .
+256 774339676 / +256 702910041
Kagadi.

-- 
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/CAPifpCscJ_H1hAHjgw68iDDyb4gem3Ut7Zw3Ps4uJNqqhFnzLA%40mail.gmail.com.


Re: ANYONE CAN HELP ME

2024-04-03 Thread Miroslav Milic
Hi,

Here is the link to the Django docs where it is explained how to handle
multiple file uploads with FileInput. Try to use the example from the docs
as a starting point.

https://docs.djangoproject.com/en/5.0/topics/http/file-uploads/#uploading-multiple-files

Best regards,
--
Miroslav Milic


On Tue, Apr 2, 2024 at 7:20 PM arts maxwell Anderson <
arts.mawellanderson@gmail.com> wrote:

> hello i have this error , i want to uppload multiple django image
> ValueError: FileInput doesn't support uploading multiple files.
> any one can help me
>
> class FormImages(ModelForm):
> multiple_image= forms.ImageField(widget=forms.FileInput(attrs= {
> 'multiple': True}))
>
> class Meta:
>
> model = Images
> fields=['multiple_image']
>
>
> #create prodcut in function
> def create_product(request):
> form_image = FormImages()
> form = FormCretaeProdcut()
>
> if request.method == 'POST':
> files = request.FILES.getlist('multiple_image')
> form = FormCretaeProdcut(request.POST, request.FILES)
> if form.is_valid():
> product = form.save(commit=False)
> product.save()
> product.user = request.user
> product.save()
> for file in files :
> Images.objects.create(product=product , images=file)
> else:
> form = FormCretaeProdcut()
> return render(request, 'create_product.html', {'form':form, 'i_form':
> form_image})
>
> --
> 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/c5cf6e10-68a1-4ceb-915d-df489db9b863n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c5cf6e10-68a1-4ceb-915d-df489db9b863n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEOWdJUwkZPdAAqAbayEp%3DWhY5i9vrDk6fVk5VEjkTxkegj-%2Bw%40mail.gmail.com.


ANYONE CAN HELP ME

2024-04-02 Thread arts maxwell Anderson
hello i have this error , i want to uppload multiple django image 
ValueError: FileInput doesn't support uploading multiple files.
any one can help me 

class FormImages(ModelForm):
multiple_image= forms.ImageField(widget=forms.FileInput(attrs= {
'multiple': True}))

class Meta:

model = Images
fields=['multiple_image']


#create prodcut in function 
def create_product(request):
form_image = FormImages()
form = FormCretaeProdcut()

if request.method == 'POST':
files = request.FILES.getlist('multiple_image')
form = FormCretaeProdcut(request.POST, request.FILES)
if form.is_valid():
product = form.save(commit=False)
product.save()
product.user = request.user
product.save()
for file in files :
Images.objects.create(product=product , images=file)
else:
form = FormCretaeProdcut()
return render(request, 'create_product.html', {'form':form, 'i_form':
form_image}) 

-- 
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/c5cf6e10-68a1-4ceb-915d-df489db9b863n%40googlegroups.com.


Re: Help on Django_allauth Login Page

2024-03-08 Thread ALINDA Fortunate
Thank you for your response, okay let me try it

On Fri, Mar 8, 2024 at 5:48 PM Muhammad Juwaini Abdul Rahman <
juwa...@gmail.com> wrote:

> It's part of LoginForm in django_allauth:
> https://github.com/pennersr/django-allauth/blob/main/allauth/account/forms.py#L146
>
> You can subclass LoginForm and omit that part.
>
> On Fri, 8 Mar 2024 at 22:34, ALINDA Fortunate 
> wrote:
>
>> Hello colleagues, I have the following code for my login page using
>> django_allauth but it outputs the *forgot password?* link. How do I edit
>> this?
>>
>> 
>> {% extends "_base.html" %}
>>
>> {%load crispy_forms_tags%}
>>
>> {% block title %}Log In{% endblock title %}
>> {% block content %}
>> Log In
>> {% csrf_token%}
>> {{form | crispy}}
>>
>> Log In
>>
>> 
>> {% endblock content %}
>>
>>
>> And the output has f*orgot** password? link.* How do I remove it or
>> style it?
>>
>> Below is the output.
>>
>>
>> [image: image.png]
>>
>> --
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafortuna...@gmail.com .
>> +256 774339676 / +256 702910041
>> Kagadi.
>>
>> --
>> 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/CAPifpCtpktOM0dRwGceOd2jP5xGRso6xwey7SvDNv%3DSMsZm0yA%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/CAFKhtoSgoD0y_fom1K_pr3w1esm3N3Cj5%2BybqDemv%2BzA7vqeXg%40mail.gmail.com
> 
> .
>


-- 
ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
alindafortuna...@gmail.com .
+256 774339676 / +256 702910041
Kagadi.

-- 
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/CAPifpCsqiE86Oxc-jP%2B8zUANfL1u-SSz-RM9%3DMqY6p22cPV%3D8w%40mail.gmail.com.


Re: Help on Django_allauth Login Page

2024-03-08 Thread Muhammad Juwaini Abdul Rahman
It's part of LoginForm in django_allauth:
https://github.com/pennersr/django-allauth/blob/main/allauth/account/forms.py#L146

You can subclass LoginForm and omit that part.

On Fri, 8 Mar 2024 at 22:34, ALINDA Fortunate 
wrote:

> Hello colleagues, I have the following code for my login page using
> django_allauth but it outputs the *forgot password?* link. How do I edit
> this?
>
> 
> {% extends "_base.html" %}
>
> {%load crispy_forms_tags%}
>
> {% block title %}Log In{% endblock title %}
> {% block content %}
> Log In
> {% csrf_token%}
> {{form | crispy}}
>
> Log In
>
> 
> {% endblock content %}
>
>
> And the output has f*orgot** password? link.* How do I remove it or style
> it?
>
> Below is the output.
>
>
> [image: image.png]
>
> --
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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/CAPifpCtpktOM0dRwGceOd2jP5xGRso6xwey7SvDNv%3DSMsZm0yA%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/CAFKhtoSgoD0y_fom1K_pr3w1esm3N3Cj5%2BybqDemv%2BzA7vqeXg%40mail.gmail.com.


Help on Django_allauth Login Page

2024-03-08 Thread ALINDA Fortunate
Hello colleagues, I have the following code for my login page using
django_allauth but it outputs the *forgot password?* link. How do I edit
this?


{% extends "_base.html" %}

{%load crispy_forms_tags%}

{% block title %}Log In{% endblock title %}
{% block content %}
Log In
{% csrf_token%}
{{form | crispy}}

Log In


{% endblock content %}


And the output has f*orgot** password? link.* How do I remove it or style
it?

Below is the output.


[image: image.png]

-- 
ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
alindafortuna...@gmail.com .
+256 774339676 / +256 702910041
Kagadi.

-- 
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/CAPifpCtpktOM0dRwGceOd2jP5xGRso6xwey7SvDNv%3DSMsZm0yA%40mail.gmail.com.


Re: Need help in python Django project "online train ticket booking system"

2024-02-22 Thread Daniel Martinez
Hello, what is the problem you are experimenting? Canyou please provide
code?

On Mon, Feb 19, 2024, 9:21 AM Surya Santhosh 
wrote:

> Need help in python Django project "online train ticket booking system"
>
> --
> 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/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CANp4oeuWD%2BNmQWonAuUh-7cQCZUkXgnOY33y1%2Bts5bKnJqZv0g%40mail.gmail.com.


Re: Need help in python Django project "online train ticket booking system"

2024-02-21 Thread Fasila Ali
I am Interested

On Mon, 19 Feb 2024, 9:51 pm Surya Santhosh, 
wrote:

> Need help in python Django project "online train ticket booking system"
>
> --
> 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/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CABnbZxYmoA-Drek8sEJiG8%2Br7pwwYqxE6drFZzgOem%2BqJmBLxg%40mail.gmail.com.


Need help in python Django project "online train ticket booking system"

2024-02-19 Thread Surya Santhosh
Need help in python Django project "online train ticket booking system"

-- 
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/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com.


Re: Need help setting up my Django environment

2024-02-18 Thread kge...@gmail.com
**What Ryan said about incompatibility

If you want to pick a particular version of python (say, 3.12) when you 
create an env use:

conda create -n myEnv python==3.12

On Sunday, February 18, 2024 at 11:48:39 AM UTC-5 kge...@gmail.com wrote:

> Saw this on stack overflow: 
> https://stackoverflow.com/questions/70347099/error-installing-a-django-project-attrributeerror-module-collections-has-no-a
>
> Supports what Mordecai Etukudo said about version incompatability.
>
> *Type "help", "copyright", "credits" or "license" for more information. *
> *>>> import collections *
> *>>> collections.Iterator *
> *:1: DeprecationWarning: Using or importing the ABCs from 
> 'collections' instead of from 'collections.abc' is deprecated since Python 
> 3.3, and in 3.10 it will stop working *
> **
>
> How mature is your project? Changing python (or django) versions isnt 
> always trivial but I suspect your project is fairly new though and you may 
> want to consider using the latest of each.
>
> On Saturday, February 17, 2024 at 3:32:32 PM UTC-5 Ryan Nowakowski wrote:
>
>> Your Python version is likely too new for your version of Django.
>>
>>
>> On February 17, 2024 6:06:41 AM CST, Brigid Sang  
>> wrote:
>>
>>> I'm encoutering the below error, how can I fix this
>>>
>>> Traceback (most recent call last):
>>>   File "/home/brigid/.local/bin/django-admin", line 8, in 
>>> sys.exit(execute_from_command_line())
>>>  ^^^
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
>>>  
>>> line 371, in execute_from_command_line
>>> utility.execute()
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
>>>  
>>> line 365, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
>>>  
>>> line 288, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
>>>  
>>> line 335, in execute
>>> output = self.handle(*args, **options)
>>>  ^
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
>>>  
>>> line 20, in handle
>>> super().handle('project', project_name, target, **options)
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
>>>  
>>> line 117, in handle
>>> django.setup()
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line 
>>> 16, in setup
>>> from django.urls import set_script_prefix
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py", 
>>> line 1, in 
>>> from .base import (
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py", 
>>> line 8, in 
>>> from .exceptions import NoReverseMatch, Resolver404
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py",
>>>  
>>> line 1, in 
>>> from django.http import Http404
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py", 
>>> line 5, in 
>>> from django.http.response import (
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py", 
>>> line 13, in 
>>> from django.core.serializers.json import DjangoJSONEncoder
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
>>>  
>>> line 23, in 
>>> from django.core.serializers.base import SerializerDoesNotExist
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
>>>  
>>> line 6, in 
>>> from django.db import models
>>>   File 
>>> "/home/brigid/.local/lib/python3.

Re: Need help setting up my Django environment

2024-02-18 Thread kge...@gmail.com
Saw this on stack 
overflow: 
https://stackoverflow.com/questions/70347099/error-installing-a-django-project-attrributeerror-module-collections-has-no-a

Supports what Mordecai Etukudo said about version incompatability.

*Type "help", "copyright", "credits" or "license" for more information. *
*>>> import collections *
*>>> collections.Iterator *
*:1: DeprecationWarning: Using or importing the ABCs from 
'collections' instead of from 'collections.abc' is deprecated since Python 
3.3, and in 3.10 it will stop working *
**

How mature is your project? Changing python (or django) versions isnt 
always trivial but I suspect your project is fairly new though and you may 
want to consider using the latest of each.

On Saturday, February 17, 2024 at 3:32:32 PM UTC-5 Ryan Nowakowski wrote:

> Your Python version is likely too new for your version of Django.
>
>
> On February 17, 2024 6:06:41 AM CST, Brigid Sang  
> wrote:
>
>> I'm encoutering the below error, how can I fix this
>>
>> Traceback (most recent call last):
>>   File "/home/brigid/.local/bin/django-admin", line 8, in 
>> sys.exit(execute_from_command_line())
>>  ^^^
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
>>  
>> line 371, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
>>  
>> line 365, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
>>  
>> line 288, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
>>  
>> line 335, in execute
>> output = self.handle(*args, **options)
>>  ^
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
>>  
>> line 20, in handle
>> super().handle('project', project_name, target, **options)
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
>>  
>> line 117, in handle
>> django.setup()
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line 
>> 16, in setup
>> from django.urls import set_script_prefix
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py", 
>> line 1, in 
>> from .base import (
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py", 
>> line 8, in 
>> from .exceptions import NoReverseMatch, Resolver404
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py",
>>  
>> line 1, in 
>> from django.http import Http404
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py", 
>> line 5, in 
>> from django.http.response import (
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py", 
>> line 13, in 
>> from django.core.serializers.json import DjangoJSONEncoder
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
>>  
>> line 23, in 
>> from django.core.serializers.base import SerializerDoesNotExist
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
>>  
>> line 6, in 
>> from django.db import models
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/__init__.py",
>>  
>> line 3, in 
>> from django.db.models.aggregates import *  # NOQA
>> ^
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/aggregates.py",
>>  
>> line 5, in 
>> from django.db.models.expressions import Case, Func, Star, When
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
>>  
>> line 486, in 
>> class TemporalSubtraction(CombinedExpression):
>>   File 
>> "/home/brigid/.local/lib/python3.11

Re: Need help setting up my Django environment

2024-02-17 Thread Mordecai Etukudo
Comment you model. Py and the run if you still have the issue not this is
to fine how where the issue if from

On Sat, Feb 17, 2024, 1:38 PM Brigid Sang  wrote:

> I'm encoutering the below error, how can I fix this
>
> Traceback (most recent call last):
>   File "/home/brigid/.local/bin/django-admin", line 8, in 
> sys.exit(execute_from_command_line())
>  ^^^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
> line 371, in execute_from_command_line
> utility.execute()
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
> line 365, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
> line 288, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
> line 335, in execute
> output = self.handle(*args, **options)
>  ^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
> line 20, in handle
> super().handle('project', project_name, target, **options)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
> line 117, in handle
> django.setup()
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line
> 16, in setup
> from django.urls import set_script_prefix
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py",
> line 1, in 
> from .base import (
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py",
> line 8, in 
> from .exceptions import NoReverseMatch, Resolver404
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py",
> line 1, in 
> from django.http import Http404
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py",
> line 5, in 
> from django.http.response import (
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py",
> line 13, in 
> from django.core.serializers.json import DjangoJSONEncoder
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
> line 23, in 
> from django.core.serializers.base import SerializerDoesNotExist
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
> line 6, in 
> from django.db import models
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/__init__.py",
> line 3, in 
> from django.db.models.aggregates import *  # NOQA
> ^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/aggregates.py",
> line 5, in 
> from django.db.models.expressions import Case, Func, Star, When
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
> line 486, in 
> class TemporalSubtraction(CombinedExpression):
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
> line 487, in TemporalSubtraction
> output_field = fields.DurationField()
>^^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/fields/__init__.py",
> line 155, in __init__
> if isinstance(choices, collections.Iterator):
>
> AttributeError: module 'collections' has no attribute 'Iterator'
>
> --
> 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/ce94bd02-d38d-464d-9d06-2fbd3d5e7340n%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/CAMZpRz-hZX4X-_ZgvcWj_8izpqv33Tc69vfYVEOpyrXGWOEfeg%40mail.gmail.com.


Need help setting up my Django environment

2024-02-17 Thread Brigid Sang
I'm encoutering the below error, how can I fix this

Traceback (most recent call last):
  File "/home/brigid/.local/bin/django-admin", line 8, in 
sys.exit(execute_from_command_line())
 ^^^
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
 
line 371, in execute_from_command_line
utility.execute()
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
 
line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
 
line 288, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
 
line 335, in execute
output = self.handle(*args, **options)
 ^
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
 
line 20, in handle
super().handle('project', project_name, target, **options)
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
 
line 117, in handle
django.setup()
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line 
16, in setup
from django.urls import set_script_prefix
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py", 
line 1, in 
from .base import (
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py", 
line 8, in 
from .exceptions import NoReverseMatch, Resolver404
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py", 
line 1, in 
from django.http import Http404
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py", 
line 5, in 
from django.http.response import (
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py", 
line 13, in 
from django.core.serializers.json import DjangoJSONEncoder
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
 
line 23, in 
from django.core.serializers.base import SerializerDoesNotExist
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
 
line 6, in 
from django.db import models
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/__init__.py",
 
line 3, in 
from django.db.models.aggregates import *  # NOQA
^
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/aggregates.py",
 
line 5, in 
from django.db.models.expressions import Case, Func, Star, When
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
 
line 486, in 
class TemporalSubtraction(CombinedExpression):
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
 
line 487, in TemporalSubtraction
output_field = fields.DurationField()
   ^^
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/fields/__init__.py",
 
line 155, in __init__
if isinstance(choices, collections.Iterator):
   
AttributeError: module 'collections' has no attribute 'Iterator'

-- 
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/ce94bd02-d38d-464d-9d06-2fbd3d5e7340n%40googlegroups.com.


Django project website UX: call for help!

2024-02-03 Thread 'Niccolò Mineo' via Django users
Hello everyone,
at 20tab we just finished collaborating with the Django Software Foundation 
to improve the Django project website's accessibility and usability.

We now need you to help us understand how involved people are in the Django 
project and how much they care for good UX. Fill out this very short form 
and let us know! 

https://t.co/cWiMc6SJPB

Thank you to all of you who will take the time to respond - your input is 
of immense value to us.

Feel free to raise any questions here.

-- 
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/e56f58cc-e56e-4183-98e2-06a01a9c1160n%40googlegroups.com.


help

2023-12-22 Thread Abdoulaye SENE
hello i am using docker. after building, i see this mistake "ERROR: failed 
to solve: python:3.9-alpine3.13: failed to authorize: failed to fetch oauth 
token: unexpected status from GET request to h 
ttps://auth.docker.io/token?scope=repository%3Alibra"

-- 
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/c35b52d1-6717-4277-92eb-968bcb6ee751n%40googlegroups.com.


Re: Help with DRF error

2023-12-16 Thread Larry Martell
On Sat, Dec 16, 2023 at 1:10 PM Reddy Tintaya  wrote:

> Can't you just use
> workitem = serializers.PrimaryKeyRelatedField(
> queryset=WorkItem.objects.all())
> instead of workitem_id?
>

No because workitem_id is what is sent in the request.


>
> On Sat, Dec 16, 2023 at 10:00 AM Larry Martell 
> wrote:
>
>> I have a DRF API. It is throwing an error that I have not been able to
>> fix.
>>
>> Here is my view and serializer:
>>
>> class CreateNotations(CreateAPIView):
>> permission_classes = [IsAuthenticated]
>> serializer_class = NotationListSerializer
>>
>> def post(self, request, *args, **kwargs):
>> return super().post(request, *args, **kwargs)
>>
>> class NotationListSerializer(serializers.Serializer):
>> workitem_id =
>> serializers.PrimaryKeyRelatedField(queryset=WorkItem.objects.all(),
>> source="workitem")
>> notations = NotationSerializer(many=True)
>>
>> def create(self, validated_data):
>> workitem = validated_data["workitem"]
>>
>> IncompleteAnalysis.objects.filter(workitem=workitem).delete()
>>
>> data = []
>> for notation in validated_data["notations"]:
>> data.append({
>> 'workitem': workitem,
>> 'incomplete_analysis_reason': notation["reason"],
>> 'vessel_affected': notation["vessel"],
>> 'user': self.context['request'].user,
>> 'timestamp': datetime.now().isoformat()
>> })
>>
>> return
>> IncompleteAnalysis.objects.bulk_create([IncompleteAnalysis(**d) for d in
>> data])
>>
>> The body of the request received is:
>>
>> {'workitem_id': 244, 'notations': [{'reason_id": 4, 'vessel_id': 6}]}
>>
>> It fails with this:
>>
>> AttributeError: Got AttributeError when attempting to get a value for
>> field `workitem_id` on serializer `NotationListSerializer`.
>> The serializer field might be named incorrectly and not match any
>> attribute or key on the `list` instance.
>> Original exception text was: 'list' object has no attribute 'workitem'.
>>
>> Here is the stack trace:
>>
>> ERRORdjango.request:log.py:241 Internal Server Error: /api/notations/
>> Traceback (most recent call last):
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
>> line 446, in get_attribute
>> return get_attribute(instance, self.source_attrs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
>> line 96, in get_attribute
>> instance = getattr(instance, attr)
>> AttributeError: 'list' object has no attribute 'workitem'
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/exception.py",
>> line 56, in inner
>> response = get_response(request)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/base.py",
>> line 197, in _get_response
>> response = wrapped_callback(request, *callback_args,
>> **callback_kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/django/views/decorators/csrf.py",
>> line 55, in wrapped_view
>> return view_func(*args, **kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/django/views/generic/base.py",
>> line 103, in view
>> return self.dispatch(request, *args, **kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
>> line 509, in dispatch
>> response = self.handle_exception(exc)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
>> line 469, in handle_exception
>> self.raise_uncaught_exception(exc)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
>> line 480, in raise_uncaught_exception
>> raise exc
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
>> line 506, in dispatch
>> response = handler(request, *args, **kwargs)
>>   File "/inst/martell/EVServer/app/CAPgraph/createevapi/views.py", line
>> 1270, in post
>> return super().post(request, *args, **kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/generics.py",
>> line 190, in post
>> return self.create(request, *args, **kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/mixins.py",
>> line 20, in create
>> headers = self.get_success_headers(serializer.data)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
>> line 555, in data
>> ret = super().data
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
>> line 253, in data
>> self._data = self.to_representation(self.instance)
>>   File
>> 

Re: Help with DRF error

2023-12-16 Thread Reddy Tintaya
Can't you just use
workitem = serializers.PrimaryKeyRelatedField(
queryset=WorkItem.objects.all())
instead of workitem_id?

On Sat, Dec 16, 2023 at 10:00 AM Larry Martell 
wrote:

> I have a DRF API. It is throwing an error that I have not been able to fix.
>
> Here is my view and serializer:
>
> class CreateNotations(CreateAPIView):
> permission_classes = [IsAuthenticated]
> serializer_class = NotationListSerializer
>
> def post(self, request, *args, **kwargs):
> return super().post(request, *args, **kwargs)
>
> class NotationListSerializer(serializers.Serializer):
> workitem_id =
> serializers.PrimaryKeyRelatedField(queryset=WorkItem.objects.all(),
> source="workitem")
> notations = NotationSerializer(many=True)
>
> def create(self, validated_data):
> workitem = validated_data["workitem"]
>
> IncompleteAnalysis.objects.filter(workitem=workitem).delete()
>
> data = []
> for notation in validated_data["notations"]:
> data.append({
> 'workitem': workitem,
> 'incomplete_analysis_reason': notation["reason"],
> 'vessel_affected': notation["vessel"],
> 'user': self.context['request'].user,
> 'timestamp': datetime.now().isoformat()
> })
>
> return
> IncompleteAnalysis.objects.bulk_create([IncompleteAnalysis(**d) for d in
> data])
>
> The body of the request received is:
>
> {'workitem_id': 244, 'notations': [{'reason_id": 4, 'vessel_id': 6}]}
>
> It fails with this:
>
> AttributeError: Got AttributeError when attempting to get a value for
> field `workitem_id` on serializer `NotationListSerializer`.
> The serializer field might be named incorrectly and not match any
> attribute or key on the `list` instance.
> Original exception text was: 'list' object has no attribute 'workitem'.
>
> Here is the stack trace:
>
> ERRORdjango.request:log.py:241 Internal Server Error: /api/notations/
> Traceback (most recent call last):
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
> line 446, in get_attribute
> return get_attribute(instance, self.source_attrs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
> line 96, in get_attribute
> instance = getattr(instance, attr)
> AttributeError: 'list' object has no attribute 'workitem'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/exception.py",
> line 56, in inner
> response = get_response(request)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/base.py",
> line 197, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/django/views/decorators/csrf.py",
> line 55, in wrapped_view
> return view_func(*args, **kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/django/views/generic/base.py",
> line 103, in view
> return self.dispatch(request, *args, **kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
> line 509, in dispatch
> response = self.handle_exception(exc)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
> line 469, in handle_exception
> self.raise_uncaught_exception(exc)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
> line 480, in raise_uncaught_exception
> raise exc
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
> line 506, in dispatch
> response = handler(request, *args, **kwargs)
>   File "/inst/martell/EVServer/app/CAPgraph/createevapi/views.py", line
> 1270, in post
> return super().post(request, *args, **kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/generics.py",
> line 190, in post
> return self.create(request, *args, **kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/mixins.py",
> line 20, in create
> headers = self.get_success_headers(serializer.data)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
> line 555, in data
> ret = super().data
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
> line 253, in data
> self._data = self.to_representation(self.instance)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
> line 509, in to_representation
> attribute = field.get_attribute(instance)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/relations.py",
> line 190, in get_attribute
> return 

Help with DRF error

2023-12-16 Thread Larry Martell
I have a DRF API. It is throwing an error that I have not been able to fix.

Here is my view and serializer:

class CreateNotations(CreateAPIView):
permission_classes = [IsAuthenticated]
serializer_class = NotationListSerializer

def post(self, request, *args, **kwargs):
return super().post(request, *args, **kwargs)

class NotationListSerializer(serializers.Serializer):
workitem_id =
serializers.PrimaryKeyRelatedField(queryset=WorkItem.objects.all(),
source="workitem")
notations = NotationSerializer(many=True)

def create(self, validated_data):
workitem = validated_data["workitem"]

IncompleteAnalysis.objects.filter(workitem=workitem).delete()

data = []
for notation in validated_data["notations"]:
data.append({
'workitem': workitem,
'incomplete_analysis_reason': notation["reason"],
'vessel_affected': notation["vessel"],
'user': self.context['request'].user,
'timestamp': datetime.now().isoformat()
})

return
IncompleteAnalysis.objects.bulk_create([IncompleteAnalysis(**d) for d in
data])

The body of the request received is:

{'workitem_id': 244, 'notations': [{'reason_id": 4, 'vessel_id': 6}]}

It fails with this:

AttributeError: Got AttributeError when attempting to get a value for field
`workitem_id` on serializer `NotationListSerializer`.
The serializer field might be named incorrectly and not match any attribute
or key on the `list` instance.
Original exception text was: 'list' object has no attribute 'workitem'.

Here is the stack trace:

ERRORdjango.request:log.py:241 Internal Server Error: /api/notations/
Traceback (most recent call last):
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
line 446, in get_attribute
return get_attribute(instance, self.source_attrs)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
line 96, in get_attribute
instance = getattr(instance, attr)
AttributeError: 'list' object has no attribute 'workitem'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/exception.py",
line 56, in inner
response = get_response(request)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/base.py",
line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/django/views/decorators/csrf.py",
line 55, in wrapped_view
return view_func(*args, **kwargs)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/django/views/generic/base.py",
line 103, in view
return self.dispatch(request, *args, **kwargs)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
line 509, in dispatch
response = self.handle_exception(exc)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
line 469, in handle_exception
self.raise_uncaught_exception(exc)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
line 480, in raise_uncaught_exception
raise exc
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
line 506, in dispatch
response = handler(request, *args, **kwargs)
  File "/inst/martell/EVServer/app/CAPgraph/createevapi/views.py", line
1270, in post
return super().post(request, *args, **kwargs)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/generics.py",
line 190, in post
return self.create(request, *args, **kwargs)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/mixins.py",
line 20, in create
headers = self.get_success_headers(serializer.data)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
line 555, in data
ret = super().data
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
line 253, in data
self._data = self.to_representation(self.instance)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
line 509, in to_representation
attribute = field.get_attribute(instance)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/relations.py",
line 190, in get_attribute
return super().get_attribute(instance)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
line 479, in get_attribute
raise type(exc)(msg)
AttributeError: Got AttributeError when attempting to get a value for field
`workitem_id` on serializer `NotationListSerializer`.
The serializer field might be named incorrectly and not match any attribute
or key on the `list` instance.
Original 

help

2023-12-15 Thread Abdoulaye SENE
hello forks! i need your help. in my codes i see "extend_schema_view" is 
not defined. so i see that it is not defined but i do not know in which 
package it is.
@extend_schema_view( 
list=extend_schema(
parameters=[
OpenApiParameter(
'assigned_only',
OpenApiTypes.INT, enum=[0, 1],
description='Filter by items assigned to recipes',
)
]
)
)

-- 
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/dc7c29ca-76b4-4bf7-907c-f1db1a1a6bd9n%40googlegroups.com.


HELP needed in a service-worker in a react django project

2023-10-13 Thread Tejas Vaij
Hello there, 
I am working on a project where I want to post a blob recorded from 
RecordRTC to my django server from the service worker but I am not able to 
get whats wrong with it. Can anyone please help me understand what wrong am 
I going.

Here is the link of stackoverflow question of mine:
https://stackoverflow.com/questions/77280149/not-able-to-upload-file-to-django-server-from-service-worker-in-react-js

-- 
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/1b095c71-73c9-485d-ada9-20f395bef0c6n%40googlegroups.com.


Re: help me

2023-09-25 Thread Migui Galan
you can try exploring vercel. they can host django website.
other than that, try pythonanywhere. best site for hosting django

On Sun, Sep 24, 2023 at 9:52 AM FIRDOUS BHAT  wrote:

> https://blog.back4app.com/top-10-heroku-alternatives/
>
>
>
>
> On Sun, Sep 24, 2023 at 12:14 AM Akoo Rahimi 
> wrote:
>
>> Hello friends
>>
>> Can you introduce me some sites similar to Heroku?
>>
>> I just started Django and I want to test my projects on the global server.
>>
>> --
>> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CAFB6YJrmzsa8ReiikRC2q3vs8VCkpNQZ0mrvqPLLvmrzaq8FiQ%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/CAKKJMPOmT66f9dgm%2B69Sqq7b8LLmQw6yFpB4vPSuQheWfHtV4A%40mail.gmail.com.


Re: help me

2023-09-23 Thread FIRDOUS BHAT
https://blog.back4app.com/top-10-heroku-alternatives/




On Sun, Sep 24, 2023 at 12:14 AM Akoo Rahimi 
wrote:

> Hello friends
>
> Can you introduce me some sites similar to Heroku?
>
> I just started Django and I want to test my projects on the global server.
>
> --
> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CAFB6YJrmzsa8ReiikRC2q3vs8VCkpNQZ0mrvqPLLvmrzaq8FiQ%40mail.gmail.com.


Re: help me

2023-09-23 Thread ASAMOAH EMMANUEL
Try fly.io

On Sat, Sep 23, 2023 at 7:17 PM ALINDA Fortunate 
wrote:

> You can as well try render
>
> +256774339676
>
>  "If you want to live a happy life, tie it to a goal, not to people or
> things."
>
> A graduate of Bachelors Degree of Science in Computer Science of Gulu
> University.
>
> @FortunateAlinda
> Passionate about Python Development
> And Computer related Dynamics
>
> On Sat, Sep 23, 2023, 21:44 Akoo Rahimi  wrote:
>
>> Hello friends
>>
>> Can you introduce me some sites similar to Heroku?
>>
>> I just started Django and I want to test my projects on the global server.
>>
>> --
>> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CAPifpCt4TpYpHY%2B2uV5yV2bEpUYrn6q5wYWftg6PG9AdOD5e6w%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/CABFHQYz4Z5uS1R%2BpzmyE_vQVv%2Bezv264f8drZi9s2xCXAgG0qQ%40mail.gmail.com.


Re: help me

2023-09-23 Thread ALINDA Fortunate
You can as well try render

+256774339676

 "If you want to live a happy life, tie it to a goal, not to people or
things."

A graduate of Bachelors Degree of Science in Computer Science of Gulu
University.

@FortunateAlinda
Passionate about Python Development
And Computer related Dynamics

On Sat, Sep 23, 2023, 21:44 Akoo Rahimi  wrote:

> Hello friends
>
> Can you introduce me some sites similar to Heroku?
>
> I just started Django and I want to test my projects on the global server.
>
> --
> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CAPifpCt4TpYpHY%2B2uV5yV2bEpUYrn6q5wYWftg6PG9AdOD5e6w%40mail.gmail.com.


Re: help me

2023-09-23 Thread Miracle
Kindly use this link

https://www.makeuseof.com/heroku-alternatives-free-full-stack-hosting/

On Sat, 23 Sept 2023, 7:44 pm Akoo Rahimi, 
wrote:

> Hello friends
>
> Can you introduce me some sites similar to Heroku?
>
> I just started Django and I want to test my projects on the global server.
>
> --
> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CADZv-jBhWPr%3DZaiQ9C2zpA6CVsXZ3jY8LWEactd8-mmihqXLBg%40mail.gmail.com.


help me

2023-09-23 Thread Akoo Rahimi
Hello friends

Can you introduce me some sites similar to Heroku?

I just started Django and I want to test my projects on the global server.

-- 
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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%40googlegroups.com.


django form validation error massage not showing. please help me out

2023-09-15 Thread Mohammad Shahidullah
models.py
class Position(models.Model):
title = models.CharField(max_length=50)

def __str__(self):
return self.title

class Department(models.Model):
title = models.CharField(max_length=50)

def __str__(self):
return self.title


class Employee(models.Model):
fullname = models.CharField(max_length=100)
emp_code = models.CharField(max_length=6)
mobile= models.CharField(max_length=11)
email = models.EmailField(max_length=25)
position= models.ForeignKey(Position,on_delete=models.CASCADE)
Department = models.ForeignKey(Department, on_delete=models.CASCADE)
password_first = models.CharField(max_length=25)
password_again = models.CharField(max_length=25)

def __str__ (self):
return self.fullname

forms.py
User = get_user_model()

class EmployeeForm(forms.ModelForm):

class Meta:
model = Employee
fields = ('fullname','mobile','emp_code','position', 'Department',
'email', 'password_first', 'password_again')
labels = {
'fullname':'Full Name',
'emp_code':'Employee Code',
'password_first': 'Password',
'password_again': 'Confirm Password',
}

widgets = {
'password_first': forms.PasswordInput(),
'password_again' : forms.PasswordInput(),
}


def __init__(self, *args, **kwargs):
super(EmployeeForm,self).__init__(*args, **kwargs)
self.fields['position'].empty_label = "Select"
self.fields['Department'].empty_label = "Select"



def clean_username(self):
username = self.cleaned_data.get('emp_code')
qs = User.objects.filter(username=username)
if qs.exists():
raise forms.ValidationError('username already exists')
return username

def clean(self):
cleaned_data = self.cleaned_data
password_first = self.cleaned_data.get('password_first')
password_again = self.cleaned_data.get('password_again')
if password_first and password_again and password_first != 
password_again:
raise forms.ValidationError("Passwords din't match")
return cleaned_data

def clean_email(self):
email_address = self.cleaned_data.get('email')
qs = User.objects.filter(email=email_address)
if qs.exists():
raise forms.ValidationError("This email_id already registered")
return email_address

views.py
def employee_form(request, id=0):
if request.method == "GET":
if id == 0:
form = EmployeeForm()
else:
employee = Employee.objects.get(pk=id)
form = EmployeeForm(instance=employee)
return render(request, "users/employee_form.html", {'form': form})
else:
if id == 0:
form = EmployeeForm(request.POST)
else:
employee = Employee.objects.get(pk=id)
form = EmployeeForm(request.POST,instance= employee)
if form.is_valid():
form.save()
return redirect('/list')


employee_form.html


{% block content %}


{% csrf_token %}
{{form.fullname|as_crispy_field}}
{{form.mobile|as_crispy_field}}
{{form.email|as_crispy_field}}



{{form.emp_code|as_crispy_field}}


{{form.position|as_crispy_field}}


{{form.Department|as_crispy_field}}





{{form.password_first|as_crispy_field}}


{{form.password_again|as_crispy_field}}






<
i class="fas fa-database">
Submit



 Back to list





{% if form.error %}
{% for field in form %}
{% for error in field.error %}
 {{ errors }} 
{% endfor %}
{% endfor %}

{% for error in form.non_field_error %}
 {{ error }} 
{% endfor %}
{% endif %}




{% endblock content %}



-- 
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/6ba949b0-0fc4-443c-ba27-136754fbd1f5n%40googlegroups.com.


Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-09-04 Thread Michal Plsek
Just register post_update signal with the Model you want to "watch" to be
created/updated, and in optimal case send message to some asynchronous
queue, which will take message 15 minutes late and processes it by creating
Notification object. For example async queue = aws sqs, they even support
15min delay you want.

Dne čt 31. 8. 2023 22:11 uživatel Andréas Kühne 
napsal:

> First of all - notification - what do you mean by notification?
>
> If you mean that the user should be notified in the instance when someone
> creates / updates / deletes your models - you will need to have either
> server side events or websockets to communicate with the frontend. You
> could also poll the server (for example every 5 minutes) to check for new
> messages. These solutions would require that you have some javascript on
> the frontend.
>
> To get this working on the backend - you would then need some sort of
> changes in the save method to send the notifications to the frontend. This
> could be as simple as creating a Notification model and then just creating
> a notification every time you update a model.
>
> Regards,
>
> Andréas
>
>
> Den tis 22 aug. 2023 kl 16:02 skrev Byansi Samuel <
> samuelbyans...@gmail.com>:
>
>> My views
>> from django.shortcuts import render def auto_notification(request):
>> return render (request, "user/dashboard.html")
>>
>> My models
>> from django.db import models from django.contrib.auth.models import User
>>
>> #articles model
>>
>> class Articles(models.Model):
>> title = models.CharField(max_length=300) date= models.DateField()
>> author=models.ForeignKey(User, on_delete=models.CASCADE)
>> body=models.TextField()
>>
>> def __str__(self) -> str:
>> return self.title
>>
>> #games model
>>
>> GAME_TYPE=( ("action", "action"), ("adventure", "adventure"), ("racing",
>> "racing"), ("puzzle", "puzzle"), )
>>
>> MOV_TYPE=( ("action", "action"), ("adventure", "adventure"), ("sci-fi",
>> "sci-fi"), ("horror", "horror"), ("drama", "drama"), )
>>
>> GAME_OS=( ("Windows", "Windows"), ("Android", "Android"), )
>>
>> class Games(models.Model): name=models.CharField(max_length=50)
>> type=models.CharField(max_length=40, choices=GAME_TYPE)
>> os=models.CharField(max_length=15, choices=GAME_OS) img=models.ImageField()
>> developer=models.CharField(max_length=50)
>> version=models.CharField(max_length=10)
>> ratings=models.CharField(max_length=10) description=models.TextField()
>>
>> def __str__(self) -> str:
>> return self.name class
>>
>> Movies(models.Model): name=models.CharField(max_length=50)
>> type=models.CharField(max_length=40, choices=MOV_TYPE)
>> description=models.TextField() released=models.DateField()
>>
>> def __str__(self) -> str:
>> return self.name
>>
>> I have three models below, but l like to create a Notification System to
>> send a message to a User whenever ;
>> 1. An object is created in all those models
>> 2. An object is modified in all those models
>>
>> And l would like to add trick that it sends the Notification Message
>> after 15 minutes of publiction or creation.
>>
>> And I would like to pass the following data if available in the object ;
>> 1. the Name of the Object,
>> 2. the Image of the Object, and
>> 3. the type of the Object.
>>
>> Lastly I would like to add a :
>> 1. Notification DELETE function, that gives User a way to delete that
>> Message , not to appear in his or notification section again.
>>
>> 2. Mark as Read function, that changes the Massage Div Color
>>
>> 3. A notification Barge that displays the UNREAD Messages.
>>
>> Am requesting anyone to help me Because Am stuck , I have no where to
>> Start from. I will be on waiting your guidelines.
>>
>> --
>> 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/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com?utm_m

Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-31 Thread Andréas Kühne
First of all - notification - what do you mean by notification?

If you mean that the user should be notified in the instance when someone
creates / updates / deletes your models - you will need to have either
server side events or websockets to communicate with the frontend. You
could also poll the server (for example every 5 minutes) to check for new
messages. These solutions would require that you have some javascript on
the frontend.

To get this working on the backend - you would then need some sort of
changes in the save method to send the notifications to the frontend. This
could be as simple as creating a Notification model and then just creating
a notification every time you update a model.

Regards,

Andréas


Den tis 22 aug. 2023 kl 16:02 skrev Byansi Samuel :

> My views
> from django.shortcuts import render def auto_notification(request): return
> render (request, "user/dashboard.html")
>
> My models
> from django.db import models from django.contrib.auth.models import User
>
> #articles model
>
> class Articles(models.Model):
> title = models.CharField(max_length=300) date= models.DateField()
> author=models.ForeignKey(User, on_delete=models.CASCADE)
> body=models.TextField()
>
> def __str__(self) -> str:
> return self.title
>
> #games model
>
> GAME_TYPE=( ("action", "action"), ("adventure", "adventure"), ("racing",
> "racing"), ("puzzle", "puzzle"), )
>
> MOV_TYPE=( ("action", "action"), ("adventure", "adventure"), ("sci-fi",
> "sci-fi"), ("horror", "horror"), ("drama", "drama"), )
>
> GAME_OS=( ("Windows", "Windows"), ("Android", "Android"), )
>
> class Games(models.Model): name=models.CharField(max_length=50)
> type=models.CharField(max_length=40, choices=GAME_TYPE)
> os=models.CharField(max_length=15, choices=GAME_OS) img=models.ImageField()
> developer=models.CharField(max_length=50)
> version=models.CharField(max_length=10)
> ratings=models.CharField(max_length=10) description=models.TextField()
>
> def __str__(self) -> str:
> return self.name class
>
> Movies(models.Model): name=models.CharField(max_length=50)
> type=models.CharField(max_length=40, choices=MOV_TYPE)
> description=models.TextField() released=models.DateField()
>
> def __str__(self) -> str:
> return self.name
>
> I have three models below, but l like to create a Notification System to
> send a message to a User whenever ;
> 1. An object is created in all those models
> 2. An object is modified in all those models
>
> And l would like to add trick that it sends the Notification Message after
> 15 minutes of publiction or creation.
>
> And I would like to pass the following data if available in the object ;
> 1. the Name of the Object,
> 2. the Image of the Object, and
> 3. the type of the Object.
>
> Lastly I would like to add a :
> 1. Notification DELETE function, that gives User a way to delete that
> Message , not to appear in his or notification section again.
>
> 2. Mark as Read function, that changes the Massage Div Color
>
> 3. A notification Barge that displays the UNREAD Messages.
>
> Am requesting anyone to help me Because Am stuck , I have no where to
> Start from. I will be on waiting your guidelines.
>
> --
> 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/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAK4qSCdBb5kP_eF4_CK4F%2B3ibP_PvmgJetrGJs4a7PBZfxSYGg%40mail.gmail.com.


errors am getting during running my project any help

2023-08-25 Thread Steven maithya
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> python manage.py 
runserver
C:\Python311\python.exe: can't open file 
'C:\\Users\\steve.musyoka\\Desktop\\CRM-master\\manage.py': [Errno 2] No 
such file or directory
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> cd
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> ls

-- 
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/2987c90d-d8cd-4710-9b13-a276802a088cn%40googlegroups.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread Peter Benjamin Ani
Where are you hosting?

On Thu, 24 Aug 2023 at 22:37, ALINDA Fortunate 
wrote:

> Hello family some help i have this error
>
> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's
> installed and available on your PYTHONPATH environment variable? Did you
> forget to activate a virtual environment?
> Aug 25 12:28:30 AM  ==> Build failed 
>
> Yet this is my requirements file and django is installed
> asgiref==3.6.0
> dj-database-url==2.1.0
> Django==4.2.1
> gunicorn==21.2.0
> packaging==23.1
> psycopg2==2.9.7
> python-dotenv==1.0.0
> sqlparse==0.4.4
> typing_extensions==4.7.1
> tzdata==2023.3
> whitenoise==6.5.0
>
>
> Kindly help me.
> --
>
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAPxt_2W%2Bdmt%2BjxXEY%3Dd9MbBCcZ9Dj1VX7KMQiiSiiT%3DgiBbt2A%40mail.gmail.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread ivan harold

Try following these

https://www.freecodecamp.org/news/deploying-a-django-app-to-render/
On Friday, August 25, 2023 at 9:00:08 PM UTC+8 Abdulrahman Abbas wrote:

> Are you using virtual environment?
>
> On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate  
> wrote:
>
>> Hello family some help i have this error
>>
>> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure 
>> it's installed and available on your PYTHONPATH environment variable? Did 
>> you forget to activate a virtual environment?
>> Aug 25 12:28:30 AM  ==> Build failed 
>>
>> Yet this is my requirements file and django is installed
>> asgiref==3.6.0
>> dj-database-url==2.1.0
>> Django==4.2.1
>> gunicorn==21.2.0
>> packaging==23.1
>> psycopg2==2.9.7
>> python-dotenv==1.0.0
>> sqlparse==0.4.4
>> typing_extensions==4.7.1
>> tzdata==2023.3
>> whitenoise==6.5.0
>>
>>
>> Kindly help me.
>> --
>>
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041 
>> <+256%20702%20910041>
>> Kagadi.
>>
>> -- 
>> 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/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/2dda8d5e-4f1b-4784-acaa-a44ed555e0cen%40googlegroups.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread ivan harold

https://www.freecodecamp.org/news/deploying-a-django-app-to-render/
On Friday, August 25, 2023 at 9:00:08 PM UTC+8 Abdulrahman Abbas wrote:

> Are you using virtual environment?
>
> On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate  
> wrote:
>
>> Hello family some help i have this error
>>
>> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure 
>> it's installed and available on your PYTHONPATH environment variable? Did 
>> you forget to activate a virtual environment?
>> Aug 25 12:28:30 AM  ==> Build failed 
>>
>> Yet this is my requirements file and django is installed
>> asgiref==3.6.0
>> dj-database-url==2.1.0
>> Django==4.2.1
>> gunicorn==21.2.0
>> packaging==23.1
>> psycopg2==2.9.7
>> python-dotenv==1.0.0
>> sqlparse==0.4.4
>> typing_extensions==4.7.1
>> tzdata==2023.3
>> whitenoise==6.5.0
>>
>>
>> Kindly help me.
>> --
>>
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041 
>> <+256%20702%20910041>
>> Kagadi.
>>
>> -- 
>> 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/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/e95a3141-fa1c-4247-86fb-16b8886beeccn%40googlegroups.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread Abdulrahman Abbas
Are you using virtual environment?

On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate 
wrote:

> Hello family some help i have this error
>
> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's
> installed and available on your PYTHONPATH environment variable? Did you
> forget to activate a virtual environment?
> Aug 25 12:28:30 AM  ==> Build failed 
>
> Yet this is my requirements file and django is installed
> asgiref==3.6.0
> dj-database-url==2.1.0
> Django==4.2.1
> gunicorn==21.2.0
> packaging==23.1
> psycopg2==2.9.7
> python-dotenv==1.0.0
> sqlparse==0.4.4
> typing_extensions==4.7.1
> tzdata==2023.3
> whitenoise==6.5.0
>
>
> Kindly help me.
> --
>
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAGGqo0PSZ%2BEmttU3KkZ14EidSxPzM0JSo4Wp6m30FCRRRj8Htw%40mail.gmail.com.


Help on Error while deploying a django app on render.

2023-08-24 Thread ALINDA Fortunate
Hello family some help i have this error

Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's
installed and available on your PYTHONPATH environment variable? Did you
forget to activate a virtual environment?
Aug 25 12:28:30 AM  ==> Build failed 

Yet this is my requirements file and django is installed
asgiref==3.6.0
dj-database-url==2.1.0
Django==4.2.1
gunicorn==21.2.0
packaging==23.1
psycopg2==2.9.7
python-dotenv==1.0.0
sqlparse==0.4.4
typing_extensions==4.7.1
tzdata==2023.3
whitenoise==6.5.0


Kindly help me.
--

ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
alindafortuna...@gmail.com .
+256 774339676 / +256 702910041
Kagadi.

-- 
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/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com.


Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-23 Thread ivan harold
https://stackoverflow.com/questions/14543824/django-get-notified-of-all-changes-in-database

check this one out, you might find some hints or answers.

On Tuesday, August 22, 2023 at 9:03:12 AM UTC-5 Byansi Samuel wrote:

> My views 
> from django.shortcuts import render def auto_notification(request): return 
> render (request, "user/dashboard.html")
>
> My models 
> from django.db import models from django.contrib.auth.models import User
>
> #articles model 
>
> class Articles(models.Model): 
> title = models.CharField(max_length=300) date= models.DateField() 
> author=models.ForeignKey(User, on_delete=models.CASCADE) 
> body=models.TextField() 
>
> def __str__(self) -> str:
> return self.title 
>
> #games model
>
> GAME_TYPE=( ("action", "action"), ("adventure", "adventure"), ("racing", 
> "racing"), ("puzzle", "puzzle"), )
>
> MOV_TYPE=( ("action", "action"), ("adventure", "adventure"), ("sci-fi", 
> "sci-fi"), ("horror", "horror"), ("drama", "drama"), ) 
>
> GAME_OS=( ("Windows", "Windows"), ("Android", "Android"), ) 
>
> class Games(models.Model): name=models.CharField(max_length=50) 
> type=models.CharField(max_length=40, choices=GAME_TYPE) 
> os=models.CharField(max_length=15, choices=GAME_OS) img=models.ImageField() 
> developer=models.CharField(max_length=50) 
> version=models.CharField(max_length=10) 
> ratings=models.CharField(max_length=10) description=models.TextField() 
>
> def __str__(self) -> str: 
> return self.name class
>
> Movies(models.Model): name=models.CharField(max_length=50) 
> type=models.CharField(max_length=40, choices=MOV_TYPE) 
> description=models.TextField() released=models.DateField() 
>
> def __str__(self) -> str: 
> return self.name 
>
> I have three models below, but l like to create a Notification System to 
> send a message to a User whenever ; 
> 1. An object is created in all those models 
> 2. An object is modified in all those models 
>
> And l would like to add trick that it sends the Notification Message after 
> 15 minutes of publiction or creation.
>
> And I would like to pass the following data if available in the object ;
> 1. the Name of the Object,
> 2. the Image of the Object, and 
> 3. the type of the Object. 
>
> Lastly I would like to add a : 
> 1. Notification DELETE function, that gives User a way to delete that 
> Message , not to appear in his or notification section again. 
>
> 2. Mark as Read function, that changes the Massage Div Color 
>
> 3. A notification Barge that displays the UNREAD Messages. 
>
> Am requesting anyone to help me Because Am stuck , I have no where to 
> Start from. I will be on waiting your guidelines. 
>
>

-- 
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/aecadf6d-3bc4-4e9c-a1e7-5b43003ee737n%40googlegroups.com.


ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-22 Thread Byansi Samuel
My views
from django.shortcuts import render def auto_notification(request): return
render (request, "user/dashboard.html")

My models
from django.db import models from django.contrib.auth.models import User

#articles model

class Articles(models.Model):
title = models.CharField(max_length=300) date= models.DateField()
author=models.ForeignKey(User, on_delete=models.CASCADE)
body=models.TextField()

def __str__(self) -> str:
return self.title

#games model

GAME_TYPE=( ("action", "action"), ("adventure", "adventure"), ("racing",
"racing"), ("puzzle", "puzzle"), )

MOV_TYPE=( ("action", "action"), ("adventure", "adventure"), ("sci-fi",
"sci-fi"), ("horror", "horror"), ("drama", "drama"), )

GAME_OS=( ("Windows", "Windows"), ("Android", "Android"), )

class Games(models.Model): name=models.CharField(max_length=50)
type=models.CharField(max_length=40, choices=GAME_TYPE)
os=models.CharField(max_length=15, choices=GAME_OS) img=models.ImageField()
developer=models.CharField(max_length=50)
version=models.CharField(max_length=10)
ratings=models.CharField(max_length=10) description=models.TextField()

def __str__(self) -> str:
return self.name class

Movies(models.Model): name=models.CharField(max_length=50)
type=models.CharField(max_length=40, choices=MOV_TYPE)
description=models.TextField() released=models.DateField()

def __str__(self) -> str:
return self.name

I have three models below, but l like to create a Notification System to
send a message to a User whenever ;
1. An object is created in all those models
2. An object is modified in all those models

And l would like to add trick that it sends the Notification Message after
15 minutes of publiction or creation.

And I would like to pass the following data if available in the object ;
1. the Name of the Object,
2. the Image of the Object, and
3. the type of the Object.

Lastly I would like to add a :
1. Notification DELETE function, that gives User a way to delete that
Message , not to appear in his or notification section again.

2. Mark as Read function, that changes the Massage Div Color

3. A notification Barge that displays the UNREAD Messages.

Am requesting anyone to help me Because Am stuck , I have no where to Start
from. I will be on waiting your guidelines.

-- 
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/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com.


Re: hello forks, i need help

2023-08-17 Thread ivan harold
https://www.w3schools.com/django/django_admin_include_members.php
explore the site maybe what you are ooking for is in there 
check this one. 

On Thursday, August 17, 2023 at 11:53:00 AM UTC-5 Abdoulaye SENE wrote:

> the problem is i don't see users  in admin.i only see groups. do not know 
> why.
>
>
> Le jeu. 17 août 2023 à 16:48, Abdoulaye SENE  a 
> écrit :
>
>> thanks a lot
>>
>>
>> Le jeu. 17 août 2023 à 16:38, ivan harold  a 
>> écrit :
>>
>>> https://www.w3schools.com/django/django_admin_create_user.php 
>>> check this one out.
>>>
>>> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>>>
 i have created a group named adminis. how to create users in the group 
 using django admin

 -- 
>>> 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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/5a1d8fa0-8eeb-4502-a9dc-b6b3abbfe3f0n%40googlegroups.com.


Re: hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
the problem is i don't see users  in admin.i only see groups. do not know
why.


Le jeu. 17 août 2023 à 16:48, Abdoulaye SENE 
a écrit :

> thanks a lot
>
>
> Le jeu. 17 août 2023 à 16:38, ivan harold  a
> écrit :
>
>> https://www.w3schools.com/django/django_admin_create_user.php
>> check this one out.
>>
>> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>>
>>> i have created a group named adminis. how to create users in the group
>>> using django admin
>>>
>>> --
>> 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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/CAK9RMT3MKx9FZ7uwUwLndMgEoPYb3W8a7Otn0zTGUGWaK9G88w%40mail.gmail.com.


Re: hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
thanks a lot


Le jeu. 17 août 2023 à 16:38, ivan harold  a
écrit :

> https://www.w3schools.com/django/django_admin_create_user.php
> check this one out.
>
> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>
>> i have created a group named adminis. how to create users in the group
>> using django admin
>>
>> --
> 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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/CAK9RMT2DRKUkiVUufEzcya%3Dh91%2BMfQuQS%2BLQhcy5J2XTG406Sw%40mail.gmail.com.


Re: hello forks, i need help

2023-08-17 Thread ivan harold
https://www.w3schools.com/django/django_admin_create_user.php 
check this one out.

On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:

> i have created a group named adminis. how to create users in the group 
> using django admin
>
>

-- 
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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%40googlegroups.com.


hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
i have created a group named adminis. how to create users in the group 
using django admin

-- 
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/45e78c82-e392-4a3e-83ec-a0e2d7189f3fn%40googlegroups.com.


Re: final project in django - help

2023-08-16 Thread Migui Galan
im glad to help, whats the issue you are facing? you can send me a gmeet
link for the meeting

On Wed, Aug 16, 2023 at 11:31 PM kipkoech chesir 
wrote:

> yes, we can, just clarify issues and problems.
>
>
> On Wednesday, August 9, 2023 at 7:23:27 PM UTC+3 ivan harold wrote:
>
>> what help do you need?
>> Can you give any specifics so we can understand?
>>
>> On Sunday, July 16, 2023 at 10:40:09 PM UTC+8 Jun Say wrote:
>>
>>>
>>>
>>> On Sun, Jul 16, 2023 at 9:32 PM Jun Say  wrote:
>>>
>>>> Let me try.
>>>>
>>>> On Sun, Jul 16, 2023 at 6:28 AM Brian Carey  wrote:
>>>>
>>>>> A little more information please. What can't you do and what errors do
>>>>> you get?
>>>>>
>>>>> Get BlueMail for Android <https://bluemail.me>
>>>>> On Jul 16, 2023, at 03:47, Alexandru - Gabriel Ionicescu <
>>>>> ionicescu.ale...@gmail.com> wrote:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> who can help me with the final project in django? in a week I have to
>>>>>> hand it over and I got into trouble with it. I can't access github.
>>>>>> Please help me.
>>>>>>
>>>>>> Tnx,
>>>>>> Alex
>>>>>>
>>>>>> --
>>>>> 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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
> 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/6f0ba0af-eddf-4dc4-b349-17f338cb13abn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6f0ba0af-eddf-4dc4-b349-17f338cb13abn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAKKJMPN_J%2BRXEG3rBcBsgFqzq8-KSEqb-6Y3oYk0Cjvm6B9gkg%40mail.gmail.com.


Re: final project in django - help

2023-08-16 Thread kipkoech chesir
yes, we can, just clarify issues and problems.


On Wednesday, August 9, 2023 at 7:23:27 PM UTC+3 ivan harold wrote:

> what help do you need?
> Can you give any specifics so we can understand?
>
> On Sunday, July 16, 2023 at 10:40:09 PM UTC+8 Jun Say wrote:
>
>>
>>
>> On Sun, Jul 16, 2023 at 9:32 PM Jun Say  wrote:
>>
>>> Let me try.
>>>
>>> On Sun, Jul 16, 2023 at 6:28 AM Brian Carey  wrote:
>>>
>>>> A little more information please. What can't you do and what errors do 
>>>> you get?
>>>>
>>>> Get BlueMail for Android <https://bluemail.me> 
>>>> On Jul 16, 2023, at 03:47, Alexandru - Gabriel Ionicescu <
>>>> ionicescu.ale...@gmail.com> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> who can help me with the final project in django? in a week I have to 
>>>>> hand it over and I got into trouble with it. I can't access github.
>>>>> Please help me.
>>>>>
>>>>> Tnx,
>>>>> Alex
>>>>>
>>>>> -- 
>>>> 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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>

-- 
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/6f0ba0af-eddf-4dc4-b349-17f338cb13abn%40googlegroups.com.


Re: how to solve please help me

2023-08-10 Thread Kani Sbt
i solved that , i deleted all the databases and makemigrations and migrate
and all was done good

On Thu, 10 Aug 2023 at 18:12, Mz Gz  wrote:

> Maybe you referenced another model in your model and the referenced model
> is no more there or its name changed
>
> On Thu, 10 Aug 2023, 2:10 pm Kani Sbt,  wrote:
>
>> django.db.migrations.exceptions.InconsistentMigrationHistory: Migration
>> admin.0001_initial is applied before its dependency lottyapp.0001_initial
>> on database 'default'.
>>
>> --
>> 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/a80ac299-116f-473d-905f-cbc7943513cen%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/CAHV4E-cVm62sm_fjKMeLi0J-U9qaTyM6OSNA94%3D6TyqrppvWtw%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/CAKJFrTQY3Yy_h74_dJ54wHQtxtRRMksFM3VppaGY3SjxRrXdHQ%40mail.gmail.com.


Re: how to solve please help me

2023-08-10 Thread Mz Gz
Maybe you referenced another model in your model and the referenced model
is no more there or its name changed

On Thu, 10 Aug 2023, 2:10 pm Kani Sbt,  wrote:

> django.db.migrations.exceptions.InconsistentMigrationHistory: Migration
> admin.0001_initial is applied before its dependency lottyapp.0001_initial
> on database 'default'.
>
> --
> 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/a80ac299-116f-473d-905f-cbc7943513cen%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/CAHV4E-cVm62sm_fjKMeLi0J-U9qaTyM6OSNA94%3D6TyqrppvWtw%40mail.gmail.com.


how to solve please help me

2023-08-10 Thread Kani Sbt
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration 
admin.0001_initial is applied before its dependency lottyapp.0001_initial 
on database 'default'.

-- 
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/a80ac299-116f-473d-905f-cbc7943513cen%40googlegroups.com.


Re: any any help me to solve below error in my django project

2023-08-07 Thread Brian Gitau
change the naming of the urls like for the login from "login" to something
like "login_page"  because you are causing a clash in the views.py code
since you are importing login and your url name is the same rename the
logout too

hope that helps


On Mon, Aug 7, 2023 at 2:40 PM AKHIL KORE  wrote:

> I got the error in my below existings django files. Please solve this
> error and check all below files code.
>
> File "C:\django2pm\myvenv\lib\site-packages\django\urls\resolvers.py",
> line 725, in url_patterns
>   raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
> django.core.exceptions.ImproperlyConfigured: The included URLconf
> 'registration1.urls' does not appear to have any patterns in it. If you see
> the 'urlpatterns' variable with valid patterns in the file then the issue
> is probably caused by a circular import.
>
> registration1/settings.py
> 
> from pathlib import Path
>
> # Build paths inside the project like this: BASE_DIR / 'subdir'.
> BASE_DIR = Path(__file__).resolve().parent.parent
>
>
> # Quick-start development settings - unsuitable for production
> # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
>
> # SECURITY WARNING: keep the secret key used in production secret!
> SECRET_KEY =
> 'django-insecure-bz1vja=h9vcnl_=j!-1*+t(j(fn!qzzx5wgy_nu_f-i5c%t'
>
> # SECURITY WARNING: don't run with debug turned on in production!
> DEBUG = True
>
> ALLOWED_HOSTS = []
>
> # Application definition
>
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'app1',
> 'crispy_forms',
> 'crispy_bootstrap5',
> 'rest_framework',
> ]
>
> MIDDLEWARE = [
> 'django.middleware.security.SecurityMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> ]
>
> ROOT_URLCONF = 'registration1.urls'
>
> TEMPLATES = [
> {
> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
> 'DIRS': ['templates'],
> 'APP_DIRS': True,
> 'OPTIONS': {
> 'context_processors': [
> 'django.template.context_processors.debug',
> 'django.template.context_processors.request',
> 'django.contrib.auth.context_processors.auth',
> 'django.contrib.messages.context_processors.messages',
> ],
> },
> },
> ]
>
> WSGI_APPLICATION = 'registration1.wsgi.application'
>
>
> # Database
> # https://docs.djangoproject.com/en/4.1/ref/settings/#databases
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'user_registration',
> 'USER': 'shamiit_database',
> 'PASSWORD': 'shamiit123',
> 'HOST': '183.83.187.12',
> 'PORT': '6013',
> }
> }
>
>
> # Password validation
> #
> https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
>
> AUTH_PASSWORD_VALIDATORS = [
> {
> 'NAME':
> 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.MinimumLengthValidator',
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.CommonPasswordValidator',
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.NumericPasswordValidator',
> },
> ]
>
>
> # Internationalization
> # https://docs.djangoproject.com/en/4.1/topics/i18n/
>
> LANGUAGE_CODE = 'en-us'
>
> TIME_ZONE = 'UTC'
>
> USE_I18N = True
>
> USE_TZ = True
>
>
> # Static files (CSS, JavaScript, Images)
> # https://docs.djangoproject.com/en/4.1/howto/static-files/
>
> STATIC_URL = 'static/'
> LOGIN_URL = '/login/'
>
> # Default primary key field type
> # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
>
> DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
>
> CRISPY_TEMPLATE_PACK = 'bootstrap5'
> CRISPY_ALLOWED_TEMPLATE_PACKS = 'bootstrap5'
>
> # Add this line at the bottom of the file
> AUTH_USER_MODEL = 'app1.CustomUser'
>
> EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
> EMAIL_HOST = 'smtp.gmail.com'  # Change to your email provider's SMTP
> server
> EMAIL_PORT = 587  # Change to your email provider's port
> EMAIL_USE_TLS = True  # Change to True if your email provider requires TLS
> EMAIL_HOST_USER = 'koreakhi...@gmail.com'  # Your email address
> EMAIL_HOST_PASSWORD = 'ngxfvpwoasfumnkc'  # Your email password
>
> from django.utils.translation import gettext_lazy as _
>
> PASSWORD_RESET_SUBJECT = _('Password Reset Request')
> 

any any help me to solve below error in my django project

2023-08-07 Thread AKHIL KORE
I got the error in my below existings django files. Please solve this error
and check all below files code.

File "C:\django2pm\myvenv\lib\site-packages\django\urls\resolvers.py", line
725, in url_patterns
  raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf
'registration1.urls' does not appear to have any patterns in it. If you see
the 'urlpatterns' variable with valid patterns in the file then the issue
is probably caused by a circular import.

registration1/settings.py

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY =
'django-insecure-bz1vja=h9vcnl_=j!-1*+t(j(fn!qzzx5wgy_nu_f-i5c%t'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app1',
'crispy_forms',
'crispy_bootstrap5',
'rest_framework',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'registration1.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'registration1.wsgi.application'


# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'user_registration',
'USER': 'shamiit_database',
'PASSWORD': 'shamiit123',
'HOST': '183.83.187.12',
'PORT': '6013',
}
}


# Password validation
#
https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/

STATIC_URL = 'static/'
LOGIN_URL = '/login/'

# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

CRISPY_TEMPLATE_PACK = 'bootstrap5'
CRISPY_ALLOWED_TEMPLATE_PACKS = 'bootstrap5'

# Add this line at the bottom of the file
AUTH_USER_MODEL = 'app1.CustomUser'

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'  # Change to your email provider's SMTP server
EMAIL_PORT = 587  # Change to your email provider's port
EMAIL_USE_TLS = True  # Change to True if your email provider requires TLS
EMAIL_HOST_USER = 'koreakhi...@gmail.com'  # Your email address
EMAIL_HOST_PASSWORD = 'ngxfvpwoasfumnkc'  # Your email password

from django.utils.translation import gettext_lazy as _

PASSWORD_RESET_SUBJECT = _('Password Reset Request')
PASSWORD_RESET_EMAIL_BODY = _(
'You have requested a password reset. Follow the link below to reset
your password:\n\n'
'{protocol}://{domain}{url}\n\n'
'If you did not request this reset, please ignore this email.\n'
'Your username, in case you\'ve forgotten: {username}'
)

registration1/urls.py
-
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
path('admin/', admin.site.urls),
path('', include('app1.urls')),
]

app1/models.py
-
from django.contrib.auth.models import AbstractUser

When i Host i ger=t this error ,i couldn't solve it help me please

2023-08-01 Thread Kani Sbt
  File 
"/home/sbthrmodule/public_html/venv/lib/python3.11/site-packages/MySQLdb/__init__.py",
 
line 121, in Connect
return Connection(*args, **kwargs)
   ^^^
  File 
"/home/sbthrmodule/public_html/venv/lib/python3.11/site-packages/MySQLdb/connections.py",
 
line 193, in __init__
super().__init__(*args, **kwargs2)
TypeError: 'driver' is an invalid keyword argument for connect()

-- 
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/0e4c935b-7246-45c9-8596-2730e4bf39een%40googlegroups.com.


Re: Looking to help recruiters and job candidates

2023-07-22 Thread utibe solomon
Although Im still in school but I'm ready to work

On Sat, Jul 22, 2023, 2:43 PM Dennis Kinanga 
wrote:

> Go on
>
> On Sat, Jul 22, 2023, 13:12 marvelous  wrote:
>
>>  Hello sir I have some sufficient knowledge of back end and im available
>> to help you for any price
>>
>>
>>
>>
>>
>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
>> Windows
>>
>>
>>
>> *From: *Saurav Sharma 
>> *Sent: *Tuesday, June 27, 2023 8:35 PM
>> *To: *Django users 
>> *Subject: *Re: Looking to help recruiters and job candidates
>>
>>
>>
>> So what you plan for this platform..?
>>
>> On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:
>>
>> Hey Djangonaughts! I'm looking to build a tool for recruiters to get
>> candidates interviews faster by streamlining recruiters' processes. Would
>> greatly appreciate any connects. Also, if you're looking for a software
>> engineering role (with at least 1 prior company experience for validation),
>> would also love to chat.
>>
>>
>>
>> acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>>
>>
>> --
>> 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/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol
>> <https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJkiqy5X1%2ByMC2JpAi2E-KQKX0a5PkRvjLS1OGyK%3D3cypmAUKA%40mail.gmail.com.


Re: Looking to help recruiters and job candidates

2023-07-22 Thread utibe solomon
Well I know api development with rest framework and how to integrate asgi
channels into my Django work and I can utilize JavaScript fetch requests
and websockets calls

On Sat, Jul 22, 2023, 2:43 PM Dennis Kinanga 
wrote:

> Go on
>
> On Sat, Jul 22, 2023, 13:12 marvelous  wrote:
>
>>  Hello sir I have some sufficient knowledge of back end and im available
>> to help you for any price
>>
>>
>>
>>
>>
>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
>> Windows
>>
>>
>>
>> *From: *Saurav Sharma 
>> *Sent: *Tuesday, June 27, 2023 8:35 PM
>> *To: *Django users 
>> *Subject: *Re: Looking to help recruiters and job candidates
>>
>>
>>
>> So what you plan for this platform..?
>>
>> On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:
>>
>> Hey Djangonaughts! I'm looking to build a tool for recruiters to get
>> candidates interviews faster by streamlining recruiters' processes. Would
>> greatly appreciate any connects. Also, if you're looking for a software
>> engineering role (with at least 1 prior company experience for validation),
>> would also love to chat.
>>
>>
>>
>> acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>>
>>
>> --
>> 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/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol
>> <https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJkiqy6frkyUiLFv8bY1OM_FjLtcuctf92OZJA1Q3u6V8o_phQ%40mail.gmail.com.


Re: Looking to help recruiters and job candidates

2023-07-22 Thread Dennis Kinanga
Go on

On Sat, Jul 22, 2023, 13:12 marvelous  wrote:

>  Hello sir I have some sufficient knowledge of back end and im available
> to help you for any price
>
>
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows
>
>
>
> *From: *Saurav Sharma 
> *Sent: *Tuesday, June 27, 2023 8:35 PM
> *To: *Django users 
> *Subject: *Re: Looking to help recruiters and job candidates
>
>
>
> So what you plan for this platform..?
>
> On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:
>
> Hey Djangonaughts! I'm looking to build a tool for recruiters to get
> candidates interviews faster by streamlining recruiters' processes. Would
> greatly appreciate any connects. Also, if you're looking for a software
> engineering role (with at least 1 prior company experience for validation),
> would also love to chat.
>
>
>
> acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>
>
> --
> 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/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol
> <https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol?utm_medium=email_source=footer>
> .
>

-- 
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/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com.


RE: Looking to help recruiters and job candidates

2023-07-22 Thread marvelous
 Hello sir I have some sufficient knowledge of back end and im available to help you for any price  Sent from Mail for Windows From: Saurav SharmaSent: Tuesday, June 27, 2023 8:35 PMTo: Django usersSubject: Re: Looking to help recruiters and job candidates So what you plan for this platform..?On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:Hey Djangonaughts! I'm looking to build a tool for recruiters to get candidates interviews faster by streamlining recruiters' processes. Would greatly appreciate any connects. Also, if you're looking for a software engineering role (with at least 1 prior company experience for validation), would also love to chat. acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%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/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol.


Re: final project in django - help

2023-07-16 Thread Jun Say
On Sun, Jul 16, 2023 at 9:32 PM Jun Say  wrote:

> Let me try.
>
> On Sun, Jul 16, 2023 at 6:28 AM Brian Carey  wrote:
>
>> A little more information please. What can't you do and what errors do
>> you get?
>>
>> Get BlueMail for Android <https://bluemail.me>
>> On Jul 16, 2023, at 03:47, Alexandru - Gabriel Ionicescu <
>> ionicescu.alexandrugabr...@gmail.com> wrote:
>>>
>>> Hello,
>>>
>>> who can help me with the final project in django? in a week I have to
>>> hand it over and I got into trouble with it. I can't access github.
>>> Please help me.
>>>
>>> Tnx,
>>> Alex
>>>
>>> --
>> 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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com
>> <https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/CAJyUeCS5iXD9UFqDHOQLN1KS3AkMTPeeCGV%3DLGsRn1BMRuAYog%40mail.gmail.com.


Re: final project in django - help

2023-07-16 Thread Jun Say
Let me try.

On Sun, Jul 16, 2023 at 6:28 AM Brian Carey  wrote:

> A little more information please. What can't you do and what errors do you
> get?
>
> Get BlueMail for Android <https://bluemail.me>
> On Jul 16, 2023, at 03:47, Alexandru - Gabriel Ionicescu <
> ionicescu.alexandrugabr...@gmail.com> wrote:
>>
>> Hello,
>>
>> who can help me with the final project in django? in a week I have to
>> hand it over and I got into trouble with it. I can't access github.
>> Please help me.
>>
>> Tnx,
>> Alex
>>
>> --
> 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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com
> <https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJyUeCS5oC3zHoiDcN8LZ31_JKpi2Oo97hOfPHPchTRTGooeeA%40mail.gmail.com.


Re: final project in django - help

2023-07-16 Thread Brian Carey
A little more information please. What can't you do and what errors do you get?

⁣Get BlueMail for Android ​

On Jul 16, 2023, 03:47, at 03:47, Alexandru - Gabriel Ionicescu 
 wrote:
>Hello,
>
>who can help me with the final project in django? in a week I have to
>hand
>it over and I got into trouble with it. I can't access github.
>Please help me.
>
>Tnx,
>Alex
>
>-- 
>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/CAKsnQnS6KtEXw_aDy3mUq1sywOHORC7Tv18%3D%3DxD9UthL-P7aCg%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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com.


final project in django - help

2023-07-16 Thread Alexandru - Gabriel Ionicescu
Hello,

who can help me with the final project in django? in a week I have to hand
it over and I got into trouble with it. I can't access github.
Please help me.

Tnx,
Alex

-- 
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/CAKsnQnS6KtEXw_aDy3mUq1sywOHORC7Tv18%3D%3DxD9UthL-P7aCg%40mail.gmail.com.


Re: need help

2023-07-05 Thread DieHardMan 300
On the server, change the following in settings
DEBUG = True# django will tell what cause the error 
instead of error500
ALLOWED_HOST = ["*"]# this allow all hosts but you should do this only 
for testing
most of the time, error 500 often cause from database connection 
problems in server side, you should create new user in database and give 
permissions to that user (do no use root user)
ในวันที่ วันพฤหัสบดีที่ 6 กรกฎาคม ค.ศ. 2023 เวลา 0 นาฬิกา 49 นาที 56 วินาที 
UTC+7 Bouka Largent เขียนว่า:

> hello 
>
> Le mar. 4 juil. 2023, 4:44, Theresa Taye  a écrit :
>
>> Hello,
>>
>> You see a Server error because Debug is set to False. To know what the 
>> actual error is, turn it back to True. Then when you are done debugging you 
>> can change that especially if you are pushing to production.
>>
>> On Tue, 4 Jul 2023 at 16:21, Abdoulaye SENE  
>> wrote:
>>
>>> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>>>
>>> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>>>
>>>> Sorry I meant turn 
>>>> DEBUG = True
>>>>
>>>>
>>>>
>>>>
>>>> Best Regards,
>>>>
>>>> Albert Ashaba Aheebwa
>>>> +256 781 435857 <+256%20781%20435857>
>>>>
>>>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, <
>>>> ashabaahe...@gmail.com> wrote:
>>>>
>>>>> Go to your settings.py and look for allowed_hosts and make it 
>>>>> ALLOWED_HOSTS = ["*"]
>>>>>
>>>>> or better yet, if you are in development, turn
>>>>> DEBUG = False
>>>>>
>>>>>
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> Albert Ashaba Aheebwa
>>>>> +256 781 435857 <+256%20781%20435857>
>>>>>
>>>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE,  
>>>>> wrote:
>>>>>
>>>>>> hello,
>>>>>> while programming, i see this problem : " CommandError: You must set 
>>>>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>>>>> i wonder if someone can help me to fix it.
>>>>>>
>>>>>> -- 
>>>>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>> 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/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> -- 
>> 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/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/8663160e-338a-44f6-97df-9c6fab6b1cecn%40googlegroups.com.


Re: need help

2023-07-05 Thread Bouka Largent
hello

Le mar. 4 juil. 2023, 4:44, Theresa Taye  a
écrit :

> Hello,
>
> You see a Server error because Debug is set to False. To know what the
> actual error is, turn it back to True. Then when you are done debugging you
> can change that especially if you are pushing to production.
>
> On Tue, 4 Jul 2023 at 16:21, Abdoulaye SENE 
> wrote:
>
>> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>>
>> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>>
>>> Sorry I meant turn
>>> DEBUG = True
>>>
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>>> wrote:
>>>
>>>> Go to your settings.py and look for allowed_hosts and make it
>>>> ALLOWED_HOSTS = ["*"]
>>>>
>>>> or better yet, if you are in development, turn
>>>> DEBUG = False
>>>>
>>>>
>>>>
>>>> Best Regards,
>>>>
>>>> Albert Ashaba Aheebwa
>>>> +256 781 435857 <+256%20781%20435857>
>>>>
>>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
>>>> wrote:
>>>>
>>>>> hello,
>>>>> while programming, i see this problem : " CommandError: You must set
>>>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>>>> i wonder if someone can help me to fix it.
>>>>>
>>>>> --
>>>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>> 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/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAGFr1Ekoi7Pudgm0GRzPK7eVLkMoQz-tkmS%2Bc20gAhrZHwJe_Q%40mail.gmail.com.


Re: need help

2023-07-04 Thread Theresa Taye
Hello,

You see a Server error because Debug is set to False. To know what the
actual error is, turn it back to True. Then when you are done debugging you
can change that especially if you are pushing to production.

On Tue, 4 Jul 2023 at 16:21, Abdoulaye SENE 
wrote:

> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>
> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>
>> Sorry I meant turn
>> DEBUG = True
>>
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>> wrote:
>>
>>> Go to your settings.py and look for allowed_hosts and make it
>>> ALLOWED_HOSTS = ["*"]
>>>
>>> or better yet, if you are in development, turn
>>> DEBUG = False
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
>>> wrote:
>>>
>>>> hello,
>>>> while programming, i see this problem : " CommandError: You must set
>>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>>> i wonder if someone can help me to fix it.
>>>>
>>>> --
>>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
> 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/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com.


Re: need help

2023-07-04 Thread ALBERT ASHABA AHEEBWA
Server Error can be caused by many issues ranging from database queries to
wrong urls.

Turn debug to true and see what reasons are given .
Are you in production or development?



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Tue, 4 Jul 2023, 18:21 Abdoulaye SENE, 
wrote:

> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>
> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>
>> Sorry I meant turn
>> DEBUG = True
>>
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>> wrote:
>>
>>> Go to your settings.py and look for allowed_hosts and make it
>>> ALLOWED_HOSTS = ["*"]
>>>
>>> or better yet, if you are in development, turn
>>> DEBUG = False
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
>>> wrote:
>>>
>>>> hello,
>>>> while programming, i see this problem : " CommandError: You must set
>>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>>> i wonder if someone can help me to fix it.
>>>>
>>>> --
>>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
> 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/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAAQecPeCb6HJMvnC5u_f5ORti50z%2BDEC4APAh-6GAGSDsWCO5w%40mail.gmail.com.


Re: need help

2023-07-04 Thread Abdoulaye SENE
thanks for the help. but after  writing ["*"] i see   Server Error (500)

Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :

> Sorry I meant turn 
> DEBUG = True
>
>
>
>
> Best Regards,
>
> Albert Ashaba Aheebwa
> +256 781 435857 <+256%20781%20435857>
>
> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA,  
> wrote:
>
>> Go to your settings.py and look for allowed_hosts and make it 
>> ALLOWED_HOSTS = ["*"]
>>
>> or better yet, if you are in development, turn
>> DEBUG = False
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE,  
>> wrote:
>>
>>> hello,
>>> while programming, i see this problem : " CommandError: You must set 
>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>> i wonder if someone can help me to fix it.
>>>
>>> -- 
>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com.


Re: need help

2023-07-04 Thread ALBERT ASHABA AHEEBWA
Sorry I meant turn
DEBUG = True



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, <
ashabaaheebwaalb...@gmail.com> wrote:

> Go to your settings.py and look for allowed_hosts and make it
> ALLOWED_HOSTS = ["*"]
>
> or better yet, if you are in development, turn
> DEBUG = False
>
>
>
> Best Regards,
>
> Albert Ashaba Aheebwa
> +256 781 435857
>
> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
> wrote:
>
>> hello,
>> while programming, i see this problem : " CommandError: You must set
>> settings.ALLOWED_HOSTS if DEBUG is False."
>> i wonder if someone can help me to fix it.
>>
>> --
>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/CAAQecPc7gSzAvgrWSurng%2BYsRvVjzmVwVYfeY5A7ofGPi093Hw%40mail.gmail.com.


Re: need help

2023-07-04 Thread ALBERT ASHABA AHEEBWA
Go to your settings.py and look for allowed_hosts and make it
ALLOWED_HOSTS = ["*"]

or better yet, if you are in development, turn
DEBUG = False



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
wrote:

> hello,
> while programming, i see this problem : " CommandError: You must set
> settings.ALLOWED_HOSTS if DEBUG is False."
> i wonder if someone can help me to fix it.
>
> --
> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAAQecPf-j1qSEO2%2BmzdqB-8HqZBG1%2ByVypDv7gD_yLDXR7_xtQ%40mail.gmail.com.


need help

2023-07-04 Thread Abdoulaye SENE
hello,
while programming, i see this problem : " CommandError: You must set 
settings.ALLOWED_HOSTS if DEBUG is False."
i wonder if someone can help me to fix it.

-- 
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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com.


Re: Looking to help recruiters and job candidates

2023-06-27 Thread Saurav Sharma
So what you plan for this platform..?

On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:

> Hey Djangonaughts! I'm looking to build a tool for recruiters to get 
> candidates interviews faster by streamlining recruiters' processes. Would 
> greatly appreciate any connects. Also, if you're looking for a software 
> engineering role (with at least 1 prior company experience for validation), 
> would also love to chat.
>
> acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com.


Re: Looking to help recruiters and job candidates

2023-06-26 Thread Raphael Polanco
Hello, Django-Users.

Just a reminder that disclosing personal information can expose you to
real-world risks. Divulging even small amounts of personal information in
an unsecured forum may render you vulnerable to identity theft,
financial attacks, and even online grooming if you share it with
individuals that may harbor malicious intentions.

Thank you.

R. Polanco
@raphaelpolanco
#zerotrust


On Mon, Jun 26, 2023 at 2:48 PM Andrew Wang  wrote:

> Hey Djangonaughts! I'm looking to build a tool for recruiters to get
> candidates interviews faster by streamlining recruiters' processes. Would
> greatly appreciate any connects. Also, if you're looking for a software
> engineering role (with at least 1 prior company experience for validation),
> would also love to chat.
>
> acwangpyt...@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/cbbacf02-69a0-48db-88c6-44fa2ea8cb8dn%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/CAJoAtSkk1FHsoBBXvM_Z8zP%2BpRk6nonfgPQY0Hd4RDCx0Kuenw%40mail.gmail.com.


Looking to help recruiters and job candidates

2023-06-26 Thread Andrew Wang
Hey Djangonaughts! I'm looking to build a tool for recruiters to get 
candidates interviews faster by streamlining recruiters' processes. Would 
greatly appreciate any connects. Also, if you're looking for a software 
engineering role (with at least 1 prior company experience for validation), 
would also love to chat.

acwangpyt...@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/cbbacf02-69a0-48db-88c6-44fa2ea8cb8dn%40googlegroups.com.


Re: Can any one help me with this question

2023-06-22 Thread Annadatha Rao
Hi,

Can you please recommend any ui components to use with django, like graphs,
datagrid etc.

With regards,

Annadatha.

On Sun, Jun 18, 2023, 8:59 PM Annadatha Rao  wrote:

> Dear All,
>
> Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
> please show me an example if works.
>
> Thank you for your support,
> Annadatha.
>

-- 
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/CAFtPNJxasiQaQJdb0swQ%2B6O2YqkNCHzoC0xHSLVMQe9rNJR0gw%40mail.gmail.com.


Re: Can any one help me with this question

2023-06-22 Thread Annadatha Rao
Thank you for your reply.

Annadatha.

On Thu, Jun 22, 2023, 10:45 PM Praveen Chaudhary 
wrote:

> Hi Annadatha,
>
> I'm glad to hear that upgrading to Oracle 21c worked for you. As for your
> question about working without migrations in Django, it's certainly
> possible but it's important to understand the implication and trade-offs.
>
> Django migrations provide a way to manage and apply changes to your
> database schema over time, allowing for version control and easy deployment
> of database changes. They help maintain data integrity and make it easier
> to collaborate with other developers.
>
> However, if you prefer not to use migrations, you can disable them in
> django by setting the 'MIGRATIIN_MODULES' setting to an empty dictionary in
> your projects settings.py file:
>
>  MIGRATION_MODULES = {}
>
>
> By doing this, you'll essentially disable the migration framework, and
> Django won't generate or apply migrations. Instead, you'll need to manually
> manage your database schema changes, which can be more error-prone and less
> convenient, especially in collaborative projects.
>
> Keep in mind the following considerations if you decide to work without
> migrations:
>
> 1. Database schema management: You'll need to manually create, modify, and
> delete database tables, columns, and other schema elements as needed. This
> requires careful coordination and communication between developers working
> on the project.
>
> 2. Data integrity: Migrations help ensure data integrity during schema
> changes by providing a way to define and execute data transformations.
> Without migrations, you'll need to handle data migrations and
> transformations manually, which can be challenging and error-prone.
>
> 3. Deployment and version control: Migrations provide a structured way to
> apply schema changes to your database during deployment. Without
> migrations, you'll need to find alternative approaches for managing
> database changes in different environments and version controlling those
> changes.
>
> Ultimately, the decision to use or not use migrations depends on your
> specific requirements, project complexity, and team collaboration. If
> you're working on a small, personal project with a simple schema and
> limited changes, managing the database schema manually might be feasible.
> However, for larger projects or teams, migrations can provide significant
> benefits in terms of maintainability, collaboration, and data integrity.
>
> I hope this helps you make an informed decision. Let me know if you have
> any further questions!
>
> Best regards
> Prabin Chaudhary
> +977-9840193890
> *https://www.linkedin.com/in/icedreamerpraveen/
> <https://www.linkedin.com/in/icedreamerpraveen/>*
> Software Engineer | Youth Innovation Lab
>
> On Thu, 22 Jun 2023, 7:55 pm Annadatha Rao, 
> wrote:
>
>> Hi  Prabin,
>>
>> Thank you, it worked when I upgraded db to 21c (oracle), thank you for
>> your help. Small question, can I work without migrations, some have I hate
>> migrations being a legacy programmer from (Cobol days). I value your
>> opinion.
>>
>> Thank you,
>> ANNADATHA.
>>
>> On Sun, Jun 18, 2023 at 9:19 PM Praveen Chaudhary <
>> prabinchy1...@gmail.com> wrote:
>>
>>> Yes, Django migrations can work with Oracle 11.2 using the python-oracle
>>> database driver. However, it's important to note that the python-oracle
>>> package is not an official Oracle-provided driver. The official driver is
>>> called cx_Oracle, which is widely used for connecting Django to Oracle
>>> databases.
>>>
>>> Here's an example of how Django migrations can work with Oracle 11.2
>>> using cx_Oracle:
>>>
>>> 1. Install the cx_Oracle package using pip:
>>>  pip install cx_Oracle
>>> 2.Update your Django project's settings.py file to include the Oracle
>>> database configuration:
>>>  DATABASES = {
>>> 'default': {
>>> 'ENGINE': 'django.db.backends.oracle',
>>> 'NAME': 'your_database_name',
>>> 'USER': 'your_username',
>>> 'PASSWORD': 'your_password',
>>> 'HOST': 'your_host',
>>> 'PORT': 'your_port',
>>> }
>>> }
>>>
>>> Replace the 'your_database_name', 'your_username', 'your_password',
>>> 'your_host', and 'your_port' with the appropriate values for your
>>> Oracle database.
>>> 3.Define your Django models in the models.py file.
>>> 4.Generate and apply the migrations using Django's makemigrations and
>>> migrate commands:
>>>
&g

Re: Can any one help me with this question

2023-06-22 Thread Praveen Chaudhary
Hi Annadatha,

I'm glad to hear that upgrading to Oracle 21c worked for you. As for your
question about working without migrations in Django, it's certainly
possible but it's important to understand the implication and trade-offs.

Django migrations provide a way to manage and apply changes to your
database schema over time, allowing for version control and easy deployment
of database changes. They help maintain data integrity and make it easier
to collaborate with other developers.

However, if you prefer not to use migrations, you can disable them in
django by setting the 'MIGRATIIN_MODULES' setting to an empty dictionary in
your projects settings.py file:

 MIGRATION_MODULES = {}


By doing this, you'll essentially disable the migration framework, and
Django won't generate or apply migrations. Instead, you'll need to manually
manage your database schema changes, which can be more error-prone and less
convenient, especially in collaborative projects.

Keep in mind the following considerations if you decide to work without
migrations:

1. Database schema management: You'll need to manually create, modify, and
delete database tables, columns, and other schema elements as needed. This
requires careful coordination and communication between developers working
on the project.

2. Data integrity: Migrations help ensure data integrity during schema
changes by providing a way to define and execute data transformations.
Without migrations, you'll need to handle data migrations and
transformations manually, which can be challenging and error-prone.

3. Deployment and version control: Migrations provide a structured way to
apply schema changes to your database during deployment. Without
migrations, you'll need to find alternative approaches for managing
database changes in different environments and version controlling those
changes.

Ultimately, the decision to use or not use migrations depends on your
specific requirements, project complexity, and team collaboration. If
you're working on a small, personal project with a simple schema and
limited changes, managing the database schema manually might be feasible.
However, for larger projects or teams, migrations can provide significant
benefits in terms of maintainability, collaboration, and data integrity.

I hope this helps you make an informed decision. Let me know if you have
any further questions!

Best regards
Prabin Chaudhary
+977-9840193890
*https://www.linkedin.com/in/icedreamerpraveen/
<https://www.linkedin.com/in/icedreamerpraveen/>*
Software Engineer | Youth Innovation Lab

On Thu, 22 Jun 2023, 7:55 pm Annadatha Rao,  wrote:

> Hi  Prabin,
>
> Thank you, it worked when I upgraded db to 21c (oracle), thank you for
> your help. Small question, can I work without migrations, some have I hate
> migrations being a legacy programmer from (Cobol days). I value your
> opinion.
>
> Thank you,
> ANNADATHA.
>
> On Sun, Jun 18, 2023 at 9:19 PM Praveen Chaudhary 
> wrote:
>
>> Yes, Django migrations can work with Oracle 11.2 using the python-oracle
>> database driver. However, it's important to note that the python-oracle
>> package is not an official Oracle-provided driver. The official driver is
>> called cx_Oracle, which is widely used for connecting Django to Oracle
>> databases.
>>
>> Here's an example of how Django migrations can work with Oracle 11.2
>> using cx_Oracle:
>>
>> 1. Install the cx_Oracle package using pip:
>>  pip install cx_Oracle
>> 2.Update your Django project's settings.py file to include the Oracle
>> database configuration:
>>  DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.oracle',
>> 'NAME': 'your_database_name',
>> 'USER': 'your_username',
>> 'PASSWORD': 'your_password',
>> 'HOST': 'your_host',
>> 'PORT': 'your_port',
>> }
>> }
>>
>> Replace the 'your_database_name', 'your_username', 'your_password',
>> 'your_host', and 'your_port' with the appropriate values for your Oracle
>> database.
>> 3.Define your Django models in the models.py file.
>> 4.Generate and apply the migrations using Django's makemigrations and
>> migrate commands:
>>
>> These commands will generate the necessary SQL statements based on your
>> models and apply them to the Oracle database.
>>
>> Please note that the example assumes you have already set up Oracle 11.2
>> and have the necessary Oracle client software installed on your machine.
>>
>> It's also important to ensure that your version of Django is compatible
>> with Oracle 11.2. Refer to the Django documentation and the documentation
>> of the cx_Oracle package for any specific requirements or considerations
>> when working with Oracle databas

Re: Can any one help me with this question

2023-06-22 Thread Annadatha Rao
Hi  Prabin,

Thank you, it worked when I upgraded db to 21c (oracle), thank you for your
help. Small question, can I work without migrations, some have I hate
migrations being a legacy programmer from (Cobol days). I value your
opinion.

Thank you,
ANNADATHA.

On Sun, Jun 18, 2023 at 9:19 PM Praveen Chaudhary 
wrote:

> Yes, Django migrations can work with Oracle 11.2 using the python-oracle
> database driver. However, it's important to note that the python-oracle
> package is not an official Oracle-provided driver. The official driver is
> called cx_Oracle, which is widely used for connecting Django to Oracle
> databases.
>
> Here's an example of how Django migrations can work with Oracle 11.2 using
> cx_Oracle:
>
> 1. Install the cx_Oracle package using pip:
>  pip install cx_Oracle
> 2.Update your Django project's settings.py file to include the Oracle
> database configuration:
>  DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.oracle',
> 'NAME': 'your_database_name',
> 'USER': 'your_username',
> 'PASSWORD': 'your_password',
> 'HOST': 'your_host',
> 'PORT': 'your_port',
> }
> }
>
> Replace the 'your_database_name', 'your_username', 'your_password',
> 'your_host', and 'your_port' with the appropriate values for your Oracle
> database.
> 3.Define your Django models in the models.py file.
> 4.Generate and apply the migrations using Django's makemigrations and
> migrate commands:
>
> These commands will generate the necessary SQL statements based on your
> models and apply them to the Oracle database.
>
> Please note that the example assumes you have already set up Oracle 11.2
> and have the necessary Oracle client software installed on your machine.
>
> It's also important to ensure that your version of Django is compatible
> with Oracle 11.2. Refer to the Django documentation and the documentation
> of the cx_Oracle package for any specific requirements or considerations
> when working with Oracle databases.
>
> Remember to replace 'your_database_name', 'your_username', 'your_password',
> 'your_host', and 'your_port' with the appropriate values for your Oracle
> database configuration.
>
> Prabin Chaudhary
> +977-9840193890
> *https://www.linkedin.com/in/icedreamerpraveen/
> <https://www.linkedin.com/in/icedreamerpraveen/>*
> Software Engineer | Youth Innovation Lab
>
>
> On Sun, 18 Jun 2023 at 21:15, Annadatha Rao 
> wrote:
>
>> Dear All,
>>
>> Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
>> please show me an example if works.
>>
>> Thank you for your support,
>> Annadatha.
>>
>> --
>> 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/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAN9B8Z3itg0bvV8wzoNoAkJiF9FVZ%3DAP2Z2aLxRreYxVVki1_w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAN9B8Z3itg0bvV8wzoNoAkJiF9FVZ%3DAP2Z2aLxRreYxVVki1_w%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAFtPNJwWEh%2BrqVMLemRdMi0__UGp2ZJg-%2B6Ee2K-U%2B8VJvgKcw%40mail.gmail.com.


Re: Can any one help me with this question

2023-06-18 Thread Annadatha Rao
Thank you very much praveen, I will try and let you know.

Annadatja




On Sun, Jun 18, 2023, 9:19 PM Praveen Chaudhary 
wrote:

> Yes, Django migrations can work with Oracle 11.2 using the python-oracle
> database driver. However, it's important to note that the python-oracle
> package is not an official Oracle-provided driver. The official driver is
> called cx_Oracle, which is widely used for connecting Django to Oracle
> databases.
>
> Here's an example of how Django migrations can work with Oracle 11.2 using
> cx_Oracle:
>
> 1. Install the cx_Oracle package using pip:
>  pip install cx_Oracle
> 2.Update your Django project's settings.py file to include the Oracle
> database configuration:
>  DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.oracle',
> 'NAME': 'your_database_name',
> 'USER': 'your_username',
> 'PASSWORD': 'your_password',
> 'HOST': 'your_host',
> 'PORT': 'your_port',
> }
> }
>
> Replace the 'your_database_name', 'your_username', 'your_password',
> 'your_host', and 'your_port' with the appropriate values for your Oracle
> database.
> 3.Define your Django models in the models.py file.
> 4.Generate and apply the migrations using Django's makemigrations and
> migrate commands:
>
> These commands will generate the necessary SQL statements based on your
> models and apply them to the Oracle database.
>
> Please note that the example assumes you have already set up Oracle 11.2
> and have the necessary Oracle client software installed on your machine.
>
> It's also important to ensure that your version of Django is compatible
> with Oracle 11.2. Refer to the Django documentation and the documentation
> of the cx_Oracle package for any specific requirements or considerations
> when working with Oracle databases.
>
> Remember to replace 'your_database_name', 'your_username', 'your_password',
> 'your_host', and 'your_port' with the appropriate values for your Oracle
> database configuration.
>
> Prabin Chaudhary
> +977-9840193890
> *https://www.linkedin.com/in/icedreamerpraveen/
> *
> Software Engineer | Youth Innovation Lab
>
>
> On Sun, 18 Jun 2023 at 21:15, Annadatha Rao 
> wrote:
>
>> Dear All,
>>
>> Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
>> please show me an example if works.
>>
>> Thank you for your support,
>> Annadatha.
>>
>> --
>> 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/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%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/CAN9B8Z3itg0bvV8wzoNoAkJiF9FVZ%3DAP2Z2aLxRreYxVVki1_w%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/CAFtPNJzEptw-pUkaDnkfzdew4%2BMicfibfCx4e10rCpZNZ%3D%2BYXw%40mail.gmail.com.


Re: Can any one help me with this question

2023-06-18 Thread Praveen Chaudhary
Yes, Django migrations can work with Oracle 11.2 using the python-oracle
database driver. However, it's important to note that the python-oracle
package is not an official Oracle-provided driver. The official driver is
called cx_Oracle, which is widely used for connecting Django to Oracle
databases.

Here's an example of how Django migrations can work with Oracle 11.2 using
cx_Oracle:

1. Install the cx_Oracle package using pip:
 pip install cx_Oracle
2.Update your Django project's settings.py file to include the Oracle
database configuration:
 DATABASES = {
'default': {
'ENGINE': 'django.db.backends.oracle',
'NAME': 'your_database_name',
'USER': 'your_username',
'PASSWORD': 'your_password',
'HOST': 'your_host',
'PORT': 'your_port',
}
}

Replace the 'your_database_name', 'your_username', 'your_password',
'your_host', and 'your_port' with the appropriate values for your Oracle
database.
3.Define your Django models in the models.py file.
4.Generate and apply the migrations using Django's makemigrations and
migrate commands:

These commands will generate the necessary SQL statements based on your
models and apply them to the Oracle database.

Please note that the example assumes you have already set up Oracle 11.2
and have the necessary Oracle client software installed on your machine.

It's also important to ensure that your version of Django is compatible
with Oracle 11.2. Refer to the Django documentation and the documentation
of the cx_Oracle package for any specific requirements or considerations
when working with Oracle databases.

Remember to replace 'your_database_name', 'your_username', 'your_password',
'your_host', and 'your_port' with the appropriate values for your Oracle
database configuration.

Prabin Chaudhary
+977-9840193890
*https://www.linkedin.com/in/icedreamerpraveen/
*
Software Engineer | Youth Innovation Lab


On Sun, 18 Jun 2023 at 21:15, Annadatha Rao  wrote:

> Dear All,
>
> Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
> please show me an example if works.
>
> Thank you for your support,
> Annadatha.
>
> --
> 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/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%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/CAN9B8Z3itg0bvV8wzoNoAkJiF9FVZ%3DAP2Z2aLxRreYxVVki1_w%40mail.gmail.com.


Can any one help me with this question

2023-06-18 Thread Annadatha Rao
Dear All,

Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
please show me an example if works.

Thank you for your support,
Annadatha.

-- 
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/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%40mail.gmail.com.


Re: can someone help me why my static files is not being rendered?

2023-06-17 Thread Mohammad Sadegh
> Yes send message to my account

-- 
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/CALa2QEPLXnwn6bRDWgjYsEC_3kV0qVYh3htN9iyzs%2Brie2XaTA%40mail.gmail.com.


Re: can someone help me why my static files is not being rendered?

2023-06-16 Thread Aspersh Upadhyay
Thanks a lot to Makan Dianka and everyone who replied to my question. Your 
help was greatly appreciated. I was able to solve the problem using Makan 
Dianka's solution. 
On Friday, June 16, 2023 at 9:00:20 AM UTC+5:30 Makan Dianka wrote:

> It is :
>
> STATICFILES_DIRS=[
>  .
> ]
>
> Not :
>
> STATICFILES_DIR=[
>  .
> ]
>
> Just add S in the end of DIR like DIRS and make sur u create static folder 
> in your project root.
>
>
> Le jeu. 15 juin 2023 à 16:52, Ngaga Dancan  a 
> écrit :
>
>> Use load static first before you use extends 
>>
>>
>> On Thu, Jun 15, 2023, 16:52 Prosper Lekia  wrote:
>>
>>> Where is the Python.png located?
>>>
>>> From your code, it should be directly in your static folder not a 
>>> subfolder. So verify your file structure first. If every is in order, 
>>> confirm if whitenoise is installed, and been added to your MiddleWare.
>>>
>>> On Thu, Jun 15, 2023, 14:33 Aspersh Upadhyay  
>>> wrote:
>>>
>>>> my settings.py 
>>>>
>>>> STATIC_URL = 'static/'
>>>>
>>>> STATICFILES_DIR = [
>>>> BASE_DIR / "static"
>>>> ]
>>>>
>>>> Template where I am trying to load static files
>>>>
>>>> {% extends 'base.html' %} 
>>>> {% load static %}
>>>>
>>>> {% block title %} 
>>>>   Issue With Django static files
>>>> {%endblock title %} 
>>>> {% block body %}
>>>> 
>>>>   
>>>> >>> src="{% static 'Python.png' %}">
>>>>   
>>>> 
>>>>
>>>> terminal throwing me 404 see this 
>>>>
>>>> "GET /static/Python.png HTTP/1.1" 404 1789
>>>>
>>>> I hope here I will get my solution for 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...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/54b813cc-58f4-4cbe-80af-a427f063fbb2n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/54b813cc-58f4-4cbe-80af-a427f063fbb2n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>>> 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/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> -- 
>> 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/CAAzh8pK%3DxH0GTm2MdLi1bwD%3DU8u%3D9z5MEf3os1qBNyVzWKCtvg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAAzh8pK%3DxH0GTm2MdLi1bwD%3DU8u%3D9z5MEf3os1qBNyVzWKCtvg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/f566de2b-7eca-425a-899d-1615bba77eafn%40googlegroups.com.


Re: can someone help me why my static files is not being rendered?

2023-06-15 Thread Makan Dianka
It is :

STATICFILES_DIRS=[
 .
]

Not :

STATICFILES_DIR=[
 .
]

Just add S in the end of DIR like DIRS and make sur u create static folder
in your project root.


Le jeu. 15 juin 2023 à 16:52, Ngaga Dancan  a
écrit :

> Use load static first before you use extends
>
>
> On Thu, Jun 15, 2023, 16:52 Prosper Lekia  wrote:
>
>> Where is the Python.png located?
>>
>> From your code, it should be directly in your static folder not a
>> subfolder. So verify your file structure first. If every is in order,
>> confirm if whitenoise is installed, and been added to your MiddleWare.
>>
>> On Thu, Jun 15, 2023, 14:33 Aspersh Upadhyay <
>> aspershupadhyay.deityr...@gmail.com> wrote:
>>
>>> my settings.py
>>>
>>> STATIC_URL = 'static/'
>>>
>>> STATICFILES_DIR = [
>>> BASE_DIR / "static"
>>> ]
>>>
>>> Template where I am trying to load static files
>>>
>>> {% extends 'base.html' %}
>>> {% load static %}
>>>
>>> {% block title %}
>>>   Issue With Django static files
>>> {%endblock title %}
>>> {% block body %}
>>> 
>>>   
>>> >> src="{% static 'Python.png' %}">
>>>   
>>> 
>>>
>>> terminal throwing me 404 see this 
>>>
>>> "GET /static/Python.png HTTP/1.1" 404 1789
>>>
>>> I hope here I will get my solution for 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 visit
>>> https://groups.google.com/d/msgid/django-users/54b813cc-58f4-4cbe-80af-a427f063fbb2n%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/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%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/CAAzh8pK%3DxH0GTm2MdLi1bwD%3DU8u%3D9z5MEf3os1qBNyVzWKCtvg%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/CABePkdaZWAUt6hoM2LBD2mGSvO%3D-gLQ77DK2Cf1fSFNzNvzkBw%40mail.gmail.com.


Re: can someone help me why my static files is not being rendered?

2023-06-15 Thread Ngaga Dancan
Use load static first before you use extends


On Thu, Jun 15, 2023, 16:52 Prosper Lekia  wrote:

> Where is the Python.png located?
>
> From your code, it should be directly in your static folder not a
> subfolder. So verify your file structure first. If every is in order,
> confirm if whitenoise is installed, and been added to your MiddleWare.
>
> On Thu, Jun 15, 2023, 14:33 Aspersh Upadhyay <
> aspershupadhyay.deityr...@gmail.com> wrote:
>
>> my settings.py
>>
>> STATIC_URL = 'static/'
>>
>> STATICFILES_DIR = [
>> BASE_DIR / "static"
>> ]
>>
>> Template where I am trying to load static files
>>
>> {% extends 'base.html' %}
>> {% load static %}
>>
>> {% block title %}
>>   Issue With Django static files
>> {%endblock title %}
>> {% block body %}
>> 
>>   
>> > src="{% static 'Python.png' %}">
>>   
>> 
>>
>> terminal throwing me 404 see this 
>>
>> "GET /static/Python.png HTTP/1.1" 404 1789
>>
>> I hope here I will get my solution for 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 visit
>> https://groups.google.com/d/msgid/django-users/54b813cc-58f4-4cbe-80af-a427f063fbb2n%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/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%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/CAAzh8pK%3DxH0GTm2MdLi1bwD%3DU8u%3D9z5MEf3os1qBNyVzWKCtvg%40mail.gmail.com.


Re: can someone help me why my static files is not being rendered?

2023-06-15 Thread ALBERT ASHABA AHEEBWA
According to your settings, the `Python.png` file should be inside `static`
on the same level as `manage.py`.

|---static /
 |-- Python.png
|--manage.py
|--

The file structure of almost that kind. If you're in development and this
is a practice thing, you don't need `whitenoise` just yet.

On Thu, Jun 15, 2023 at 4:53 PM Prosper Lekia 
wrote:

> Where is the Python.png located?
>
> From your code, it should be directly in your static folder not a
> subfolder. So verify your file structure first. If every is in order,
> confirm if whitenoise is installed, and been added to your MiddleWare.
>
> On Thu, Jun 15, 2023, 14:33 Aspersh Upadhyay <
> aspershupadhyay.deityr...@gmail.com> wrote:
>
>> my settings.py
>>
>> STATIC_URL = 'static/'
>>
>> STATICFILES_DIR = [
>> BASE_DIR / "static"
>> ]
>>
>> Template where I am trying to load static files
>>
>> {% extends 'base.html' %}
>> {% load static %}
>>
>> {% block title %}
>>   Issue With Django static files
>> {%endblock title %}
>> {% block body %}
>> 
>>   
>> > src="{% static 'Python.png' %}">
>>   
>> 
>>
>> terminal throwing me 404 see this 
>>
>> "GET /static/Python.png HTTP/1.1" 404 1789
>>
>> I hope here I will get my solution for 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 visit
>> https://groups.google.com/d/msgid/django-users/54b813cc-58f4-4cbe-80af-a427f063fbb2n%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/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%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/CAAQecPcVVGArR8Dq4hE%3DzOStN-itUT9WRGkwfbnsoEhxEfGPJQ%40mail.gmail.com.


Re: can someone help me why my static files is not being rendered?

2023-06-15 Thread Prosper Lekia
Where is the Python.png located?

>From your code, it should be directly in your static folder not a
subfolder. So verify your file structure first. If every is in order,
confirm if whitenoise is installed, and been added to your MiddleWare.

On Thu, Jun 15, 2023, 14:33 Aspersh Upadhyay <
aspershupadhyay.deityr...@gmail.com> wrote:

> my settings.py
>
> STATIC_URL = 'static/'
>
> STATICFILES_DIR = [
> BASE_DIR / "static"
> ]
>
> Template where I am trying to load static files
>
> {% extends 'base.html' %}
> {% load static %}
>
> {% block title %}
>   Issue With Django static files
> {%endblock title %}
> {% block body %}
> 
>   
>  src="{% static 'Python.png' %}">
>   
> 
>
> terminal throwing me 404 see this 
>
> "GET /static/Python.png HTTP/1.1" 404 1789
>
> I hope here I will get my solution for 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 visit
> https://groups.google.com/d/msgid/django-users/54b813cc-58f4-4cbe-80af-a427f063fbb2n%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/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%40mail.gmail.com.


can someone help me why my static files is not being rendered?

2023-06-15 Thread Aspersh Upadhyay
my settings.py 

STATIC_URL = 'static/'

STATICFILES_DIR = [
BASE_DIR / "static"
]

Template where I am trying to load static files

{% extends 'base.html' %} 
{% load static %}

{% block title %} 
  Issue With Django static files
{%endblock title %} 
{% block body %}

  

  


terminal throwing me 404 see this 

"GET /static/Python.png HTTP/1.1" 404 1789

I hope here I will get my solution for 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 visit 
https://groups.google.com/d/msgid/django-users/54b813cc-58f4-4cbe-80af-a427f063fbb2n%40googlegroups.com.


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread AKHIL KORE
Now it is pdf format.

On Tue, Jun 6, 2023, 1:40 AM André Hangalo  wrote:

> Convert this doc in pdf
>
> On Mon, 5/06/2023 at 18:19 AKHIL KORE  wrote:
>
>> ok i can make it pdf format
>>
>> On Mon, 5 Jun 2023 at 22:45, Vishesh Mangla 
>> wrote:
>>
>>> Ya, who ll open up Linux for him 
>>>
>>> On Mon, 5 Jun, 2023, 22:43 Lakshyaraj Dash, <
>>> dashlakshyaraj2...@gmail.com> wrote:
>>>
>>>> Bro please send in pdf format so that it will be possible to open in
>>>> mobile
>>>>
>>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE,  wrote:
>>>>
>>>>> Hi django developer group.
>>>>>
>>>>>  I'm from india. I got one django assignment from xyz comapny. But i
>>>>> can't how to create  that logical way. Please help me. Below file is that
>>>>> assignment. Please open and see it.
>>>>> can any one send that type of related previous projects code.
>>>>>
>>>>> --
>>>>> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> RICK DEU
>
> --
> 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/CACQ9QcGydhVvF9XGGZpg-2BL%2B-A0pAv8C3Afn9QFw7ELkMYApA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACQ9QcGydhVvF9XGGZpg-2BL%2B-A0pAv8C3Afn9QFw7ELkMYApA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAB11hN8Sp47VH7fS22wkkyZxkd-pwFrPkTJBhO3Gxy8BXBfV3A%40mail.gmail.com.


Backend Assignment-3.pdf
Description: Adobe PDF document


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread Chetan Ganji
It looks like a test for getting hired in a company.
You should try to solve this yourself before asking for help.


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


On Tue, Jun 6, 2023 at 1:40 AM André Hangalo  wrote:

> Convert this doc in pdf
>
> On Mon, 5/06/2023 at 18:19 AKHIL KORE  wrote:
>
>> ok i can make it pdf format
>>
>> On Mon, 5 Jun 2023 at 22:45, Vishesh Mangla 
>> wrote:
>>
>>> Ya, who ll open up Linux for him 
>>>
>>> On Mon, 5 Jun, 2023, 22:43 Lakshyaraj Dash, <
>>> dashlakshyaraj2...@gmail.com> wrote:
>>>
>>>> Bro please send in pdf format so that it will be possible to open in
>>>> mobile
>>>>
>>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE,  wrote:
>>>>
>>>>> Hi django developer group.
>>>>>
>>>>>  I'm from india. I got one django assignment from xyz comapny. But i
>>>>> can't how to create  that logical way. Please help me. Below file is that
>>>>> assignment. Please open and see it.
>>>>> can any one send that type of related previous projects code.
>>>>>
>>>>> --
>>>>> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> RICK DEU
>
> --
> 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/CACQ9QcGydhVvF9XGGZpg-2BL%2B-A0pAv8C3Afn9QFw7ELkMYApA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACQ9QcGydhVvF9XGGZpg-2BL%2B-A0pAv8C3Afn9QFw7ELkMYApA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAMKMUjtGdgD%3DzQekArdfuLeCQGr-sV6xOYhouQbKj0S-b2q83g%40mail.gmail.com.


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread André Hangalo
Convert this doc in pdf

On Mon, 5/06/2023 at 18:19 AKHIL KORE  wrote:

> ok i can make it pdf format
>
> On Mon, 5 Jun 2023 at 22:45, Vishesh Mangla 
> wrote:
>
>> Ya, who ll open up Linux for him 
>>
>> On Mon, 5 Jun, 2023, 22:43 Lakshyaraj Dash, 
>> wrote:
>>
>>> Bro please send in pdf format so that it will be possible to open in
>>> mobile
>>>
>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE,  wrote:
>>>
>>>> Hi django developer group.
>>>>
>>>>  I'm from india. I got one django assignment from xyz comapny. But i
>>>> can't how to create  that logical way. Please help me. Below file is that
>>>> assignment. Please open and see it.
>>>> can any one send that type of related previous projects code.
>>>>
>>>> --
>>>> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
-- 
RICK DEU

-- 
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/CACQ9QcGydhVvF9XGGZpg-2BL%2B-A0pAv8C3Afn9QFw7ELkMYApA%40mail.gmail.com.


Re: keeps redirecting to non-existent url, please help

2023-06-05 Thread FLAVIEN HERI
You have verify of the route of your home page is correctly link to your views
Flavien
Whatsapp+243899429099

On 6/5/23, ALBERT ASHABA AHEEBWA  wrote:
> You need to us the some code (Installed apps, views.py as well as urls.py )
> for us to help. They're all connected.
>
>
>
> Best Regards,
>
> Albert Ashaba Aheebwa
> +256 781 435857
>
> On Mon, 5 Jun 2023, 16:24 Kit Jenkins, 
> wrote:
>
>> Hello everyone, I just finished my first tutorial django project, but
>> now,
>> when I'm trying to create a new project it keeps redirecting form home
>> page
>> with blank url ' ' to non-existent app url 'catalog/'. I deleted all
>> files from previous project, I tried overriding path with RedirectView to
>> a
>> new app view, I changed my python virtual environment but to no avail. It
>> keeps asking for a URL that is not defined in any way. How do I fix it?
>>
>> --
>> 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/0e6a35e7-24fd-42c7-acdc-70987990f4d1n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/0e6a35e7-24fd-42c7-acdc-70987990f4d1n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
> --
> 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/CAAQecPeFxvEvDxMRVQpwgSkCT8mL0jhaXhLOoGrBFPX5w-fJ6A%40mail.gmail.com.
>


-- 
FLAVIEN HERI

*Information management AscociateUNHCR-Kinshasa*
Tél:+243978587009
Skype: flavien.heri1
Facebook: flavien semi

-- 
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/CAG3GEnxT0zQfPsEESEjJbJVWt0rxK8Sz3V2ZnfGe%2B4xFfqvNqA%40mail.gmail.com.


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread AKHIL KORE
now it is pdf format please be check

On Mon, 5 Jun 2023 at 22:49, AKHIL KORE  wrote:

> ok i can make it pdf format
>
> On Mon, 5 Jun 2023 at 22:45, Vishesh Mangla 
> wrote:
>
>> Ya, who ll open up Linux for him 
>>
>> On Mon, 5 Jun, 2023, 22:43 Lakshyaraj Dash, 
>> wrote:
>>
>>> Bro please send in pdf format so that it will be possible to open in
>>> mobile
>>>
>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE,  wrote:
>>>
>>>> Hi django developer group.
>>>>
>>>>  I'm from india. I got one django assignment from xyz comapny. But i
>>>> can't how to create  that logical way. Please help me. Below file is that
>>>> assignment. Please open and see it.
>>>> can any one send that type of related previous projects code.
>>>>
>>>> --
>>>> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/CAB11hN9rV6EooA5MOx19T-DCKvxHRfLVLmHwEdoNOuM91rcGsg%40mail.gmail.com.


Backend Assignment.pdf
Description: Adobe PDF document


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread Lakshyaraj Dash
I can create the backend properly and for frontend I can use tailwindcss.
If it's ok then contact me further on dashlakshyaraj2...@gmail.com

Thanks and regards
Lakshyaraj Dash

On Mon, Jun 5, 2023, 22:49 AKHIL KORE  wrote:

> ok i can make it pdf format
>
> On Mon, 5 Jun 2023 at 22:45, Vishesh Mangla 
> wrote:
>
>> Ya, who ll open up Linux for him 
>>
>> On Mon, 5 Jun, 2023, 22:43 Lakshyaraj Dash, 
>> wrote:
>>
>>> Bro please send in pdf format so that it will be possible to open in
>>> mobile
>>>
>>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE,  wrote:
>>>
>>>> Hi django developer group.
>>>>
>>>>  I'm from india. I got one django assignment from xyz comapny. But i
>>>> can't how to create  that logical way. Please help me. Below file is that
>>>> assignment. Please open and see it.
>>>> can any one send that type of related previous projects code.
>>>>
>>>> --
>>>> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAF7qQgD7F1BbGTyUCXGm1D6-WeaR%3D52P2enhzeq%2B9uGZ2MhSKQ%40mail.gmail.com.


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread AKHIL KORE
ok i can make it pdf format

On Mon, 5 Jun 2023 at 22:45, Vishesh Mangla 
wrote:

> Ya, who ll open up Linux for him 
>
> On Mon, 5 Jun, 2023, 22:43 Lakshyaraj Dash, 
> wrote:
>
>> Bro please send in pdf format so that it will be possible to open in
>> mobile
>>
>> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE,  wrote:
>>
>>> Hi django developer group.
>>>
>>>  I'm from india. I got one django assignment from xyz comapny. But i
>>> can't how to create  that logical way. Please help me. Below file is that
>>> assignment. Please open and see it.
>>> can any one send that type of related previous projects code.
>>>
>>> --
>>> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAB11hN95uN1HCSp66s_%3DLLf6Zux7AbtZap4RQ4nYBU2CcWMc%2Bw%40mail.gmail.com.


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread Sebastian Jung
Hey,

I am not senior django developer but this task sound relativ easy. What is
your problem? As senior it must be clear how you can create API endpoints
and create CRUD for different models or?

AKHIL KORE  schrieb am Mo., 5. Juni 2023, 19:05:

> Hi django developer group.
>
>  I'm from india. I got one django assignment from xyz comapny. But i can't
> how to create  that logical way. Please help me. Below file is that
> assignment. Please open and see it.
> can any one send that type of related previous projects code.
>
> --
> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAKGT9mxoBdE_M4LHy%2Bg4FpritbKAEA5-D1Bwvxb%3Djpv%3Djg7dGA%40mail.gmail.com.


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread Vishesh Mangla
Ya, who ll open up Linux for him 

On Mon, 5 Jun, 2023, 22:43 Lakshyaraj Dash, 
wrote:

> Bro please send in pdf format so that it will be possible to open in mobile
>
> On Mon, 5 Jun, 2023, 22:35 AKHIL KORE,  wrote:
>
>> Hi django developer group.
>>
>>  I'm from india. I got one django assignment from xyz comapny. But i
>> can't how to create  that logical way. Please help me. Below file is that
>> assignment. Please open and see it.
>> can any one send that type of related previous projects code.
>>
>> --
>> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CACaE8x5JW1bfPvmbWLp-7qmP3Ya-5%3DP30vLkCgj8sc-e9fVvDg%40mail.gmail.com.


Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread Lakshyaraj Dash
Bro please send in pdf format so that it will be possible to open in mobile

On Mon, 5 Jun, 2023, 22:35 AKHIL KORE,  wrote:

> Hi django developer group.
>
>  I'm from india. I got one django assignment from xyz comapny. But i can't
> how to create  that logical way. Please help me. Below file is that
> assignment. Please open and see it.
> can any one send that type of related previous projects code.
>
> --
> 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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAF7qQgCBQ9jkBb%3DX0TvaSZMcqBRoKYEWM3XFMTddmhBvGDxO8A%40mail.gmail.com.


I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread AKHIL KORE
Hi django developer group.

 I'm from india. I got one django assignment from xyz comapny. But i can't 
how to create  that logical way. Please help me. Below file is that 
assignment. Please open and see it.
can any one send that type of related previous projects code.

-- 
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/7988a2b0-95af-4c75-92db-670e541b9af6n%40googlegroups.com.


Backend Assignment.odt
Description: Zip archive


Re: keeps redirecting to non-existent url, please help

2023-06-05 Thread ALBERT ASHABA AHEEBWA
You need to us the some code (Installed apps, views.py as well as urls.py )
for us to help. They're all connected.



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Mon, 5 Jun 2023, 16:24 Kit Jenkins,  wrote:

> Hello everyone, I just finished my first tutorial django project, but now,
> when I'm trying to create a new project it keeps redirecting form home page
> with blank url ' ' to non-existent app url 'catalog/'. I deleted all
> files from previous project, I tried overriding path with RedirectView to a
> new app view, I changed my python virtual environment but to no avail. It
> keeps asking for a URL that is not defined in any way. How do I fix it?
>
> --
> 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/0e6a35e7-24fd-42c7-acdc-70987990f4d1n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0e6a35e7-24fd-42c7-acdc-70987990f4d1n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAAQecPeFxvEvDxMRVQpwgSkCT8mL0jhaXhLOoGrBFPX5w-fJ6A%40mail.gmail.com.


Re: Django aws deployment doesn't work, please help

2023-06-05 Thread Jishnu Ramachandran
This tutorial will help you to achieve what you are trying.

On Mon, Jun 5, 2023 at 2:32 PM Jishnu Ramachandran <
jishnuchandrala...@gmail.com> wrote:

> https://www.youtube.com/watch?v=Xlp9G137-MI
>
> On Mon, Jun 5, 2023 at 5:51 AM Makan Dianka 
> wrote:
>
>> Do you have an account on aws ? Do you have a web server on aws ?
>> Can you ssh into your server aws ?
>>
>>
>> Le dim. 4 juin 2023, 21:17, Francesco Gariboldi <
>> fgfrancescogaribol...@gmail.com> a écrit :
>>
>>> Hi I developed a simple personal blog with Django and Nginx as a reverse
>>> proxy server and want to deploy It with AWS in the most cost effettive way.
>>> Which Is It? And I don't understand the ports flow between localhost,
>>> Django (uwsgi+gunicorn), Nginx, docker (compose), postgrSQL and AWS
>>> RDS...can someone give me help or advice 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 visit
>>> https://groups.google.com/d/msgid/django-users/592b6f65-a44b-498e-9a9a-0640181ab5d7n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/592b6f65-a44b-498e-9a9a-0640181ab5d7n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CABePkdZV7_Fck%3DmvC5L102L-p86thjDY5ySEML9gT981SLQ4RQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CABePkdZV7_Fck%3DmvC5L102L-p86thjDY5ySEML9gT981SLQ4RQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> [image: photo]
> *Jishnu Ramachandran*
> Python Developer
>
> +91 9496989663 <+91+9496989663> | jishnuchandrala...@gmail.com,
> jishnu.chand...@beo.in
> Chandralayam (H), Perikkalloor (PO)
> <https://www.facebook.com/jishnuchandralayam/>
> <http://www.instagram.com/jishnu__ramachandran/>
> <http://plus.google.com/u/0/109101756120782625059>
>
>

-- 
[image: photo]
*Jishnu Ramachandran*
Python Developer

+91 9496989663 <+91+9496989663> | jishnuchandrala...@gmail.com,
jishnu.chand...@beo.in
Chandralayam (H), Perikkalloor (PO)
<https://www.facebook.com/jishnuchandralayam/>
<http://www.instagram.com/jishnu__ramachandran/>
<http://plus.google.com/u/0/109101756120782625059>

-- 
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/CACoV%2BeEhxY8Vz1UPZGw%2BiKqZo%2BjcfKL3fLHQaZfb5U7qjAiBbQ%40mail.gmail.com.


  1   2   3   4   5   6   7   8   9   10   >