Re: Django Saving a form with Imagefield on shared host

2020-06-16 Thread MUGOYA DIHFAHSIH
Hey Kelvin thanks for your esteemed reply, i specified the media folder but 
i think there is something to do with apache and mod_wsgi so as to serve 
the static urls and the media files

On Sunday, 14 June 2020 16:46:39 UTC+3, MUGOYA DIHFAHSIH wrote:
>
> I am working on django project and now i have deployed it with Namecheap
> When i submit a form that does not have an ImageField, the form submits 
> successfully on the shared host
> but when i submit a form with one of the fields ImageField, it raises 404 
> error.
> but on the localhost, the forms work perfectly.
> what can i do to submit such forms on a shared host.
> 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/8771a1a3-e709-4d72-b0bc-06be5e42b277o%40googlegroups.com.


Re: get() missing 1 required positional argument: 'id'

2020-06-16 Thread MUGOYA DIHFAHSIH
Hey amit, in your views you are getting id that you didn't pass in the url
in your url.py

 path('home/(?P\d+)/',views.EmployeeCBV.as_view(),name='home'),



On Wednesday, 17 June 2020 07:09:06 UTC+3, amit wrote:
>
> did not work
>
> views.py
>
> class EmployeeCBV(View):
> def get(self,request,id,*args,**kwargs):
>  emp=Employee.objects.get(id=id)
>  json_data=serialize('json',[emp,])
>
>  return HttpResponse(json_data,content_type='application/json')
>
>
> urls.py
>
> from django.contrib import admin
> from django.urls import path
> from testapp import views
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('home/',views.EmployeeCBV.as_view(),name='home'),
>
> ]
>
> result:
>
> TypeError
>at /home/
>   
> get() missing 1 required positional argument: 'id'
>
> Request Method: GET 
> Request URL: http://127.0.0.1:8000/home/ 
> Django Version: 3.0.6 
> Exception Type: TypeError 
> Exception Value: 
>
> get() missing 1 required positional argument: 'id'
>
> Exception Location: 
> C:\Users\adyam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\views\generic\base.py
>  
> in dispatch, line 97 
> Python Executable: 
> C:\Users\adyam\AppData\Local\Programs\Python\Python37\python.exe 
> Python Version: 3.7.5 
> Python Path: 
>
> ['C:\\Users\\adyam\\PycharmProjects\\RestApi1\\withoutrestm',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\lib',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37',
>  'C:\\Users\\adyam\\AppData\\Roaming\\Python\\Python37\\site-packages',
>  
> 'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']
>
> Server time: Wed, 17 Jun 2020 04:05:09 +
>
>

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


Re: Work in django!!

2020-06-16 Thread carlos
geodjango!

On Tue, Jun 16, 2020 at 10:35 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi, You can use the folium package.
>
> On Wed, Jun 17, 2020 at 9:28 AM meera gangani 
> wrote:
>
>> Hello ,
>>
>>I want to work with maps in django, which libraries i installed!
>>
>> Thank to you in advance
>> -Meera
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANaPPPKCrrTbdUNC-JDujx7wn05kp%3Dd5xXbu-qKYsGH%2BGO00YQ%40mail.gmail.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/CAK5m3158B8nSkjKRrY1KGZ7p3G2MY%2Be-Pkv9kqYDXBbZ3BV-8A%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-7rO3fxcZND0GozLpR%2BO-4d_YQXDN6kRQ4v%3DfzcmVVDEbwtQ%40mail.gmail.com.


Re: Work in django!!

2020-06-16 Thread RANGA BHARATH JINKA
Hi, You can use the folium package.

On Wed, Jun 17, 2020 at 9:28 AM meera gangani 
wrote:

> Hello ,
>
>I want to work with maps in django, which libraries i installed!
>
> Thank to you in advance
> -Meera
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPKCrrTbdUNC-JDujx7wn05kp%3Dd5xXbu-qKYsGH%2BGO00YQ%40mail.gmail.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/CAK5m3158B8nSkjKRrY1KGZ7p3G2MY%2Be-Pkv9kqYDXBbZ3BV-8A%40mail.gmail.com.


Re: get() missing 1 required positional argument: 'id'

2020-06-16 Thread meera gangani
You can check this once,
https://stackoverflow.com/questions/38934042/django-typeerror-missing-1-required-positional-argument-person-id

