Django Sitemap HTTP Error 500

2020-09-29 Thread dum dum
I'm using django sitemap to generate my sitemap.

In local it works normally, I can visit 127.0.0.1:8000/sitemap.xml and see
the data. But in production, I got http error 500 (site matching query not
exist) when trying to access "domain.com/sitemap.xml". I've been following
solutions on the internet, and one of those is from this link

https://dev.to/radualexandrub/how-to-add-sitemap-xml-to-your-django-blog-and-make-it-work-on-heroku-4o11

https://stackoverflow.com/questions/53262018/django-sitemap-xml-throwing-server-error-500-in-production/53265609

But I'm still getting the error. I followed these tutorials exactly, but
the error still occured.

https://jawaban.online/scope/outlink/6442/django-sitemap-tutorial-help-crawlers-understand-your-website-2018-youtube/

https://jawaban.online/scope/outlink/17698/how-to-create-a-sitemap-in-django/

https://jawaban.online/scope/outlink/2757/how-to-create-a-django-sitemap-sitemap-one-of-the-most-important-seo-by-erdi-mollahuseyinoglu-analytics-vidhya-medium/

Please kindly help. Thanks

https://jawaban.online/forum/discuss/110/how-do-i-fix-a-django-sitemap-http-error-500-on-heroku/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANV3w%3DZZUWHkAqVX9R%2BrkYDCSgghZKLy%3DDT5O_b4jatv6mi9fg%40mail.gmail.com.


Re: Django Sitemap HTTP Error 500

2020-09-29 Thread Kasper Laudrup

Hi Dum Dum,

On 29/09/2020 10.26, dum dum wrote:

I'm using django sitemap to generate my sitemap.

In local it works normally, I can visit 127.0.0.1:8000/sitemap.xml 
 and see the data. But in production, 
I got http error 500 (site matching query not exist) when trying to 
access "domain.com/sitemap.xml ". I've 
been following solutions on the internet, and one of those is from this link




And as I and others have tried to tell you several times, you can 
continue to try random code you find on the internet and hope that the 
problem will somehow go away without really knowing why.


That's not a very productive way to write code and just a waste of time.

What you really want to do is to get access to your Django logs where 
you most likely have an uncaught exception or something similar pointing 
out exactly where the error is and you will most likely be able to fix 
it easily.


You do want to be able to access your Django logs in production no 
matter what, as this will not be the last time you have an error that 
only shows up in production.


Personally I get an email with a full backtrace etc. when an error like 
this occurs, which is quite useful in my case, but might not be the 
right thing in your case.


If you have problems finding out how to access the logs, then feel free 
to ask questions related to 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/016ab31a-8b9d-13fd-959f-06bbf4a1930c%40stacktrace.dk.


Re: Recruitment

2020-09-29 Thread SHUBHAM .SINGH. RATHORE
I am interested  love to join

On Wed, 23 Sep 2020, 8:10 pm Harish Thiyagharajan, <
harishthiyagh...@gmail.com> wrote:

> I want a interested django user , DM mail for more details , all the
> details including payment can be discussed ...looking for for you guys .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7b7956bc-d239-4b63-9194-0644b8a6eeben%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALkhXJVe5RRDoC4mV4m2ehANGgSH7mhh-5nzfV4ULyeRNwPZdQ%40mail.gmail.com.


Re: Recruitment

2020-09-29 Thread FLAVIEN HERI
Im interested, this is my whatsapp nimbe +243978587009


Le mer. 23 sept. 2020 à 3:39 PM, Harish Thiyagharajan <
harishthiyagh...@gmail.com> a écrit :

> I want a interested django user , DM mail for more details , all the
> details including payment can be discussed ...looking for for you guys .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7b7956bc-d239-4b63-9194-0644b8a6eeben%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG3GEnx53t6vAPnH_dN2J8KzwEdT3hWFQz4duL%3D4E4VXmeojgg%40mail.gmail.com.


Re: Django Sitemap HTTP Error 500

2020-09-29 Thread dum dum
Thanks kasper.

I actually did check the logs many times both local and production, nothing
is wrong,, I use:
heroku logs --tail -a -myapp on my production environment

All runs smoothly, except when I visit domain.com/sitemap.xml, I got this
error.
Because this is the main reason I requested help. I did my best to search
the solution though.

