Re: Nested json in django rest framework

2022-06-05 Thread 'Kasper Laudrup' via Django users

On 05/06/2022 07.06, Koushik Romel wrote:
I want those #One and #Two to be in curly braces {} and not as square 
bracket [] , and Thanks in advance


A good start would be to understand what the difference between square 
brackets and curly braces is. The JSON format is very simple:


https://en.wikipedia.org/wiki/JSON#Syntax

So you actually want to convert your array to an object with anonymous 
properties/members. That doesn't really make any sense and wouldn't be 
valid JSON.


Of course you could write a dirty hack and do it anyway but I seriously 
doubt that's really what you want.


Hope that helps.

Kind regards,

Kasper Laudrup

--
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/037892b5-b138-3a5e-7ae4-16a2bf05d9bf%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Session in Python for Login and Logout

2022-06-06 Thread 'Kasper Laudrup' via Django users

On 06/06/2022 11.16, Mukul Verma wrote:

Hii,

Help me out in this stuff please, some steps for solve this out



Python is a programming language so there's no such thing as a "session 
for login and logout".


If you want someone to help you, you should try to clarify what you 
actually need help with. I assume you mean something with Django 
sessions but it's impossible for me or anyone else to know exactly what 
kind of issue you need to solve.


Kind regards,

Kasper Laudrup

--
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/ade6fd19-d942-f5e9-dc9e-1f921d94b648%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Session in Python for Login and Logout

2022-06-07 Thread 'Kasper Laudrup' via Django users

On 07/06/2022 06.59, Mukul Verma wrote:
yeah i was saying in Django Thanks Everyone please tell me something in 
steps for this like how to use session variable in django and can create 
session currently i am able to generate token (access and refresh) and 
further need to create session  with this.




https://docs.djangoproject.com/en/4.0/topics/http/sessions/

Kind regards,

Kasper Laudrup

--
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/0bb76cb7-85e8-129f-2a86-2817506e7c0a%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Session in Python for Login and Logout

2022-06-07 Thread 'Kasper Laudrup' via Django users

On 07/06/2022 06.59, Mukul Verma wrote:
yeah i was saying in Django Thanks Everyone please tell me something in 
steps for this like how to use session variable in django and can create 
session currently i am able to generate token (access and refresh) and 
further need to create session  with this.




https://docs.djangoproject.com/en/4.0/topics/http/sessions/

Kind regards,

Kasper Laudrup

--
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/5fc1ebc5-d538-2f13-55f0-2cecd9b79ba5%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need best tutorial

2022-06-12 Thread 'Kasper Laudrup' via Django users

On 12/06/2022 07.54, Ghalib Raja wrote:
hi there, i am beginner in python. can anyone share python best tutorial 
for web development please




Learn the basics of Python first then focus on web development later.

If you already have some experience with other languages I found this 
freely licensed book quite useful:


https://diveintopython3.net/

If you are a beginner in programming in general, Python is definitely a 
good starting language IMO but there might be better resources for 
absolute beginners that someone else can share.


Kind regards,

Kasper Laudrup

--
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/f8ec44cb-d1c5-99fb-ce5e-3cefcda67fa2%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: python instagram bot to upload posts

2022-06-14 Thread 'Kasper Laudrup' via Django users

On 14/06/2022 08.06, Abhinandan K wrote:
hello every one i'm trying to create a python instagram bot to upload 
posts..




That's great but how is this related to Django?

Maybe you should consider finding another place for all your questions 
as none of them really fit here.


Before doing that I would also strongly recommend reading something like 
this:


https://www.propublica.org/nerds/how-to-ask-programming-questions

Kind regards,

Kasper Laudrup

--
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/76cfacd6-da78-f5e6-f55e-fee7ecd895aa%40stacktrace.dk.


Re: how to create icon img api

2022-06-14 Thread 'Kasper Laudrup' via Django users

On 14/06/2022 18.03, Mahesh Ghule wrote:

how to create image icon api ..please support me



This is a good place to start:

https://www.propublica.org/nerds/how-to-ask-programming-questions

Kind regards,

Kasper Laudrup

--
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/76e01be1-5e45-6ab2-1e5c-7a48c1416c40%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need some help

2022-06-20 Thread 'Kasper Laudrup' via Django users

On 20/06/2022 18.39, Rohit Lohar wrote:
want to know how can I get the data from 
user and store it in database??




https://docs.djangoproject.com/en/4.0/intro/overview/

Kind regards,

Kasper Laudrup

--
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/1432de69-d1e5-0a7c-bca4-86e44f8ee9fb%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: hr and employee login api in django authendication

2022-06-27 Thread 'Kasper Laudrup' via Django users

On 27/06/2022 11.03, Ganush K wrote:
hr and employee login api in django authendication ..plz help ..hr view 
1.total employee ,salry mangement  then employee view only our 
account..any code or refer any things share me.. ganushgm2...@gmail.com




If you want someone to help you at least spent some time writing a 
question/request people have a chance of understanding.


Right now you just sound like a jerk and I doubt anyone will even 
consider doing anything to help you and that's not only because nobody 
has any idea what you are talking about.


Kind regards,

Kasper Laudrup

--
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/c845995d-ec5a-e367-3828-731f77e7f089%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Kindly Help

2022-06-27 Thread 'Kasper Laudrup' via Django users

On 27/06/2022 21.14, Habib ur rehman wrote:

raise MigrationSchemaMissing(
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create 
the django_migrations table ((1064, "You have an error
in your SQL syntax; check the manual that corresponds to your MySQL 
server version for the right syntax to use near '(6) NOT NULL)' at line 1"))




This should provide the help you need:

http://www.catb.org/~esr/faqs/smart-questions.html

Kind regards,

Kasper Laudrup

--
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/9d933d09-5710-3be1-3a75-4f36d4b17530%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Kindly Help

2022-06-27 Thread 'Kasper Laudrup' via Django users
On 27/06/2022 21.14, Habib ur rehman wrote:
> raise MigrationSchemaMissing(
> django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the 
> django_migrations table ((1064, "You have an error
> in your SQL syntax; check the manual that corresponds to your MySQL server 
> version for the right syntax to use near '(6) NOT NULL)' at line 1"))
> 

This should provide the help you need:

http://www.catb.org/~esr/faqs/smart-questions.html

Kind regards,

Kasper Laudrup

-- 
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/0E153B5A-77A5-4B76-9FEE-5CE903F63986%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: application/pgp-keys


Re: Kindly Help

2022-06-27 Thread 'Kasper Laudrup' via Django users
On 27/06/2022 21.14, Habib ur rehman wrote:
> raise MigrationSchemaMissing(
> django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the 
> django_migrations table ((1064, "You have an error
> in your SQL syntax; check the manual that corresponds to your MySQL server 
> version for the right syntax to use near '(6) NOT NULL)' at line 1"))
> 

This should provide the help you need:

http://www.catb.org/~esr/faqs/smart-questions.html

Kind regards,

Kasper Laudrup

-- 
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/72682CC5-DE9C-41CE-AEA0-7FC0BDDF82F8%40stacktrace.dk.


Re: Kindly Help

2022-06-28 Thread 'Kasper Laudrup' via Django users

On 27/06/2022 21.14, Habib ur rehman wrote:

raise MigrationSchemaMissing(
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the 
django_migrations table ((1064, "You have an error
in your SQL syntax; check the manual that corresponds to your MySQL server version 
for the right syntax to use near '(6) NOT NULL)' at line 1"))



This should provide the help you need:

http://www.catb.org/~esr/faqs/smart-questions.html

Kind regards,

Kasper Laudrup

--
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/0516c2fb-9114-e814-edb7-0b8a5b2770d2%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: infosys

2022-06-30 Thread 'Kasper Laudrup' via Django users
There are better places for storing your documents than public mailing 
lists.


Please try to use those instead.

Kind regards,
Kasper Laudrup

--
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/a322c7a5-16a4-8755-651e-75ff0547ade9%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: SMTPServerDisconnected

2022-07-01 Thread 'Kasper Laudrup' via Django users

On 01/07/2022 08.06, Tuan Truong wrote:

settings.py

EMAIL_HOST ='smtp.gmail.com '
EMAIL_PORT =587
EMAIL_HOST_USER ='t...@gmail.com '
EMAIL_HOST_PASSWORD =''
EMAIL_USE_TLS =True



That's really cool. Thanks a lot a lot for sharing this.

Kind regards,

Kasper Laudrup

--
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/82f7631d-f45f-785e-a11c-dc34c6fb5d37%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Live Streaming.

2022-07-06 Thread 'Kasper Laudrup' via Django users

On 06/07/2022 11.27, kasim saifi wrote:

I want Django live streaming. But I am not getting Django live streaming.P



We all want Django live streaming. We can hope you'll get it as well 
some day.


Good luck and kind regards,

Kasper Laudrup

--
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/d92cb60d-0629-8759-3c9b-03f8e8d74431%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Live Streaming.

2022-07-06 Thread 'Kasper Laudrup' via Django users

On 06/07/2022 18.07, 16-451 S.Kalyan wrote:

What is the mail for? I can't understand



Me neither. I guess we're all confused.

Kind regards,

Kasper Laudrup

--
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/41131a8a-d4f2-95fb-b0fa-debdcd8cc3a7%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Live Streaming.

2022-07-06 Thread 'Kasper Laudrup' via Django users
On 06/07/2022 18.07, 16-451 S.Kalyan wrote:
> What is the mail for? I can't understand
> 

Me neither. I guess we're all confused.

Kind regards,

Kasper Laudrup

-- 
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/EB0E9542-8213-4B88-B6AC-E519247E40AF%40stacktrace.dk.


Re: Live Streaming.

2022-07-06 Thread 'Kasper Laudrup' via Django users
On 6 July 2022 18.40.04 CEST, kasim saifi  wrote:
>I have to do live streaming in django. Tell me how can it be.

Have you done any research?

This seems quite relevant:

https://forum.djangoproject.com/t/can-i-develop-live-video-streaming-website-using-django/2428

Try to be a bit more specific. 

Kind regards,
Kasper Laudrup 

-- 
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/2ECCBBB8-7E6F-4334-82EA-0931001C6FB8%40stacktrace.dk.


Re: Fwd: Answer me as soon as possible?

2022-07-12 Thread 'Kasper Laudrup' via Django users

On 12/07/2022 09.43, Abhinandan K wrote:


Is anybody know how to install CLI tool with brew in Django



Reading this would help:

http://www.catb.org/~esr/faqs/smart-questions.html

Kind regards,

Kasper Laudrup

--
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/e7c9ad48-ce9e-b683-ee88-82d7c0a10033%40stacktrace.dk.


Re: Core Python Session - Google Classroom

2022-07-18 Thread 'Kasper Laudrup' via Django users
On 18 July 2022 10.44.29 CEST, Muhammad Juwaini Abdul Rahman 
 wrote:
>*sigh* This guy keep spamming this group.
>

Report it:

https://support.google.com/groups/answer/81275?hl=en

Not sure if it helps but it's worth a try.

Kind regards,
Kasper Laudrup 

-- 
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/71641C31-67AF-4BF7-B0ED-AD600FE07CD7%40stacktrace.dk.


Re: Django GDAL problem in M1 Chip Pro

2022-07-18 Thread 'Kasper Laudrup' via Django users
On 18 July 2022 07.47.08 CEST, Chandra Prakash Choubey 
 wrote:
>Hi ALL,
>I am getting this problem
>
>OSError: dlopen(/opt/homebrew/Cellar/gdal/3.3.1_2/lib/libgdal.dylib,
>6): no suitable image found.  Did find:
>/opt/homebrew/Cellar/gdal/3.3.1_2/lib/libgdal.dylib: mach-o, but
>wrong architecture
>/opt/homebrew/Cellar/gdal/3.3.1_2/lib/libgdal.29.dylib: mach-o,
>but wrong architecture
>
>Please respond as soon as possible.
>
>
>Regards,
>
>Chandra Prakash Choubey
>

Hi,

I was not able to respond faster than this. Hope it helps.

Kind regards, 
Kasper Laudrup

-- 
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/A624C5E2-9E3A-4714-B25E-B6299640F65B%40stacktrace.dk.


Re: Django GDAL problem in M1 Chip Pro

2022-07-18 Thread 'Kasper Laudrup' via Django users
On 18 July 2022 18.46.07 CEST, Chandra Prakash Choubey 
 wrote:
>Noting is in the content.
>


Considering you didn't actually ask a question I don't know which kind of 
response you were hoping for.

At least you got a fast response. Seemed like that was important to you.

If you want a useful response on the other hand, consider writing a question 
someone can actually answer.

Kind regards, 
Kasper Laudrup

-- 
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/7696215E-8E5E-4C6E-82A6-6006EEC847E6%40stacktrace.dk.


Re: Django GDAL problem in M1 Chip Pro

2022-07-18 Thread 'Kasper Laudrup' via Django users
On 18 July 2022 18.46.07 CEST, Chandra Prakash Choubey 
 wrote:
>Noting is in the content.
>


Considering you didn't actually ask a question I don't know which kind of 
response you were hoping for.

At least you got a fast response. Seemed like that was important to you.

If you want a useful response on the other hand, consider writing a question 
someone can actually answer.

Kind regards, 
Kasper Laudrup

-- 
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/A7F6B94E-6C84-4980-8D6F-C0ACC3A253E6%40stacktrace.dk.


Re: Django GDAL problem in M1 Chip Pro

2022-07-19 Thread 'Kasper Laudrup' via Django users
On 18 July 2022 18.46.07 CEST, Chandra Prakash Choubey 
 wrote:
>Noting is in the content.
>

Considering you didn't actually ask a question I don't know which kind of 
response you were hoping for.

At least you got a fast response. Seemed like that was important to you.

If you want a useful response on the other hand, consider writing a question 
someone can actually answer.

Kind regards, 
Kasper Laudrup

-- 
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/7057D452-0638-4A63-B270-6367382529AC%40stacktrace.dk.


Re: Google Authentication code

2022-07-20 Thread 'Kasper Laudrup' via Django users
On 20 July 2022 15.03.20 CEST, Ankit Chaurasia  
wrote:
>Hello Dev,
>Can anyone send me Google Authentication code or any exp ?
>

https://www.section.io/engineering-education/django-google-oauth/

That was the first page I found using one of those "internet search engines" 
you might have heard of. There are many more guides and examples out there.

Kind regards,
Kasper Laudrup

-- 
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/2E958F20-C973-4D9B-A3ED-DCD39024AE30%40stacktrace.dk.


Re: HOW TO RUN DJANGO PROJECT

2022-07-22 Thread 'Kasper Laudrup' via Django users

On 22/07/2022 16.11, Edward Deus Misogoro wrote:

Please help



With what?

Kind regards,

Kasper Laudrup

--
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/447933e2-2691-7e4c-bade-85e6ee19e917%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: django-admin startproject --template error

2022-08-08 Thread 'Kasper Laudrup' via Django users

On 08/08/2022 10.46, xu brandy wrote:


WechatIMG75.png
An error was reported using the GITLab repository to specify template 
creation projects




And you expect everyone to be able to guess which Gitlab repository 
you're talking about? You even made an effort trying to hide it.


But whatever repository you're fetching the zip file from doesn't 
contain a valid zip file as the error message clearly states.


Only you know why that might be with the information you've shared so far.

Kind regards,

Kasper Laudrup

--
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/1d1b090d-d394-5d61-1c41-393a109c9e39%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread 'Kasper Laudrup' via Django users

On 13/08/2022 09.04, Dieu merci Dramani wrote:

This work :
productId:  1 action:  add
cart.js:9 USER: setraco
cart.js:20 setraco is logged in ! Sending data ...

cart.js:22
Here is the errors that I'm trying without success:
POST http://127.0.0.1:8000/update_Item/ 
 403 (Forbidden)

updateUserOrder @ cart.js:22
(anonymous) @ cart.js:14

VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "


Most likely your updateItems functions raises and exception causing an 
HTTP 403 response. The error page is then being rendered as HTML by 
Django which causes your Javascript code to fail when trying to parse it 
as JSON.


You should most likely be able to find the root cause of the exception 
in your log files or the output of your developer console so you known 
how to fix it. I would guess something related to access rights on your 
database or similar but the log should provide that information.


You should also consider a way of returning JSON instead of HTML when 
returning errors to the client based on the clients "Accept" header. I'm 
sure there's some generic way to do that but I haven't looked into it.


Kind regards,

Kasper Laudrup

--
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/8e25f737-2114-fe2a-b0e1-aafc7fa742f2%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 13/08/2022 09.04, Dieu merci Dramani wrote:

This work :
productId:  1 action:  add
cart.js:9 USER: setraco
cart.js:20 setraco is logged in ! Sending data ...

cart.js:22
Here is the errors that I'm trying without success:
POST http://127.0.0.1:8000/update_Item/ 
 403 (Forbidden)

updateUserOrder @ cart.js:22
(anonymous) @ cart.js:14

VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "


Most likely your updateItems functions raises and exception causing an 
HTTP 403 response. The error page is then being rendered as HTML by 
Django which causes your Javascript code to fail when trying to parse it 
as JSON.


You should most likely be able to find the root cause of the exception 
in your log files or the output of your developer console so you known 
how to fix it. I would guess something related to access rights on your 
database or similar but the log should provide that information.


You should also consider a way of returning JSON instead of HTML when 
returning errors to the client based on the clients "Accept" header. I'm 
sure there's some generic way to do that but I haven't looked into it.


Kind regards,

Kasper Laudrup

--
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/641469d8-bd7e-7aee-1a03-ed3155c47ecd%40stacktrace.dk.


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-14 Thread &#x27;Kasper Laudrup&#x27; via Django users
On 13/08/2022 09.04, Dieu merci Dramani wrote:
> This work :
> productId:  1 action:  add
> cart.js:9 USER: setraco
> cart.js:20 setraco is logged in ! Sending data ...
> 
> cart.js:22
> Here is the errors that I'm trying without success:
> POST http://127.0.0.1:8000/update_Item/  
> 403 (Forbidden)
> updateUserOrder @ cart.js:22
> (anonymous) @ cart.js:14
> 
> VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "
>  Promise.then (async)
> updateUserOrder @ cart.js:33
> (anonymous) @ cart.js:14
> 

Most likely your updateItems functions raises and exception causing an HTTP 403 
response. The error page is then being rendered as HTML by Django which causes 
your Javascript code to fail when trying to parse it as JSON.

You should most likely be able to find the root cause of the exception in your 
log files or the output of your developer console so you known how to fix it. I 
would guess something related to access rights on your database or similar but 
the log should provide that information.

You should also consider a way of returning JSON instead of HTML when returning 
errors to the client based on the clients "Accept" header. I'm sure there's 
some generic way to do that but I haven't looked into it.

Kind regards,

Kasper Laudrup

-- 
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/6AE4A623-271C-4649-80DD-A04FEF7AAD28%40stacktrace.dk.


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-14 Thread &#x27;Kasper Laudrup&#x27; via Django users
On 13/08/2022 09.04, Dieu merci Dramani wrote:
> This work :
> productId:  1 action:  add
> cart.js:9 USER: setraco
> cart.js:20 setraco is logged in ! Sending data ...
> 
> cart.js:22
> Here is the errors that I'm trying without success:
> POST http://127.0.0.1:8000/update_Item/  
> 403 (Forbidden)
> updateUserOrder @ cart.js:22
> (anonymous) @ cart.js:14
> 
> VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "
>  Promise.then (async)
> updateUserOrder @ cart.js:33
> (anonymous) @ cart.js:14
> 

Most likely your updateItems functions raises and exception causing an HTTP 403 
response. The error page is then being rendered as HTML by Django which causes 
your Javascript code to fail when trying to parse it as JSON.

You should most likely be able to find the root cause of the exception in your 
log files or the output of your developer console so you known how to fix it. I 
would guess something related to access rights on your database or similar but 
the log should provide that information.

You should also consider a way of returning JSON instead of HTML when returning 
errors to the client based on the clients "Accept" header. I'm sure there's 
some generic way to do that but I haven't looked into it.

Kind regards,

Kasper Laudrup

-- 
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/1D8C5AC7-1367-4B02-B908-6D5D2D8D8618%40stacktrace.dk.


Re: About page

2022-08-14 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 14/08/2022 19.06, Regan De Guzman wrote:
My about page is still throwing an error, i've tried what I know, i 
can't seem to get it up and running. It shows that the template does not 
exist.




No one knows what your about page is and nobody knows what you know or 
don't know. I don't see how you expect anyone to be able to help you 
with the information you've provided.


I do know that you don't know how to ask a question so maybe you should 
start by looking here:


http://www.catb.org/~esr/faqs/smart-questions.html

Kind regards,

Kasper Laudrup

--
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/73d28790-0ba2-a568-3809-03c837045237%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: oauth 2.0 integration

2022-08-16 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 16/08/2022 08.38, Samapika Nayak wrote:

Hello guys,
Please help me integrate oauth 2.0 for google login



Help you with what?
What have you done so far?
Where are you having issues?

Kind regards,

Kasper Laudrup

--
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/47c8be16-be83-8de7-5f94-4deac8832db6%40stacktrace.dk.


Re: oauth 2.0 integration

2022-08-16 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 16/08/2022 15.46, Abdallah Sow wrote:
Hello you are well I have a question and I would like you to help me 
please I want to make a request to join three different tables Staff 
Customers Order.




Look at "How to start a new conversation" here:

https://support.google.com/groups/answer/1046523?hl=en

Kind regards,

Kasper Laudrup

--
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/eeac2f4b-b2f0-7675-42d0-aec6e34e1eef%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: What Programming Language should i learn

2022-08-30 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 30/08/2022 16.35, fawemimo olawale wrote:

Which of these  programming language should i learn

Please I need counselling on this two language though i have prior 
knowledge on Python Web Framework (Django) as a beginner's but i want 
Backend Language


JAVA or ASP.Net



ASP.net isn't a programming language, so you should probably start by 
learning what a programming language is before attempting to learn to 
use one.


Additionally Django is very much a backend framework so your question 
doesn't make any sense.


Kind regards,

Kasper Laudrup

--
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/e53820e7-b84c-434a-608a-96eefa0ab3ee%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Bug with Watchman on Windows

2022-08-31 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 31/08/2022 18.52, David V wrote:

Hello All,

Apologies if this is the wrong place to submit this. I couldn't find 
clear enough documentation on where to do this, so I guess I ended up here.




Maybe open an issue on the issue tracker on github?

https://github.com/facebook/watchman

Kind regards,

Kasper Laudrup

--
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/4a0fec42-ee50-d9d5-5d60-913c607e551c%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Deploy Django Project in AAPanel

2022-08-31 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 01/09/2022 02.10, Javier L. Camacaro wrote:

Does someone how to deploy a Django Project in AAPanel?



https://forum.aapanel.com/d/13338-python-manager-deploy-djangoblog

Kind regards,

Kasper Laudrup

--
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/f916369f-b05d-0c33-d094-49dc401157e1%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Bad Request 400 in Django

2022-09-01 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 01/09/2022 17.03, Eric smith wrote:

I have some issues in running django server.

System check identified no issues (0 silenced).
September 01, 2022 - 10:58:47
Django version 4.0.1, using settings 'project.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[01/Sep/2022 10:58:57] "GET / HTTP/1.1" 400 143
[01/Sep/2022 10:58:58] "GET /favicon.ico HTTP/1.1" 400 143

Please help me if you are expert on it.



HTTP 400 error means the client sent a request the server couldn't 
understand. What the client is, what it sent and why the server couldn't 
understand it, no expert is able to tell you. Only you can answer that.


Kind regards,

Kasper Laudrup

--
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/52c013c6-f52b-8843-5727-95f520e4a712%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Hire Me

2022-09-03 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 03/09/2022 14.00, Onjomba Felix wrote:
https://www.felixonjomba.netlify.app/ 


You should remove the "www" part from the URL when sharing the link to 
avoid TLS certificate validation errors.


The wildcard certificate you are using (*..netlify.app) matches 
felixonjomba.netlify.app but *not* www.felixonjomba.netlify.app.


Good luck with the job hunting.

Kind regards,

Kasper Laudrup

--
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/10f60fe3-9b2b-38b7-636b-82705c95d4ad%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Deploy Django Project in AAPanel

2022-09-03 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 01/09/2022 15.51, Javier L. Camacaro wrote:
Thanks Kasper, I did it with this tutorial, works fine, but with my 
project it doesn't.


I received a lot of errors:



I know nothing about AAPanel and since you don't seem to get any 
responses here, how about posting on the forum related to AAPanel where 
the tutorial was shared?


This is most likely more related to AAPanel than Django.

Kind regards,

Kasper Laudrup

--
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/e7c6b669-ccfd-3515-4143-cfe2d62440d7%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Facing Problem

2022-09-10 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 10/09/2022 12.00, Anil Singh wrote:

Dear All
When i running our program then coming this type of error, what is 
solutions




Hard to know since you haven't provided enough information for anyone to 
help you.


Remember that no one has any idea what you are trying to achieve, what 
your code looks like, if your code has worked and you just broke it etc.


Learn how to ask a good question if you want a good answer.

Kind regards,

Kasper Laudrup

--
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/f86be854-bed5-f9b1-87c0-106641842f31%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: DJANGO ADMIN SPECIFICATION

2022-09-10 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 10/09/2022 03.24, nana kwame wrote:
Please I would like to ask if Django admin can be used to update and 
delete and create webpages also.


If you write the appropriate models and views then yes, it can.

And also if it can be used to update 
information on the user side from the admin panel. Thank You




Yes.

Kind regards,

Kasper Laudrup

--
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/a64c3d13-bd64-6c3a-07de-a50c16d3f51c%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: What Programming Language should i learn

2022-09-10 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 10/09/2022 01.35, arts maxwell Anderson wrote:

i need job in django anyone



If you want anyone to take you seriously you should probably do a little 
more effort than that.


Learning how to post to a mailing list/forum and not highjacking 
existing threads would be a good start.


Kind regards,

Kasper Laudrup

--
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/2ea18945-c5b5-50fd-5df6-f12c0b1ef1c1%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: SessionStore attribute error

2022-09-19 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 20/09/2022 08.21, shiva singh wrote:

hello everyone please help how can solve this problem?



I suggest you ignore all the replies you've already gotten and then post 
the exact same question a third time.


Kind regards,
Kasper Laudrup

--
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/04483ea1-1cd3-ed58-2e77-19eca96ccf40%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Starting Django project with Docker

2022-09-27 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 27/09/2022 11.35, Prabakaran Balaji wrote:

Hello Folks,

I tried to set the permission on app directory, but still facing the 
same problem. Any additional thoughts?


Which permission did you set? It looks like you set the owner of the app 
directory to your user.


Is your user the same as the one running the app?
Which directory are you trying to write to?
Is it the same as the application directory?
The user running the app needs write permissions to that directory.

Do you know the basics of Unix permissions? Otherwise that might be a 
good place to start:


https://www.softwaretestinghelp.com/unix-permissions/

This was just the first link I found but it looks OK.

If you do already know how Unix permissions work you need to dig a bit 
more into which permissions are actually being required instead of just 
setting them blindly and hoping it works.


Kind regards,

Kasper Laudrup

--
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/f8f5d3e0-2236-7fe4-744a-2f0fa1b43ad2%40stacktrace.dk.


Re: Sending Live Streaming Images from Client’s Webcam to Django Server

2022-10-10 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 08/10/2022 21.28, Anshuman Thakur wrote:

Sr plz anyone help me for this question



Which question?

It would be easier for someone to help you if you actually asked a question.

Kind regards,

Kasper Laudrup

--
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/fe047fd3-39e1-3eaf-eb41-05ecc54bfc34%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: how to connect mongodb in my project,

2022-10-26 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 26/10/2022 16.52, pythoon r wrote:
please help me,i've one requirement (project) django with mongodb.how to 
connect mongo to django .i was tried some method i cant connect

how to config mongoengine,django-mongo-engine in my settings.py file



https://www.mongodb.com/compatibility/mongodb-and-django

Kind regards,

Kasper Laudrup

--
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/dbf74873-192b-5e9c-f664-3d90b476b225%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Hello, why am I getting this error

2022-10-27 Thread &#x27;Kasper Laudrup&#x27; via Django users

As the error message clearly states, the path:

 6. delete-room// [name='delete-room']


doesn't match:


The current path, delete-room/6/>, didn’t match any of these.


Documentation:

https://docs.djangoproject.com/en/4.1/topics/http/urls/

Kind regards,

Kasper Laudrup

--
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/d8011f3a-f426-19f9-2107-1be5152dddf7%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-29 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 28/10/2022 12.35, Adeyemi Deji wrote:


I have tried this command in Dockerfile: RUN pip install --user 
psycopg2==2.9.5

I got the command on StackOverflow but still didn't resolve the issue.



Seems like you need the postgresql development package or similar to 
build psycopg2 from source. Try using the binary package 
(psycopg2-binary) instead as suggested here:


#0 26.78       If you prefer to avoid building psycopg2 from source, 
please install the PyPI

#0 26.78       'psycopg2-binary' package instead.


Alternatively, ensure the postgresql development package is installed in 
your Docker container.


Kind regards,
Kasper Laudrup

--
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/86a90447-1523-5ca5-cb59-2c77f9792289%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: help for django project

2022-10-30 Thread &#x27;Kasper Laudrup&#x27; via Django users

Change line 37 of your frobnicater.py file from using int to string.

Alternatively, if that doesn't work, consider asking a question that 
someone can actually answer.


Kind regards,

Kasper Laudrup

--
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/f439a5d6-17bb-0040-298a-9387117d91c5%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: how can i create databases, routers and install apps in runtime?

2022-10-31 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 31/10/2022 13.28, emilton mendoza wrote:
Could someone tell me how I can add new values ​​to the variables of 
settings.py?




The same way you would add new values to any other Python variable.

Kind regards,

Kasper Laudrup

--
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/0c531163-409b-b6de-a25d-b2b7636a6df6%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-31 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 31/10/2022 19.32, Adeyemi Deji wrote:


Hello, fam!

Found a solution to the problem. Updated the Dockerfile. Check below



Great to hear you figured it out and thanks for sharing. Out of 
curiosity, any reason why you chose to build the psycopg2 package from 
source instead of using a prebuilt binary?


I would assume using the prebuilt binary would have been simpler and of 
course make it much faster to build your container than building your 
own package from source.


Thanks and kind regards,
Kasper Laudrup

--
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/fa5906c5-929f-a2b8-91e2-72d8b0fb8194%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: I need some clarifications about managing Files in FIle storage

2022-11-01 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 01/11/2022 05.29, MaheshKumar wrote:

I want to know about the Managing files topic specifically in file storage.



https://docs.djangoproject.com/en/4.1/ref/files/storage/

Kind regards,

Kasper Laudrup

--
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/0e6e8def-12a5-4121-fda3-06886f2e471f%40stacktrace.dk.


Re: Facing attribue Error

2022-11-01 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 01/11/2022 06.26, MaheshKumar wrote:
AttributeError at /employee/type object 'employeeapp' has no attribute 
'object'


How do you expect anyone to be able to help you without sharing any code 
or explaining what you are trying to do?


Kind regards,
Kasper Laudrup

--
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/cbda2e59-5cdf-bb94-041a-0783b5e4b65d%40stacktrace.dk.


Re: my project doesnt insert into the database

2022-11-02 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 01/11/2022 14.09, Mh Raffi wrote:

Hi Sorry Looking for thread to my problem. Landed here.


That is not how a mailing list or forum works. You don't find an 
existing thread and use it for a completely unrelated issue.


You simply post a new message/mail with your issue instead. Maybe 
reading this would be a good start:


https://support.google.com/groups/

Kind regards,

Kasper Laudrup

--
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/ea36ed7e-094f-c102-9793-64fe87ccc4e2%40stacktrace.dk.


Re: got error in terminal, ubuntu

2022-11-02 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 02/11/2022 06.43, AKHIL KORE wrote:
(myprojectenv) user@DIPL-PC290:~/myprojectdir$ django-admin.py 
startproject myproject ~/myprojectdir

django-admin.py: command not found



For security reasons the current working directory is not in your PATH 
on Unix systems. You need to provide the full path to the executable you 
want to run, eg. ./django-admin.py.


Of course, the file needs to have the executable bit set as well.

Alternatively, ensure that django-admin.py is in your PATH environment 
as well as being executable of course.


You could also run the python source with the python interpreter instead 
of making it executable.


Kind regards,

Kasper Laudrup

--
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/32dd97ae-119b-0fa6-be8c-c3830e7d03cc%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: I con't able to view the image in the webpage.

2022-11-03 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 03/11/2022 06.01, MaheshKumar wrote:

i cont able to view the image in the webpage,  found an error on path.



Well that sucks. I'm sure it's a nice image.

Don't worry though, there are many other webpages with many more nice 
images you can look at instead.


Hope that helps.

Kind regards,
Kasper Laudrup

--
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/e48da2a4-0896-f883-ad35-cb658dd66d4f%40stacktrace.dk.


Re: error

2022-11-05 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 05/11/2022 16.38, Balogun Awwal wrote:

I don’t understand what you mean



That you made a typo in your settings.

Using an editor that can highlight such mistakes can be quite 
convenient. Not only would it have saved you from having to post a 
question here, you wouldn't even have to (re)start your Django 
development server.


Kind regards,
Kasper Laudrup

--
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/c2fb9014-7feb-75e8-8e44-85f0b2420dc1%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Hi need a solution

2022-11-07 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 07/11/2022 08.20, Mh Raffi wrote:


I have deployed to post g res p g admin4 and deleted db. s q lite from 
Django. and set my allowed host =['*']


Am getting server [500].

if any help will be appreciated



You need to look in your log files to find the cause of the 500 error. 
That will make it much, much easier to debug.


Maybe have a look here:
https://docs.djangoproject.com/en/4.1/topics/logging/

Kind regards,
Kasper Laudrup

--
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/48520f6c-5f5b-7bd2-1d2f-f3076510968a%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Hosting django with Namecheap

2022-11-08 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 08/11/2022 10.41, Namanya Daniel wrote:
Hello, am hosting a django application with namecheap for the very first 
time and am getting " Internal Server ErrorError 500" , in the error 
log, wsgi.py shows that there's not settings


how do i handle this



You add the settings.

Kind regards,
Kasper Laudrup

--
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/3b848e58-7be2-8d92-6efe-14abc2df8b81%40stacktrace.dk.


Re: Reply: Re: Hosting django with Namecheap

2022-11-08 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 08/11/2022 13.58, bradie poa wrote:

its not a good idea



Agreed. It's a horrible idea.

Kind regards,
Kasper Laudrup

--
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/5009e514-de20-962e-a562-8637aa36e0a9%40stacktrace.dk.


Re: You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

2022-11-09 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 09/11/2022 10.52, Priyanka Sivaratri wrote:

Hi,
I am new to django and I appreciate your quick help. I am able to run 
django server on localhost:8000 but I am seeing this error :
*You are seeing this page because DEBUG=True is in your settings file 
and you have not configured any URLs.*


The error message tells you exactly what is wrong. If you don't 
understand it I highly suggest you follow the official Django tutorial 
before going any further:


https://docs.djangoproject.com/en/4.1/intro/

After that it should be much clearer what is wrong with your URL 
configuration.


Kind regards,
Kasper Laudrup

--
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/84b0068d-2441-ad9f-aa6e-dfea764b51fa%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: ValueError: invalid literal for int() with base 10: '127.0.0.1:3306'

2022-11-14 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 14/11/2022 13.09, bloomlync monisha wrote:

  Hello Everyone,
                     I was facing an error while I am trying to connect 
the database through mysql, when I run the database I got this below 
mentioned error, here i attached the cmd screenshot and coding 
screenshot for you references.


Kindly help me to sort out this error.

Error:

     kwargs["port"] = int(settings_dict["PORT"])
                      ^^
ValueError: invalid literal for int() with base 10: 
'127.0.0.1:3306'


As the error message clearly states, the string '127.0.0.1:3306' cannot 
be converted to an integer in base 10.


You most likely meant to write 3306 instead and specify the IP address 
somewhere else, but of course, you're the only one who knows for sure.


Kind regards,
Kasper Laudrup

--
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/523e7dc8-c838-b857-d318-bc368299bcda%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 15/11/2022 18.49, Peter Mwai wrote:

Hello experts,
I was trying to start the server using 'python manage.py runserver' but 
encountered this error,




You have a bug somewhere in your code. That most likely happened after 
you made a change somewhere.


Look into what you changed, fix the bug and the error should disappear.

Hope that helps.

Kind regards,

Kasper Laudrup

--
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/27422127-db9b-b4f0-bca7-204642edaeb0%40stacktrace.dk.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 16/11/2022 11.33, Raúl Luján Delgado wrote:

Hello Kasper,

Probably is a Windows problem, because if you follow the rules of 
differents tutorials, is easy to run the runserver,




Could be. Could be any kind of problem really. Your guess is as good as 
mine.


Only Peter Mwai knows but it doesn't seem like he find it necessary to 
share the relevant details so we can only guess.


Kind regards,
Kasper Laudrup

--
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/91069261-4a1d-6a36-ca56-55f13aee56e5%40stacktrace.dk.


Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 16/11/2022 12.27, Jitendra kumar Patra wrote:

Could you share what type of error you are getting?



I'm not getting any errors. I don't know any more than you. We have to 
wait and see if Peter Mwai finds it relevant to share what is needed for 
any of us to help him.


Kind regards,
Kasper Laudrup

--
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/16bb2392-007e-b1f7-aefb-d80df7c64825%40stacktrace.dk.


Re: Django Request

2022-11-22 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 22/11/2022 12.20, nana kwame wrote:

Please how many requests can Django process based on real test conducted.


All of them.

Kind regards,

Kasper Laudrup

--
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/b9779b25-6f0e-66a3-d441-69c2f437a8c5%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Trubles with running the server

2022-12-07 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 06/12/2022 21.04, al3tiby0 wrote:

Hi guys, when i tried to run the server, it gives me this error:

ModuleNotFoundError: No module named 'd'



Your INSTALLED_APPS should be an array, not a string.

Kind regards,
Kasper Laudrup

--
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/e483e24a-982d-f2f3-8c1b-9a54d947c64a%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Resolving my display

2022-12-15 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 15/12/2022 15.37, Adekola Aderonmu wrote:

so sorry


Have you tried looking into what the error message informs you to do?

Does PMSdetails_data/urls.py have any URL patterns in it?

Kind regards,

Kasper Laudrup

--
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/893d96a0-150e-a980-6ee7-da7df66a4bee%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: how to upload large file in django

2022-12-16 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 16/12/2022 09.52, MD SHARIF FOYSAL SHORON wrote:

can anyone help me that how to upload a 5gb video by django model form?



Uploading a large file is not different from upload a small file so hard 
to know what kind of help you need.


Maybe try to be a bit more specific. Are you facing any issues?

Kind regards,

Kasper Laudrup

--
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/b47edc2f-d483-f8f4-0eff-2dde64cb89b7%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: AttributeError at /form/

2022-12-18 Thread &#x27;Kasper Laudrup&#x27; via Django users

Reading something like this:

https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd

should help guide you in the right direction.

Kind regards,
Kasper Laudrup

--
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/00319842-092e-3210-43b1-c1152672968a%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: ImportError:

2022-12-23 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 23/12/2022 12.36, JOSEPH OCHELEBE O. wrote:

Am getting this errors bellow when i tried to run my Django project

     from . import views
ImportError: cannot import name 'views' from 'it_training_platform' 
(C:\Users\Dreams 
Reality\Desktop\Django-project\it_training_platform\it_training_platform\__init__.py)




This will guide you in the right direction:

https://www.propublica.org/nerds/how-to-ask-programming-questions

Kind regards,
Kasper Laudrup

--
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/fb21bd74-5eb8-d331-ad97-b1ca1e1d94c1%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: NEW BIE HERE HOW CAN I LEARN DJANGO FAST

2022-12-24 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 24/12/2022 14.03, Aayush Gurung wrote:
Hey, I just want to know how you've learned django framework and what 
resources did you use. It would be great if anyone can suggest me some 
studying resources.

Thank you.



https://docs.djangoproject.com/en/4.1/intro/tutorial01/

Also, no need to SHOUT YOUR SUBJECT. Just makes your post seem more like 
noise.


Kind regards,

Kasper Laudrup

--
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/0ba7cfba-622b-e0ad-8943-335faaea3a03%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Location identification with login

2022-12-25 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 25/12/2022 20.52, tristant wrote:
Is there a mechanism in Django where we can identify the location of 
login? Any reading sources regarding this functionality would be much 
appreciated.




What you're looking for is something called geoip. To the best of my 
knowledge there's no such thing build into Django (wouldn't really make 
much sense anyway) but it should be trivial to query some geoip database 
from your code and get a somewhat reliable idea on where that IP is 
coming from.


There's no way that can be accurate but it might be useful for something 
like detecting a locale (that the user can then change) or similar.



Along the same line, is there a way to prevent a login attempt if the 
location is within certain blacklisted IP subnets?




It is trivial to spoof a source IP address once you reach the Django 
application part of the communication. That's more of a feature than a 
bug actually because of things like proxies etc.


If you want to blacklist IPs you have to do that on a lower level. For a 
single server running Linux something like netfilter/iptables might be 
used but I'm sure there are some more convenient scripts/services etc. 
that might be used. The main point is that you cannot do this from your 
Django code.


Hope that helps you in the right direction.

Kind regards,
Kasper Laudrup

--
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/e83a7b85-6fd3-ced8-b4bf-fdf77650cfe8%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Facing FileNotFound Error

2022-12-26 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 26/12/2022 09.11, MaheshKumar wrote:

Hi,

I just facing an FileNotFound Error while runserver through the poetry 
shell with settings config.


Please help to resolve this



This will guide you in the right direction:

https://www.propublica.org/nerds/how-to-ask-programming-questions

Kind regards,
Kasper Laudrup

--
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/43ffeb0f-15d0-1801-16aa-48ae7132a170%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: can any one help

2022-12-26 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 25/12/2022 21.18, 'Gaurav Mishra' via Django users wrote:
i have a list of items .and user can generate pdf of that item but one 
condition is there when user genrate pdf after that when new item added 
in list and after adding if your generate pdf then he show only newly 
added item.


i need help?



I think you need help in writing a question. It is impossible to 
understand what you are trying to do, so no one will be able to help you.


Maybe share the code you have so far and take some time to write a 
question in proper English?


Kind regards,
Kasper Laudrup

--
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/2a82314a-c8b5-9d4c-22aa-87887377a454%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: stuck in my payment gateway

2022-12-28 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 28/12/2022 20.21, Music Fm wrote:
hi guys, so i am building a payment gate way using django but i am stuck 
on how to integrate cards in the views for the form. please i need help




Which kind of help do you think anyone will be able to provide when you 
haven't given any information at all?


If you don't learn how to communicate with other people you'll be stuck 
forever.


Consider start by reading this:

https://www.propublica.org/nerds/how-to-ask-programming-questions

Kind regards,
Kasper Laudrup

--
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/9fc7fb33-7493-a10f-22ed-e720dde47f5e%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Hello, there was an error registering users!

2023-01-07 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 07/01/2023 19.20, Dilmurod Dilmurod wrote:

django user activation via gmail gives error!
EROR: forbidden



You have an error on line 17 of settings.py. It should be:

VERY_SECRET_PASSWORD="hunter2"

Kind regards,
Kasper Laudrup

--
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/5978f38e-fc0e-e7e5-7136-a9b08698f57e%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: any solutions guys on the ERROR admin E108 on list_display[2] attributes not callable

2023-01-10 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 10/01/2023 12.53, E Mollz wrote:
: (admin.E108) The value of 
'list_display[2]' refers to 'stock', which is not a callable, an 
attribute of 'ProductAdmin', or an attribute or method on 
'products.Product'.




Unfortunately you've run into one of the issues modern science has not 
yet been able to solve. Nothing to do about that so you might as well 
give up.


Sorry about that.

Kind regards,
Kasper Laudrup

--
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/e8c7b942-e925-1e95-e78b-3db34fad786e%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: how can i solve this error?

2023-01-23 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 23/01/2023 18.20, Vanessa kabanyana wrote:
ModuleNotFoundError: No module named 'agriApp.apps.agriAppConfig'; 
'agriApp.apps' is not a package




Since you're the only one who knows what caused that error, you're also 
the only one who can solve it.


If you want someone else to help you consider taking the time to write 
an actual question instead.


Kind regards,
Kasper Laudrup

--
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/96568578-f0de-81ca-3d93-6f829f1e438a%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Tutorial Django app, part 1

2023-01-24 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 24/01/2023 12.14, javier lopez wrote:

I'm new with Django.
Trying to code te sample of tutorial i got the error that shows in the 
images.

Python version 3.11.1 and 3.9 too. Same error.
Anyone can help me?



Both errors are mentioned in the tutorial at 
https://docs.djangoproject.com/en/4.1/intro/tutorial01/


For the page not found:

"If you get an error page here, check that you’re going to 
http://localhost:8000/polls/ and not http://localhost:8000/.";


And for the warning on migrations:

"Ignore the warning about unapplied database migrations for now; we’ll 
deal with the database shortly."


Unfortunately there's no direct link to these paragraphs on the page, 
but I hope that will help you move on.


Kind regards,
Kasper Laudrup

--
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/02929943-1f3b-5b46-6088-d9f9e96a539a%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: How to get started with contibution

2023-02-05 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 05/02/2023 20.31, Harjot Singh wrote:

Respected Sir/Madam,
I am a student of computer science engineering at chitkara university .I 
am new to open source contribution but well aware about python, c/c++, 
javascript, php, web .I would love to contribute to your organisation 
and also in GSOK contribution  .But could you please tell me how to get 
started. (edited)


You should probably start by reading this:

https://docs.djangoproject.com/en/dev/internals/contributing/new-contributors/

Kind regards,
Kasper Laudrup

--
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/17d6d075-745f-7305-9b99-f10b4ce31b81%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: How can i Open binary files with Django?

2023-02-14 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 14/02/2023 17.52, Lucas Matos Matos wrote:
In my case i want to take the file with a input type file from a form, 
that is in binary, open it and convert it to a text file, identify its 
characteristics  and return  something based in its characteristics to 
the user.


This might be what you're looking for:

https://pypi.org/project/python-magic/

Kind regards,

Kasper Laudrup

--
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/4a904182-202d-b909-f9c0-7ecf9b3eee2c%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Heroku error

2023-02-22 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 22/02/2023 06.36, Benjamin Telford wrote:

I am going to upload my new version into Heroku. But something went wrong.



That sucks :-(

Maybe you should try again later?

Kind regards,
Kasper Laudrup

--
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/ee5f3e6c-d7bd-09bd-a22a-782fe3778f0b%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Help on Django + Plotly integration

2023-03-22 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 22/03/2023 15.29, Praveen Kumar wrote:

Hi Team,

I need help in implementing Plotly with Django for interactive dashboards.

Please suggest.



Try following this:

https://googlethatforyou.com?q=plotly%20django

Kind regards,

Kasper Laudrup

--
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/93cd0647-cf85-e209-07f0-580c72a84cc2%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Failed to send Email by Django

2023-03-24 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 24/03/2023 05.16, bing wrote:
I am using the email module in Django to inform of users with their 
registration. Sometimes it can send email successfully, but more often, 
it fails. I searched for many solutions, but did not change this situation.




That is not really related to Django but more related to your email 
provider (or SMTP server).


It seems like you're using some Chinese email provider (139.com) and I 
have no idea what their reputation is, but it is completely up to the 
receiver of the email (or their email provider) whether they want to 
accept the email or not. If they don't it will most often just fail 
silently as you experience.


Not much to do about that. That's just how SMTP (email) has been 
designed (or not) back in the days.


You could try using another provider or setting up your own SMTP server 
(which is far from trivial to do and maintain).


Kind regards,

Kasper Laudrup

--
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/848e8e93-b12e-4f7b-ae40-fff34f4e9de6%40stacktrace.dk.


Re: User creation

2023-03-28 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 28/03/2023 06.16, Prashanth Patelc wrote:

Hi all,

I'm creating new user fields like email username firstname after 
creating user I need to send password creation email to end user ?




No, you don't have to but you can if you want.

Kind regards,

Kasper Laudrup

--
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/e96c22e7-4c95-20e5-c7a8-537067f02fab%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: How to get data from another function in view to show it on template ?

2023-04-04 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 03/04/2023 18.44, Ravindra Magar wrote:

How to get data from another function in view to show it on a template?



You call the function like you'd call any other function and pass the 
data in the context given to the template you want to render.


Kind regards.
Kasper Laudrup

--
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/b1c48f6f-5a54-796b-2ab0-d51b3da5ea11%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Report a Django bug how

2023-04-14 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 14/04/2023 01.06, Michael Starr wrote:
Hi, I double checked my code and Django is not displaying images. I'd 
like to report the bug but I need to be a django employee to do that. 
So, if anyone knows anyone on linkedin that works for django, tell them 
images don't display (on an operating system).




It is extremely unlikely that the reason you cannot get your code to 
work is caused by a bug in Django.


But anyone can open a bug report here:

https://docs.djangoproject.com/en/dev/internals/contributing/bugs-and-features/

I don't know what makes you think you have to be a "Django employee" 
(whatever that is).


Be prepared to create a proper bug report with a minimal example showing 
what you assume to be a bug in Django. Doing so will hopefully make you 
realize it's a bug in your code and not Django.


Good luck and king regards,
Kasper Laudrup

--
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/56b206a9-a244-e524-ac32-f3ccb79a4a91%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Report a Django bug how

2023-04-14 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 14/04/2023 10.17, WILSON TALENGA wrote:
Hey guys, i need help, i have created my django project, added students 
to the system as admin but they don't reflect when i run the server.

what could the issue be.
below is views.py and index.html



Start a new thread instead of replying to a totally unrelated thread.

Kind regards,
Kasper Laudrup

--
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/9f20b0bd-b364-46a7-52bc-c1459fc2f566%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Django urls error

2023-04-15 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 14/04/2023 21.48, lalit upadhyay wrote:

*

I have copied my code here.



The code is from a project called "myproject"


Plz fix this error:



The error is from a project called "Tesing".

You can ignore all other answers you've been given so far until you 
figure out how that could be.


Kind regards,
Kasper Laudrup

--
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/5844b278-648a-794d-55b2-45bf980c8948%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Django forms data save using ajax

2023-04-15 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 15/04/2023 12.31, Prashanth Patelc wrote:

Hi all,

How to save employees information using ajax with django form , id 
should automatic generation ?




Try this helpful link:

https://googlethatforyou.com?q=django%20ajax%20form

Kind regards,
Kasper Laudrup

--
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/b804c267-01fe-4d49-297e-842ff215f564%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: I have a problem with visual studio code

2023-05-03 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 02/05/2023 16.56, Stan Hiebah wrote:

Can i have a solution for this?



If you want someone to take the time to write a proper answer, take the 
time to write a proper question.


Posting a screenshot is not a proper question. No one is able to guess 
what you're trying to do, what your setup is etc.


This is meant to help you.

Kind regards,
Kasper Laudrup

--
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/a1762195-8a97-4a6d-3b8e-a2a720234de8%40stacktrace.dk.


Re: I need to create account using sso Google in Django rest framework Amy suggestions?

2023-05-03 Thread &#x27;Kasper Laudrup&#x27; via Django users

Maybe this would be a start:

https://googlethatforyou.com?q=create%20account%20using%20sso%20Google%20in%20Django%20rest%20framework

--
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/e1fb705e-759b-126a-152c-cc5625d31e50%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: I need to create account using sso Google in Django rest framework Amy suggestions?

2023-05-04 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 04/05/2023 16.33, carlos wrote:
Try this tuto 
https://episyche.com/blog/how-to-configure-google-sso-in-django-rest-framework-with-react 




I'm not the one having problems finding tutorials on the internet but 
thanks anyway.


Kind regards,
Kasper Laudrup

--
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/f207938c-3899-3be7-dc9e-18a2a5e3bbcc%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: I new to Django

2023-05-21 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 21/05/2023 16.26, khaled alshadbi wrote:

Hello friends
please help me to start from scratch... I want to build sales program 
using Python and Django




https://docs.djangoproject.com/en/4.2/intro/

Kind regards,
Kasper Laudrup

--
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/18ff3218-30a3-1b88-3553-2f5cefec5310%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: UPLOAD STATIC FILES

2023-05-29 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 29/05/2023 04.24, Obiorah Callistus wrote:

please how can i display .css and .js files in my template



Have you considered reading the documentation?

Kind regards,
Kasper Laudrup

--
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/ce267e59-2518-f897-d1b4-be148feaef98%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Template doesn't run in browser

2023-06-02 Thread &#x27;Kasper Laudrup&#x27; via Django users
If you want someone to spend their time writing a proper answer, start 
by writing a proper question.


Kind regards,
Kasper Laudrup

--
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/a4a8a796-a7de-6f85-1dc4-81909e8211ba%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Hello everyone,happy to be here.

2023-07-01 Thread &#x27;Kasper Laudrup&#x27; via Django users

On 29/06/2023 09.23, Apili Vicky wrote:

am failing to get apython path on the cmd interface..what could be wrong



Pretty much everything could be wrong, so I suggest you start by fixing 
that.


If that doesn't work, try doing nothing. Sometimes that's the best 
option in cases like this.


Hope that helps.

Kind regards,
Kasper Laudrup

--
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/389b8f58-ab86-f8c6-ddc5-772a3b35663d%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


  1   2   >