On Wed, Jun 17, 2020 at 9:40 AM Adya Mit  wrote:

> did not work
>
> views.py
>
> class EmployeeCBV(View):
> def get(self,request,id,*args,**kwargs):
>  emp=Employee.objects.get(id=id)
>  json_data=serialize('json',[emp,])
>
>  return HttpResponse(json_data,content_type='application/json')
>
>
> urls.py
>
> from django.contrib import admin
> from django.urls import path
> from testapp import views
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('home/',views.EmployeeCBV.as_view(),name='home'),
>
> ]
>
> result:
>
> TypeError
>at /home/
>
> get() missing 1 required positional argument: 'id'
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/home/
> Django Version: 3.0.6
> Exception Type: TypeError
> Exception Value:
>
> get() missing 1 required positional argument: 'id'
>
> Exception Location: 
> C:\Users\adyam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\views\generic\base.py
> in dispatch, line 97
> Python Executable:
> C:\Users\adyam\AppData\Local\Programs\Python\Python37\python.exe
> Python Version: 3.7.5
> Python Path:
>
> ['C:\\Users\\adyam\\PycharmProjects\\RestApi1\\withoutrestm',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\lib',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37',
>  'C:\\Users\\adyam\\AppData\\Roaming\\Python\\Python37\\site-packages',
>  
> 'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']
>
> Server time: Wed, 17 Jun 2020 04:05:09 +
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/00451532-6e7f-433a-a21b-d8c5e2afecf6o%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/CANaPPPKxshoCFgEnRrh0VKt4v4hpMaP4FdedoWavn4VggKBXuQ%40mail.gmail.com.


get() missing 1 required positional argument: 'id'

2020-06-16 Thread Adya Mit
did not work

views.py

class EmployeeCBV(View):
def get(self,request,id,*args,**kwargs):
 emp=Employee.objects.get(id=id)
 json_data=serialize('json',[emp,])

 return HttpResponse(json_data,content_type='application/json')


urls.py

from django.contrib import admin
from django.urls import path
from testapp import views

urlpatterns = [
path('admin/', admin.site.urls),
path('home/',views.EmployeeCBV.as_view(),name='home'),

]

result:

TypeError
   at /home/
  
get() missing 1 required positional argument: 'id'

Request Method: GET 
Request URL: http://127.0.0.1:8000/home/ 
Django Version: 3.0.6 
Exception Type: TypeError 
Exception Value: 

get() missing 1 required positional argument: 'id'

Exception Location: 
C:\Users\adyam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\views\generic\base.py
 
in dispatch, line 97 
Python Executable: 
C:\Users\adyam\AppData\Local\Programs\Python\Python37\python.exe 
Python Version: 3.7.5 
Python Path: 

['C:\\Users\\adyam\\PycharmProjects\\RestApi1\\withoutrestm',
 'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
 'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
 'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\lib',
 'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37',
 'C:\\Users\\adyam\\AppData\\Roaming\\Python\\Python37\\site-packages',
 
'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']

Server time: Wed, 17 Jun 2020 04:05:09 +

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


Work in django!!

2020-06-16 Thread meera gangani
Hello ,

   I want to work with maps in django, which libraries i installed!

Thank to you in advance
-Meera

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


Re: Two Django projects accessing same db

2020-06-16 Thread Utsab Bashyal
close a project and r run
 another

On Wed, Jun 17, 2020 at 5:31 AM Miracle  wrote:

> You will have to connect one django project to the database as a legacy db.
>
> You'll fake migrate, so django doesn't create it's default models twice.
>
> On Wed, 17 Jun 2020, 12:24 am J.T.,  wrote:
>
>> I have Django project A on one server & Django project B on a different
>> server. I want project B to be able to load data into the db associated
>> with project A.
>>
>> My question is: do I have to have the app and models on project B exactly
>> match the app and models on project A?
>>
>> Also, other than pointing the settings.py of project B to project A's
>> database, is there anything else I need to do?
>>
>> I do realize this is type of setup is frowned upon, but I need this setup
>> for at least the time being.
>>
>> Thank you.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/6b565ce5-19f5-485b-9361-48a2f08a6a27o%40googlegroups.com
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADZv-jAfEj-zJXE5K%2BfHLfvhC2dy8BcfFhHFnZExT9ASsBQ%2BDw%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/CAFO4Knzn2VHnTGy0CUw8E9s1LAARi-Y5gKaEYQ6p40tFbW1p6w%40mail.gmail.com.