2020-09-29T11:31:08.535970+00:00 app[web.1]: /*some numbers */ - -
[29/Sep/2020:18:31:08 +0700] "GET /sitemap.xml HTTP/1.1" 500 0 "-"
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/85.0.4183.121 Safari/537.36"
2020-09-29T11:31:08.540679+00:00 heroku[router]: at=info method=GET
path="/sitemap.xml" host=jawaban.online request_id=(/*some random string*/)
fwd="(/*some numbers*/)" dyno=web.1 connect=0ms service=643ms status=500
bytes=286 protocol=http

I also realized that in the log, there are robots crawling my website.
Since I have links left to be crawled.

But for newer links in my site, the robot wouldn't find it because this
error.

[image: image.png]
pic above is from my google search console..
[image: image.png]
this one is from bing webmaster.

Actually I did successfully submitted the sitemap before. But now I got
this error suddenly.

Thanks.



On Tue, Sep 29, 2020 at 3:52 PM Kasper Laudrup 
wrote:

> Hi Dum Dum,
>
> On 29/09/2020 10.26, dum dum wrote:
> > I'm using django sitemap to generate my sitemap.
> >
> > In local it works normally, I can visit 127.0.0.1:8000/sitemap.xml
> >  and see the data. But in
> production,
> > I got http error 500 (site matching query not exist) when trying to
> > access "domain.com/sitemap.xml ". I've
> > been following solutions on the internet, and one of those is from this
> link
> >
>
> And as I and others have tried to tell you several times, you can
> continue to try random code you find on the internet and hope that the
> problem will somehow go away without really knowing why.
>
> That's not a very productive way to write code and just a waste of time.
>
> What you really want to do is to get access to your Django logs where
> you most likely have an uncaught exception or something similar pointing
> out exactly where the error is and you will most likely be able to fix
> it easily.
>
> You do want to be able to access your Django logs in production no
> matter what, as this will not be the last time you have an error that
> only shows up in production.
>
> Personally I get an email with a full backtrace etc. when an error like
> this occurs, which is quite useful in my case, but might not be the
> right thing in your case.
>
> If you have problems finding out how to access the logs, then feel free
> to ask questions related to 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/016ab31a-8b9d-13fd-959f-06bbf4a1930c%40stacktrace.dk
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANV3w%3DYQsnWCMZaz3jTh%3DfDGQF%2BojuGgJ2VKeQvFQjUt41ruzg%40mail.gmail.com.


Re: Django Sitemap HTTP Error 500

2020-09-29 Thread Kasper Laudrup

Hi Dum Dum,

On 29/09/2020 13.42, dum dum wrote:

Thanks kasper.

I actually did check the logs many times both local and production, 
nothing is wrong,, I use:

heroku logs --tail -a -myapp on my production environment



It looks like this is only bringing up the access logs, which is not 
really all that useful. And something is wrong in the logs. I would 
definitely consider a 500 Interal Server errors as "something wrong".


There must be some way to get some more detailed logs from your Django 
application.


I have zero experience with Heroku which seems to be what you are using, 
but maybe someone else has an idea on how to access the relevant logs 
there? I think this question has been asked and answered here before.


I can only refer to the Django documentation on logging:

https://docs.djangoproject.com/en/3.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/baa5a283-18d9-5899-63a1-a2cdbee7e7aa%40stacktrace.dk.


can u help me

2020-09-29 Thread FARISCHA MAKAY
Note that only Django core commands are listed as settings are not properly 
configured (error: Requested setting INSTALLED_APPS, but settings are not 
configured. You must either define the environment variable 
DJANGO_SETTINGS_MODULE or call settings.configure() before accessing 
settings.).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ee8590d5-cd05-42d4-8d63-3bb136640245n%40googlegroups.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-09-29 Thread Odedele Temitayo
I'm also interested

On Tue, Sep 22, 2020, 1:40 AM ahmed.he...@gmail.com <
ahmed.heshamel...@gmail.com> wrote:

> Hi all,
>
> I am looking for a team of developers to join them in a project to enhance
> my skills and add to my portfolio.  I am available part time.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALb%2BdgRYxXK9HDNTmA-mjAMxLw5%3DJWyacsFNixKK1Vgbk9dobQ%40mail.gmail.com.


Re: How to resize image when uploading to the cloudinary?

2020-09-29 Thread abhay santra
Thank you everyone...

On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup wrote:

> Hi Abbay,
>
> On 25/09/2020 16.21, abhay santra wrote:
> > 
> > Hi,
> > I would like to know how to resize any image when uploading to the 
> > cloudinary in django?
> > 
>
> You use Pillow:
>
> https://pillow.readthedocs.io/en/stable/
>
> It's hard for anyone to give you a better answer until you try to write 
> a better 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/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com.


Re: How to resize image when uploading to the cloudinary?

2020-09-29 Thread abhay santra
Thank you for your guidance..

On Friday, September 25, 2020 at 9:55:46 PM UTC+5:30 bharath...@gmail.com 
wrote:

> Hi,
>
> Check this.
> https://cloudinary.com/documentation/django_image_manipulation
>
> On Fri, Sep 25, 2020 at 8:49 PM abhay santra  wrote:
>
>>
>> Hi, 
>> I would like to know how to resize any image when uploading to the 
>> cloudinary in django?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/d9eaaea0-b3e3-42a5-8ccf-884662258ddcn%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b3597a48-537f-4a43-af37-59852e5249c6n%40googlegroups.com.


RE: could you help me to solve this problem? ☹☹

2020-09-29 Thread FARISKA
"""Django settings for library project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, seehttps://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, seehttps://docs.djangoproject.com/en/3.1/ref/settings/""" from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'.BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret!SECRET_KEY = 'st&^2y1*#&=e=#o77rv(#fr7$swcue#tvfp8lunvpm0w67ap^k' # SECURITY WARNING: don't run with debug turned on in production!DEBUG = True ALLOWED_HOSTS = [ ] # Application definition INSTALLED_APPS = ['catalog','django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles','support.apps.SupportConfig',] MIDDLEWARE = ['django.middleware.security.SecurityMiddleware','django.contrib.sessions.middleware.SessionMiddleware','django.middleware.common.CommonMiddleware','django.middleware.csrf.CsrfViewMiddleware','django.contrib.auth.middleware.AuthenticationMiddleware','django.contrib.messages.middleware.MessageMiddleware','django.middleware.clickjacking.XFrameOptionsMiddleware',] ROOT_URLCONF = 'library.urls' TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates','DIRS': [],'APP_DIRS': True,'OPTIONS': {'context_processors': ['django.template.context_processors.debug','django.template.context_processors.request','django.contrib.auth.context_processors.auth','django.contrib.messages.context_processors.messages',],},},] WSGI_APPLICATION = 'library.wsgi.application' # Database# https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3','NAME': BASE_DIR / 'db.sqlite3',}} # Password validation# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [{'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',},{'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',},{'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',},{'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',},] # Internationalization# https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, _javascript_, Images)# https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/'   Sent from Mail for Windows 10 From: Akinfolarin StephenSent: 29 September 2020 22:04To: django-users@googlegroups.comSubject: Re: could you help me to solve this problem? ☹☹ Let me have the screenshot of your django settings that is where the issue his On Tue, Sep 29, 2020, 16:00 FARISKA  wrote:Already but still I got message like this Sent from Mail for Windows 10 From: RANGA BHARATH JINKASent: 29 September 2020 20:48To: django-users@googlegroups.comSubject: Re: could you help me to solve this problem? ☹☹ Hi,    Try python manage.py runserver On Tue, Sep 29, 2020 at 7:12 PM FARISCHA MAKAY  wrote:-- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e9ad149c-428b-44df-97b1-f9d67d689e3dn%40googlegroups.com. -- Thanks and Regards J. Ranga Bharathcell: 9110334114-- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316pAxhD4%2Bmrw3arA2jizf%2Bq%2B9f0%3Dhh_Lb-t4dzqQB-D3w%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/F0C3E8F2-ECD6-4416-99EF-50A695DA99B3%40hxcore.ol.-- You received this message because you are subscribed to a topic in the Google Groups "Django users" group.To un

Re: could you help me to solve this problem? ☹☹

2020-09-29 Thread Akinfolarin Stephen
Set your debug to false and tryit again

On Tue, Sep 29, 2020, 16:13 FARISKA 
wrote:

> """
>
> Django settings for library project.
>
>
>
> Generated by 'django-admin startproject' using Django 3.1.1.
>
>
>
> For more information on this file, see
>
> https://docs.djangoproject.com/en/3.1/topics/settings/
>
>
>
> For the full list of settings and their values, see
>
> https://docs.djangoproject.com/en/3.1/ref/settings/
>
> """
>
>
>
> from pathlib import Path
>
>
>
> # Build paths inside the project like this: BASE_DIR / 'subdir'.
>
> BASE_DIR = Path(__file__).resolve().parent.parent
>
>
>
> # Quick-start development settings - unsuitable for production
>
> # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
>
>
>
> # SECURITY WARNING: keep the secret key used in production secret!
>
> SECRET_KEY = 'st&^2y1*#&=e=#o77rv(#fr7$swcue#tvfp8lunvpm0w67ap^k'
>
>
>
> # SECURITY WARNING: don't run with debug turned on in production!
>
> DEBUG = True
>
>
>
> ALLOWED_HOSTS = [
>
>
>
>
>
> ]
>
>
>
> # Application definition
>
>
>
> INSTALLED_APPS = [
>
> 'catalog',
>
> 'django.contrib.admin',
>
> 'django.contrib.auth',
>
> 'django.contrib.contenttypes',
>
> 'django.contrib.sessions',
>
> 'django.contrib.messages',
>
> 'django.contrib.staticfiles',
>
> 'support.apps.SupportConfig',
>
> ]
>
>
>
> MIDDLEWARE = [
>
> 'django.middleware.security.SecurityMiddleware',
>
> 'django.contrib.sessions.middleware.SessionMiddleware',
>
> 'django.middleware.common.CommonMiddleware',
>
> 'django.middleware.csrf.CsrfViewMiddleware',
>
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
>
> 'django.contrib.messages.middleware.MessageMiddleware',
>
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
>
> ]
>
>
>
> ROOT_URLCONF = 'library.urls'
>
>
>
> TEMPLATES = [
>
> {
>
> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
>
> 'DIRS': [],
>
> 'APP_DIRS': True,
>
> 'OPTIONS': {
>
> 'context_processors': [
>
> 'django.template.context_processors.debug',
>
> 'django.template.context_processors.request',
>
> 'django.contrib.auth.context_processors.auth',
>
> 'django.contrib.messages.context_processors.messages',
>
> ],
>
> },
>
> },
>
> ]
>
>
>
> WSGI_APPLICATION = 'library.wsgi.application'
>
>
>
> # Database
>
> # https://docs.djangoproject.com/en/3.1/ref/settings/#databases
>
>
>
> DATABASES = {
>
> 'default': {
>
> 'ENGINE': 'django.db.backends.sqlite3',
>
> 'NAME': BASE_DIR / 'db.sqlite3',
>
> }
>
> }
>
>
>
> # Password validation
>
> #
> https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
>
>
>
> AUTH_PASSWORD_VALIDATORS = [
>
> {
>
> 'NAME':
> 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
> ,
>
> },
>
> {
>
> 'NAME':
> 'django.contrib.auth.password_validation.MinimumLengthValidator',
>
> },
>
> {
>
> 'NAME':
> 'django.contrib.auth.password_validation.CommonPasswordValidator',
>
> },
>
> {
>
> 'NAME':
> 'django.contrib.auth.password_validation.NumericPasswordValidator',
>
> },
>
> ]
>
>
>
> # Internationalization
>
> # https://docs.djangoproject.com/en/3.1/topics/i18n/
>
>
>
> LANGUAGE_CODE = 'en-us'
>
>
>
> TIME_ZONE = 'UTC'
>
>
>
> USE_I18N = True
>
>
>
> USE_L10N = True
>
>
>
> USE_TZ = True
>
>
>
> # Static files (CSS, JavaScript, Images)
>
> # https://docs.djangoproject.com/en/3.1/howto/static-files/
>
>
>
> STATIC_URL = '/static/'
>
>
>
>
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *Akinfolarin Stephen 
> *Sent: *29 September 2020 22:04
> *To: *django-users@googlegroups.com
> *Subject: *Re: could you help me to solve this problem? ☹☹
>
>
>
> Let me have the screenshot of your django settings that is where the issue
> his
>
>
>
> On Tue, Sep 29, 2020, 16:00 FARISKA <
> farischa.ma...@student.president.ac.id> wrote:
>
> Already but still I got message like this
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *RANGA BHARATH JINKA 
> *Sent: *29 September 2020 20:48
> *To: *django-users@googlegroups.com
> *Subject: *Re: could you help me to solve this problem? ☹☹
>
>
>
> Hi,
>
>
>
>Try python manage.py runserver
>
>
>
> On Tue, Sep 29, 2020 at 7:12 PM FARISCHA MAKAY <
> farischa.ma...@student.president.ac.id> wrote:
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e9ad149c-428b-44df-97b1-f9d67d689e3dn%40googlegroups.com
> 

RE: could you help me to solve this problem? ☹☹

2020-09-29 Thread FARISKA
Still error Sent from Mail for Windows 10 From: Akinfolarin StephenSent: 29 September 2020 22:18To: django-users@googlegroups.comSubject: Re: could you help me to solve this problem? ☹☹ Set your debug to false and tryit again On Tue, Sep 29, 2020, 16:13 FARISKA  wrote:"""Django settings for library project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, seehttps://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, seehttps://docs.djangoproject.com/en/3.1/ref/settings/""" from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'.BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret!SECRET_KEY = 'st&^2y1*#&=e=#o77rv(#fr7$swcue#tvfp8lunvpm0w67ap^k' # SECURITY WARNING: don't run with debug turned on in production!DEBUG = True ALLOWED_HOSTS = [ ] # Application definition INSTALLED_APPS = ['catalog','django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles','support.apps.SupportConfig',] MIDDLEWARE = ['django.middleware.security.SecurityMiddleware','django.contrib.sessions.middleware.SessionMiddleware','django.middleware.common.CommonMiddleware','django.middleware.csrf.CsrfViewMiddleware','django.contrib.auth.middleware.AuthenticationMiddleware','django.contrib.messages.middleware.MessageMiddleware','django.middleware.clickjacking.XFrameOptionsMiddleware',] ROOT_URLCONF = 'library.urls' TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates','DIRS': [],'APP_DIRS': True,'OPTIONS': {'context_processors': ['django.template.context_processors.debug','django.template.context_processors.request','django.contrib.auth.context_processors.auth','django.contrib.messages.context_processors.messages',],},},] WSGI_APPLICATION = 'library.wsgi.application' # Database# https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3','NAME': BASE_DIR / 'db.sqlite3',}} # Password validation# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [{'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',},{'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',},{'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',},{'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',},] # Internationalization# https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, _javascript_, Images)# https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/'   Sent from Mail for Windows 10 From: Akinfolarin StephenSent: 29 September 2020 22:04To: django-users@googlegroups.comSubject: Re: could you help me to solve this problem? ☹☹ Let me have the screenshot of your django settings that is where the issue his On Tue, Sep 29, 2020, 16:00 FARISKA  wrote:Already but still I got message like this Sent from Mail for Windows 10 From: RANGA BHARATH JINKASent: 29 September 2020 20:48To: django-users@googlegroups.comSubject: Re: could you help me to solve this problem? ☹☹ Hi,    Try python manage.py runserver On Tue, Sep 29, 2020 at 7:12 PM FARISCHA MAKAY  wrote:-- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e9ad149c-428b-44df-97b1-f9d67d689e3dn%40googlegroups.com. -- Thanks and Regards J. Ranga Bharathcell: 9110334114-- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316pAxhD4%2Bmrw3arA2jizf%2Bq%2B9f0%3Dhh_Lb-t4dzqQB-D3w%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, s

Re: Regarding OTP based login- Django

2020-09-29 Thread dupakoor kannan
Hope this helps https://github.com/django-otp/django-otp

regards
Kannan

On Fri, Sep 25, 2020 at 9:56 AM Rahul Gour  wrote:

> Hello,
>
> TIA.
>
> I am new in django, can anyone help me for OTP based login in my app.
>
> I am working on a ecommerce app and want to login otp based login and dont
> know or getting much on google that how to integrate phone number with
> django user model or want to use custom user model.
>
>
> Regards,
> Rahul Gour
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADiZb_czAa%3DwJDQdRhyxWn8tzOZtPDoxiN_GNa0-yCC02Sa6Hg%40mail.gmail.com.


Re: Regarding OTP based login- Django

2020-09-29 Thread Gabriel Araya Garcia
Que es eso de OTP?,...que significan esas siglas ?

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El vie., 25 sept. 2020 a las 10:55, Rahul Gour ()
escribió:

> Hello,
>
> TIA.
>
> I am new in django, can anyone help me for OTP based login in my app.
>
> I am working on a ecommerce app and want to login otp based login and dont
> know or getting much on google that how to integrate phone number with
> django user model or want to use custom user model.
>
>
> Regards,
> Rahul Gour
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKVvSDCPEc%2BWqDD4Yk2o9_o9_F9uFT_8TpmheiVMJ_3O%3DTNuPw%40mail.gmail.com.