Re: Two Django projects accessing same db

2020-06-16 Thread Miracle
You will have to connect one django project to the database as a legacy db.

You'll fake migrate, so django doesn't create it's default models twice.

On Wed, 17 Jun 2020, 12:24 am J.T.,  wrote:

> I have Django project A on one server & Django project B on a different
> server. I want project B to be able to load data into the db associated
> with project A.
>
> My question is: do I have to have the app and models on project B exactly
> match the app and models on project A?
>
> Also, other than pointing the settings.py of project B to project A's
> database, is there anything else I need to do?
>
> I do realize this is type of setup is frowned upon, but I need this setup
> for at least the time being.
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6b565ce5-19f5-485b-9361-48a2f08a6a27o%40googlegroups.com
> .
>

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


Two Django projects accessing same db

2020-06-16 Thread J.T.
I have Django project A on one server & Django project B on a different server. 
I want project B to be able to load data into the db associated with project A.

My question is: do I have to have the app and models on project B exactly match 
the app and models on project A?

Also, other than pointing the settings.py of project B to project A's database, 
is there anything else I need to do? 

I do realize this is type of setup is frowned upon, but I need this setup for 
at least the time being. 

Thank you. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6b565ce5-19f5-485b-9361-48a2f08a6a27o%40googlegroups.com.


Sushant Singh Rajput: Boycott Karan Johar, YRF films, Salman Khan

2020-06-16 Thread k2lsuthar
Hey,

I just signed the petition "Sushant Singh Rajput: Boycott Karan Johar, YRF
films, Salman Khan" and wanted to see if you could help by adding your name.

Our goal is to reach 500,000 signatures and we need more support. You can
read more and sign the petition here:

http://chng.it/vBBdWKBDGz

Thanks!
ketul

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


Re: Best way to get a PR Review?

2020-06-16 Thread Tim Graham
Hi Matt,

Your patch is in the "Patches needing review" queue (along with 33 others 
issues) at https://dashboard.djangoproject.com/.  Reviewing patches isn't a 
task limited to members of the Django team. Anyone from the community is 
welcome to review patches and mark the ticket as "patch needs improvement" 
or "ready for checkin" as appropriate.