Re: Regarding OTP based login- Django

2020-09-29 Thread carlos
Gabriel
one-time password

On Tue, Sep 29, 2020 at 12:34 PM Gabriel Araya Garcia <
gabrielaraya2...@gmail.com> wrote:

> Que es eso de OTP?,...que significan esas siglas ?
>
> Gabriel Araya Garcia
> GMI - Desarrollo de Sistemas Informáticos
>
>
>
>
> El vie., 25 sept. 2020 a las 10:55, Rahul Gour ()
> escribió:
>
>> Hello,
>>
>> TIA.
>>
>> I am new in django, can anyone help me for OTP based login in my app.
>>
>> I am working on a ecommerce app and want to login otp based login and
>> dont know or getting much on google that how to integrate phone number with
>> django user model or want to use custom user model.
>>
>>
>> Regards,
>> Rahul Gour
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKVvSDCPEc%2BWqDD4Yk2o9_o9_F9uFT_8TpmheiVMJ_3O%3DTNuPw%40mail.gmail.com
> 
> .
>


-- 
att.
Carlos Rocha

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM-7rO3eAK1gOAm5KFOxG9F%3DXxgBt9kmW5zd0DVTNzxXV4PjSg%40mail.gmail.com.


Re: could you help me to solve this problem? ☹☹

2020-09-29 Thread coolguy
It seems you haven't changed your python interpreter...based on the screen 
shot the python is being executed from main python directory instead of 
virtual environment.

On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4 
farisch...@student.president.ac.id wrote:

> [image: Screenshot 2020-09-28 12.36.13.png]
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/525ba3d8-5940-48c9-b656-c2be5b3fa559n%40googlegroups.com.


Re: could you help me to solve this problem? ☹☹

2020-09-29 Thread coolguy
Please share the project directories... Need to see if you opened the main 
project and application correctly.

On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4 
farisch...@student.president.ac.id wrote:

> [image: Screenshot 2020-09-28 12.36.13.png]
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/40023cda-06ee-478a-a5cd-fdf26bfb123bn%40googlegroups.com.


Re: could you help me to solve this problem? ☹☹

2020-09-29 Thread Sunday Iyanu Ajayi
What are you trying to achieve?
If you intend to start the django server , used the above proposed step by
the previous guy:
 try *python manage.py runserver*  and not *django-admin runserver* while
your virtual environment is activated and also you are in the django root
directory
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Tue, Sep 29, 2020 at 11:53 PM coolguy 
wrote:

> It seems you haven't changed your python interpreter...based on the screen
> shot the python is being executed from main python directory instead of
> virtual environment.
>
> On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4
> farisch...@student.president.ac.id wrote:
>
>> [image: Screenshot 2020-09-28 12.36.13.png]
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/525ba3d8-5940-48c9-b656-c2be5b3fa559n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKYSAw2qZePsUMtqfG2E4VdriBQo2wRUsY-nAFnJcsYjcJiEbA%40mail.gmail.com.


Re: How to resize image when uploading to the cloudinary?

2020-09-29 Thread RANGA BHARATH JINKA
Hi,

I saw a video to upload images to cloudinary. Check it out.

   https://youtu.be/1T6G7Znrbfg


On Tue, Sep 29, 2020 at 7:12 PM abhay santra  wrote:

> Thank you everyone...
>
> On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup wrote:
>
>> Hi Abbay,
>>
>> On 25/09/2020 16.21, abhay santra wrote:
>> >
>> > Hi,
>> > I would like to know how to resize any image when uploading to the
>> > cloudinary in django?
>> >
>>
>> You use Pillow:
>>
>> https://pillow.readthedocs.io/en/stable/
>>
>> It's hard for anyone to give you a better answer until you try to write
>> a better 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/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com.


Re: Add user to Group after purchase

2020-09-29 Thread Derek
You need to use a "post save" signal; see:
https://docs.djangoproject.com/en/3.1/ref/signals/#post-save

On Tuesday, 29 September 2020 at 06:23:19 UTC+2 Lightning Bit wrote:

> Hi All, 
>
> How would one add a user to a certain Backend group in the Django 
> Administration after a user purchases a particular item? I have played 
> around with tons of techniques but nothing is working. 
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/617d821c-adf7-464f-89ee-2985f089ce0fn%40googlegroups.com.