The Django fellows are prioritizing Django 3.1 blockers. Your patch is a 
new feature that would be part of Django 3.2. That feature freeze isn't 
until January 14, 2021 
(https://code.djangoproject.com/wiki/Version3.2Roadmap).

On Tuesday, June 16, 2020 at 5:25:42 PM UTC-4, mferr...@gmail.com wrote:
>
> Hi! I put together a PR (https://github.com/django/django/pull/12333) for 
> a ticket (https://code.djangoproject.com/ticket/29789) months ago and 
> have been struggling to get a review on it. How long should it usually take 
> to get a PR Review? Is there something else I should be doing? I was 
> originally excited to have a contribution to Django, but have been 
> discouraged from contributing any more by the slow turn-around.
>
> Thanks!
> - Matt
>

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


Re: Want to add form to my Django-website

2020-06-16 Thread Marcin
Hi.

You must just add a form to your's website and save collected data to the 
database.
Hope this helps somehow. 
If not, I've found a nice tutorial here 
https://lmgtfy.com/?q=django+forms+save+to+database 
and there https://docs.djangoproject.com/en/3.0/intro/tutorial04/

Regards,
Marcin

wtorek, 16 czerwca 2020 o 23:25:35 UTC+2 Spring-dot napisał(a):

> I want to add a form to my Django-website to add data to the database. 
> Someone, please help!!!
>

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


Collecting Data From Django Forms

2020-06-16 Thread Obed Balogun
Please I need help collecting data from a user. I have a playlist app where 
users should be able to create a playlist and enter songs they feel belong 
in the playlist. The problem im having is collecting songs from the user in 
such a way that the songs would be iteable within a playlist model. What is 
the smartest way to collect such input from users?

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


Intermittent Javascript Tests Headless Chrome Timeout

2020-06-16 Thread Matt Ferrante
After rebasing my PR (https://github.com/django/django/pull/12333), it 
failed the JS tests, but hasn't touched any JS files. I suspect this was an 
intermittent failure, unrelated to my PR and wanted to re-run the JS tests, 
but I don't think I have permission to do so. Is there a good way I should 
re-trigger this test suite?

Thanks!

https://djangoci.com/job/pull-requests-javascript/6624/console


Files: js_tests/tests.html -> all
Options: timeout=5000, 
inject="/home/jenkins/workspace/pull-requests-javascript/node_modules/grunt-contrib-qunit/chrome/bridge.js",
 urls=[], force=false, console, httpBase=false, summaryOnly=false

Testing js_tests/tests.html 
>> There was an error with headless chrome
Fatal error: Navigation Timeout Exceeded: 5000ms exceeded 
npm ERR! Test failed.  See above for more details.
Build step 'Execute shell' marked build as failure
Finished: FAILURE

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0ee50aa0-6d16-4c67-99a0-9a1b16a7652ao%40googlegroups.com.


Best way to get a PR Review?

2020-06-16 Thread mferr...@gmail.com
Hi! I put together a PR (https://github.com/django/django/pull/12333) for a 
ticket (https://code.djangoproject.com/ticket/29789) months ago and have 
been struggling to get a review on it. How long should it usually take to 
get a PR Review? Is there something else I should be doing? I was 
originally excited to have a contribution to Django, but have been 
discouraged from contributing any more by the slow turn-around.

Thanks!
- Matt

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


Django forms

2020-06-16 Thread Obed Balogun
Please im trying to create a playlist app such that the user enters songs in a 
playlist creation page and this is added to a playlist model. I want to know 
the best way to collect this data from the user. Im stuck at what possible way 
to collect this data in the form page and then display each song as an iterable 
within a playlist. 

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


Want to add form to my Django-website

2020-06-16 Thread Spring-dot
I want to add a form to my Django-website to add data to the database. 
Someone, please help!!!

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


Re: events calendar

2020-06-16 Thread Andréas Kühne
I would second using fullcalendar. It's a really capable frontend library
for handling calendar events.

All you would then need to do is have a backend that sends the events as
json to the fullcalendar plugin.

Regards,

Andréas


Den tis 16 juni 2020 kl 16:34 skrev Vivek Jha :

> You can also use fullcalender
> I used it.
>
> On Tue, 16 Jun 2020, 18:35 RANGA BHARATH JINKA, 
> wrote:
>
>> Hi,
>> You can make use of django-calendars to implement this. All the best.
>>
>> https://pypi.org/project/django-calendarium/
>>
>> https://medium.com/@unionproject88/django-and-python-calendar-e647a8eccff6
>>
>> On Tue, Jun 16, 2020 at 5:59 PM Nouhaila Khiyate <
>> nouhaila.khiyat...@gmail.com> wrote:
>>
>>> hello, i'm creating a leave system and i want to add a calendar that
>>> display existing leaves from my database something like this calendar ,but
>>> i don't know what i should use for that ,help me please!!
>>> ᐧ
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAHBR0sAOZfYYBKhorL7Y8bwpJXUdoGz9pS9Y0vU9DCnphJpJ3w%40mail.gmail.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/CAK5m317kLzYOn%3DavjLCUg8nYfhDXyy6bweDGu_WwHY75_sLdAQ%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/CAMriZeFE%3DqM3NYQ%3DxdEwpbP%2BwO9rkEcy8penyF-gba-mFUYcrw%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/CAK4qSCeXEtz%3DEi9G_0qtCGD0JgJV5%2B1h8xuAMB2W-O1OU34p3Q%40mail.gmail.com.


how to update inlineformset in class based view

2020-06-16 Thread hunar
hi
i want to update my formset , but it only update my parent model
https://stackoverflow.com/questions/62408161/how-to-update-multiple-forms-in-one-go




Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

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


Re: someone to help in this please

2020-06-16 Thread Budi Hermansyah
Did you already install gdal n friends?


https://docs.djangoproject.com/en/3.0/ref/contrib/gis/install/geolibs/



On Tue, 16 Jun 2020 at 22.12 Peter Kirieny  wrote:

> am using Geodjango with postgresql db and i get this error while trying to
> run the server;
> raise ImproperlyConfigured(
> django.core.exceptions.ImproperlyConfigured: Could not find the GDAL
> library (tried "gdal204", "gdal203", "gdal202", "gdal201", "gdal20"). Is
> GDAL installed? If it i
> s, try setting GDAL_LIBRARY_PATH in your settings.
>
> the libraries are installed just don't know  how to set the paths
> 'am new in programming'
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL8t8eof1jY3wwUa9Fj_owAK8WEoVpZSFnOCFrQsmD_w3Yy%3Dfg%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/CAHGmjWWFFha3%3DqU_%2BYf60Vvz5bhuCA6G9-raXasbA89GSB_Yyw%40mail.gmail.com.


someone to help in this please

2020-06-16 Thread Peter Kirieny
am using Geodjango with postgresql db and i get this error while trying to
run the server;
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL
library (tried "gdal204", "gdal203", "gdal202", "gdal201", "gdal20"). Is
GDAL installed? If it i
s, try setting GDAL_LIBRARY_PATH in your settings.

the libraries are installed just don't know  how to set the paths
'am new in programming'

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


Re: cant be able to setup GDAL in django prject

2020-06-16 Thread Kasper Laudrup

Hi Puneet,

On 15/06/2020 09.08, Puneet Makhija wrote:
As i am Stuck in this Error from 2 days. But cant get the Solution why 
this was Happening

I am getting an Error:
self._handle =_dlopen(self._name,mode)
    indusli |OSError:/usr/local/lib/libgdal.so:cannot open shared 
objectfile:Nosuch file ordirectory


Does /usr/local/lib/libgdal.so exist?

The error seems to indicate that it doesn't. Did you install libgdal and 
how?


Using /usr/local as a path on a Linux system usually indicates that is 
was installed manually from sources. Why not install it from your 
package manager, eg.:


# sudo apt-get install libgdal20

should be possible on Ubuntu 18.04.

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/8dd324d7-4237-c78c-b0d3-15008ab78453%40stacktrace.dk.


Re: events calendar

2020-06-16 Thread Vivek Jha
You can also use fullcalender
I used it.

On Tue, 16 Jun 2020, 18:35 RANGA BHARATH JINKA, 
wrote:

> Hi,
> You can make use of django-calendars to implement this. All the best.
>
> https://pypi.org/project/django-calendarium/
>
> https://medium.com/@unionproject88/django-and-python-calendar-e647a8eccff6
>
> On Tue, Jun 16, 2020 at 5:59 PM Nouhaila Khiyate <
> nouhaila.khiyat...@gmail.com> wrote:
>
>> hello, i'm creating a leave system and i want to add a calendar that
>> display existing leaves from my database something like this calendar ,but
>> i don't know what i should use for that ,help me please!!
>> ᐧ
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHBR0sAOZfYYBKhorL7Y8bwpJXUdoGz9pS9Y0vU9DCnphJpJ3w%40mail.gmail.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/CAK5m317kLzYOn%3DavjLCUg8nYfhDXyy6bweDGu_WwHY75_sLdAQ%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/CAMriZeFE%3DqM3NYQ%3DxdEwpbP%2BwO9rkEcy8penyF-gba-mFUYcrw%40mail.gmail.com.


Re: am trying to add a login form to my django

2020-06-16 Thread Kasper Laudrup

Hi Afro,

On 16/06/2020 12.49, AFRO TEOP wrote:
> someone to help in this
>

https://learndjango.com/tutorials/django-login-and-logout-tutorial

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/a56dbb50-67c4-48c1-051f-61b3c58eb29a%40stacktrace.dk.


Re: events calendar

2020-06-16 Thread RANGA BHARATH JINKA
Hi,
You can make use of django-calendars to implement this. All the best.

https://pypi.org/project/django-calendarium/

https://medium.com/@unionproject88/django-and-python-calendar-e647a8eccff6

On Tue, Jun 16, 2020 at 5:59 PM Nouhaila Khiyate <
nouhaila.khiyat...@gmail.com> wrote:

> hello, i'm creating a leave system and i want to add a calendar that
> display existing leaves from my database something like this calendar ,but
> i don't know what i should use for that ,help me please!!
> ᐧ
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHBR0sAOZfYYBKhorL7Y8bwpJXUdoGz9pS9Y0vU9DCnphJpJ3w%40mail.gmail.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/CAK5m317kLzYOn%3DavjLCUg8nYfhDXyy6bweDGu_WwHY75_sLdAQ%40mail.gmail.com.


events calendar

2020-06-16 Thread Nouhaila Khiyate
hello, i'm creating a leave system and i want to add a calendar that
display existing leaves from my database something like this calendar ,but
i don't know what i should use for that ,help me please!!
ᐧ

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


Uploading images in browsable API

2020-06-16 Thread Filip Bogdanovski
Hello everyone,

I was wondering if someone know why my field for uploading pictures is like 
this? I can't select new pictures from my computer to upload, only ones 
already uploaded in the model instances through my Admin panel. It looks 
this way on my all of my routes.

Here is link for my github repository - 
https://github.com/eonbre/DogApi1/tree/master/DrWebTestProject

I would also love if someone would help me to return a random image on my 
/breeds//random route.

Kind Regards,
Filip

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1edcc4a5-8e87-41e0-a9fa-7038f15cf8e9o%40googlegroups.com.


am trying to add a login form to my django

2020-06-16 Thread AFRO TEOP
someone to help in this

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


Re: cant be able to setup GDAL in django prject

2020-06-16 Thread RANGA BHARATH JINKA
https://www.youtube.com/playlist?list=PL7amXK4vKqATa_KrfQ3_tEF_ywAgAqWeJ

You can watch this playlist on youtube.

On Tue, Jun 16, 2020 at 4:43 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> If you want to work with maps u can use foilum package. Watch foilum
> video of traversy media on youtube. On seeing your error, it is saying that
> the loation path is not correct. It is not able to find the file path
> correctly. Instead use python os module to locate the file exactly. Ex:-
> os.path.join(BASE_DIR, 'YOUR-FILE-NAME').
>
> I hope this helps. Thank you.
>
> On Tue, Jun 16, 2020 at 4:07 PM Puneet Makhija 
> wrote:
>
>> Please reply please please please please
>>
>> On Monday, June 15, 2020 at 6:51:51 PM UTC+5:30, Puneet Makhija wrote:
>>>
>>> As i am Stuck in this Error from 2 days. But cant get the Solution why
>>> this was Happening
>>> I am getting an Error:
>>>
>>> self._handle = _dlopen(self._name, mode)
>>>indusli  | OSError: /usr/local/lib/libgdal.so: cannot open shared
>>> object file: No such file or directory
>>>
>>> And below is my django settings.py filelibrary path for GDAL and
>>> GEOS
>>>
>>> GDAL_LIBRARY_PATH="/usr/local/lib/libgdal.so"
>>> GEOS_LIBRARY_PATH="/usr/local/lib/libgeos_c.so"
>>>
>>>
>>> As i setted up the path in the /etc/ld.so.conf :-
>>> include /etc/ld.so.conf.d/*.conf
>>> /usr/local/lib
>>> then sudo ldconfig
>>>
>>> still im geeting the same error :-
>>> cannot open shared object file: No such file or directory
>>> As i stuck in this from last 2 days why this was happening
>>>
>>> As i am using Ubuntu 18.04 version
>>> GDAL: gdal-3.1.0
>>> Proj: proj-7.0.1
>>> Geos: geos-3.8.1
>>>
>>> ** Any help will be highly Appreciated ***
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/c307f59c-440e-4bba-8f00-586f1bdab3bco%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


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


Re: cant be able to setup GDAL in django prject

2020-06-16 Thread RANGA BHARATH JINKA
Hi,

If you want to work with maps u can use foilum package. Watch foilum
video of traversy media on youtube. On seeing your error, it is saying that
the loation path is not correct. It is not able to find the file path
correctly. Instead use python os module to locate the file exactly. Ex:-
os.path.join(BASE_DIR, 'YOUR-FILE-NAME').

I hope this helps. Thank you.

On Tue, Jun 16, 2020 at 4:07 PM Puneet Makhija 
wrote:

> Please reply please please please please
>
> On Monday, June 15, 2020 at 6:51:51 PM UTC+5:30, Puneet Makhija wrote:
>>
>> As i am Stuck in this Error from 2 days. But cant get the Solution why
>> this was Happening
>> I am getting an Error:
>>
>> self._handle = _dlopen(self._name, mode)
>>indusli  | OSError: /usr/local/lib/libgdal.so: cannot open shared
>> object file: No such file or directory
>>
>> And below is my django settings.py filelibrary path for GDAL and
>> GEOS
>>
>> GDAL_LIBRARY_PATH="/usr/local/lib/libgdal.so"
>> GEOS_LIBRARY_PATH="/usr/local/lib/libgeos_c.so"
>>
>>
>> As i setted up the path in the /etc/ld.so.conf :-
>> include /etc/ld.so.conf.d/*.conf
>> /usr/local/lib
>> then sudo ldconfig
>>
>> still im geeting the same error :-
>> cannot open shared object file: No such file or directory
>> As i stuck in this from last 2 days why this was happening
>>
>> As i am using Ubuntu 18.04 version
>> GDAL: gdal-3.1.0
>> Proj: proj-7.0.1
>> Geos: geos-3.8.1
>>
>> ** Any help will be highly Appreciated ***
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c307f59c-440e-4bba-8f00-586f1bdab3bco%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/CAK5m315geVhLA%3DeiCS5-nO40-z685Qrtkcs-29yP9GWATNB%3D0Q%40mail.gmail.com.


Re: cant be able to setup GDAL in django prject

2020-06-16 Thread Puneet Makhija
Please reply please please please please 

On Monday, June 15, 2020 at 6:51:51 PM UTC+5:30, Puneet Makhija wrote:
>
> As i am Stuck in this Error from 2 days. But cant get the Solution why 
> this was Happening 
> I am getting an Error: 
>  
> self._handle = _dlopen(self._name, mode) 
>indusli  | OSError: /usr/local/lib/libgdal.so: cannot open shared 
> object file: No such file or directory
>
> And below is my django settings.py filelibrary path for GDAL and 
> GEOS
>
> GDAL_LIBRARY_PATH="/usr/local/lib/libgdal.so"
> GEOS_LIBRARY_PATH="/usr/local/lib/libgeos_c.so"
>
>
> As i setted up the path in the /etc/ld.so.conf :-
> include /etc/ld.so.conf.d/*.conf
> /usr/local/lib
> then sudo ldconfig 
>
> still im geeting the same error :-
> cannot open shared object file: No such file or directory
> As i stuck in this from last 2 days why this was happening 
>
> As i am using Ubuntu 18.04 version 
> GDAL: gdal-3.1.0 
> Proj: proj-7.0.1
> Geos: geos-3.8.1
>
> ** Any help will be highly Appreciated ***
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c307f59c-440e-4bba-8f00-586f1bdab3bco%40googlegroups.com.


Re: http://localhost:8000/admin/ is not working

2020-06-16 Thread cosmos multi
This add in url?

El mar., 16 jun. 2020, 1:47 a. m., Ifeanyi Chielo 
escribió:

> Please can anyone help me resolve this issue. the
> http://localhost:8000/admin/ is not working and returns an error below
>
> TypeError at /admin/Cannot mix str and non-str argumentsRequest Method:
> GETRequest URL:
> http://localhost:8000/admin/Django Version:
> 2.1.5Exception Type:
> TypeErrorException Value:
> Cannot mix str and non-str argumentsException Location:
> C:\Users\IFEANYI
> CHIELO\AppData\Local\Programs\Python\Python37\lib\urllib\parse.py in
> _coerce_args, line 120Python Executable:
> C:\Users\IFEANYI
> CHIELO\AppData\Local\Programs\Python\Python37\python.exePython Version:
> 3.7.2Python Path:
> ['C:\\Users\\IFEANYI CHIELO\\divinerest', 'C:\\Users\\IFEANYI '
> 'CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
> 'C:\\Users\\IFEANYI
> CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
> 'C:\\Users\\IFEANYI
> CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\lib',
> 'C:\\Users\\IFEANYI CHIELO\\AppData\\Local\\Programs\\Python\\Python37',
> 'C:\\Users\\IFEANYI '
> 'CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']Server
> time:
> Tue, 16 Jun 2020 06:40:44 +
> Traceback Switch to copy-and-paste view 
>
>- C:\Users\IFEANYI
>
> CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\exception.py
>  in inner
>1. response = get_response(request) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>
> CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py
>  in _get_response
>1. response = self.process_exception_by_middleware(e, request) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>
> CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py
>  in _get_response
>1. response = wrapped_callback(request, *callback_args,
>   **callback_kwargs) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>
> CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\admin\sites.py
>  in wrapper
>1. return self.admin_view(view, cacheable)(*args, **kwargs) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>
> CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\decorators.py
>  in _wrapped_view
>1. response = view_func(request, *args, **kwargs) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>
> CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\views\decorators\cache.py
>  in _wrapped_view_func
>1. response = view_func(request, *args, **kwargs) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>
> CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\admin\sites.py
>  in inner
>1. reverse('admin:login', current_app=self.name) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>
> CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\auth\views.py
>  in redirect_to_login
>1. return HttpResponseRedirect(urlunparse(login_url_parts)) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>CHIELO\AppData\Local\Programs\Python\Python37\lib\urllib\parse.py in 
> urlunparse
>1. _coerce_args(*components)) ...
>▶ Local vars 
>- C:\Users\IFEANYI
>CHIELO\AppData\Local\Programs\Python\Python37\lib\urllib\parse.py in 
> _coerce_args
>1. raise TypeError("Cannot mix str and non-str arguments") ...
>▶ Local vars 
>
> Request informationUSER
>
> AnonymousUser
> GET
>
> No GET data
> POST
>
> No POST data
> FILES
>
> No FILES data
> COOKIES
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f46f8e4c-f716-4b4f-a1a7-c16d5a819e8dn%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/CA%2Bt%2BYr1ZTN79HhDmW44KMVg_FabvA8mRTQyF6mK9f%3DLraC-ZnQ%40mail.gmail.com.


http://localhost:8000/admin/ is not working

2020-06-16 Thread Ifeanyi Chielo
Please can anyone help me resolve this issue. 
the http://localhost:8000/admin/ is not working and returns an error below

TypeError at /admin/Cannot mix str and non-str argumentsRequest Method:
GETRequest URL:
http://localhost:8000/admin/Django Version:
2.1.5Exception Type:
TypeErrorException Value:
Cannot mix str and non-str argumentsException Location:
C:\Users\IFEANYI 
CHIELO\AppData\Local\Programs\Python\Python37\lib\urllib\parse.py in 
_coerce_args, line 120Python Executable:
C:\Users\IFEANYI 
CHIELO\AppData\Local\Programs\Python\Python37\python.exePython Version:
3.7.2Python Path:
['C:\\Users\\IFEANYI CHIELO\\divinerest', 'C:\\Users\\IFEANYI ' 
'CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip', 
'C:\\Users\\IFEANYI 
CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\DLLs', 
'C:\\Users\\IFEANYI 
CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\lib', 
'C:\\Users\\IFEANYI CHIELO\\AppData\\Local\\Programs\\Python\\Python37', 
'C:\\Users\\IFEANYI ' 
'CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']Server 
time:
Tue, 16 Jun 2020 06:40:44 +
Traceback Switch to copy-and-paste view 

   - C:\Users\IFEANYI 
   
CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\exception.py
 in inner
   1. response = get_response(request) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   
CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py
 in _get_response
   1. response = self.process_exception_by_middleware(e, request) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   
CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py
 in _get_response
   1. response = wrapped_callback(request, *callback_args, 
  **callback_kwargs) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   
CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\admin\sites.py
 in wrapper
   1. return self.admin_view(view, cacheable)(*args, **kwargs) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   
CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\decorators.py
 in _wrapped_view
   1. response = view_func(request, *args, **kwargs) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   
CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\views\decorators\cache.py
 in _wrapped_view_func
   1. response = view_func(request, *args, **kwargs) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   
CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\admin\sites.py
 in inner
   1. reverse('admin:login', current_app=self.name) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   
CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\auth\views.py
 in redirect_to_login
   1. return HttpResponseRedirect(urlunparse(login_url_parts)) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   CHIELO\AppData\Local\Programs\Python\Python37\lib\urllib\parse.py in 
urlunparse
   1. _coerce_args(*components)) ...
   ▶ Local vars 
   - C:\Users\IFEANYI 
   CHIELO\AppData\Local\Programs\Python\Python37\lib\urllib\parse.py in 
_coerce_args
   1. raise TypeError("Cannot mix str and non-str arguments") ...
   ▶ Local vars 
   
Request informationUSER

AnonymousUser
GET

No GET data
POST

No POST data
FILES

No FILES data
COOKIES

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