Re: Error while running '$ python manage.py collectstatic --noinput'.

2023-12-19 Thread ram.mu...@gmail.com
Hi Ihor,

Thank you for your email. We do not have any reference to heroku but 
Digital Oceanś App platform is using heroku. We resolved  the above error 
by adding this environment variable:

DISABLE_COLLECTSTATIC = 1
But we are planning to enable this once the main deployment is done.

Best Regards,
~Ram


On Monday, December 18, 2023 at 3:02:47 PM UTC-7 Ihor Dmytrenko wrote:

> Why you have heroku in your log? Remove all old dependency configs in your 
> settings first and then you need specify 
>
> ```python
> STATICFILES_DIRS = [
> os.path.join(BASE_DIR, 'static'),
> ]
>
> STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
> STATIC_URL = '/static/'
>
> HOME_DIRECTORY_SELF_STORAGE = os.path.expanduser('~')
> MEDIA_ROOT = os.path.join(HOME_DIRECTORY_SELF_STORAGE, 'public_html/')
> MEDIA_URL = '/media/'
> DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
> ```
>

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


Re: Error while running '$ python manage.py collectstatic --noinput'.

2023-12-18 Thread Ihor Dmytrenko
Why you have heroku in your log? Remove all old dependency configs in your 
settings first and then you need specify 

```python
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static'),
]

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'

HOME_DIRECTORY_SELF_STORAGE = os.path.expanduser('~')
MEDIA_ROOT = os.path.join(HOME_DIRECTORY_SELF_STORAGE, 'public_html/')
MEDIA_URL = '/media/'
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
```

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


Re: Error while running '$ python manage.py collectstatic --noinput'.

2023-12-16 Thread ram.mu...@gmail.com
Here is the static files setting that we have in our settings.py file:


*STATIC_URL = '/static/'STATIC_ROOT = os.path.join(BASE_DIR, 'static')*
On Saturday, December 16, 2023 at 7:02:46 PM UTC-7 Ram wrote:

> Hi,
>
> Did anyone hit this error before during production server or any type of 
> deployment. We tried deployment using Digital Oceanś App platform as a 
> pre-prod deployment to check whether this App platform is feasible for our 
> Django web site, but we are hitting this error no matter what ever 
> modification we change in settings.py to avoid this error. Tried a lot of 
> Google search results to address this issue, but no luck so far. We are 
> wondering whether anyone has any recommendations on this error. If you did 
> not try Digital Oceanś app platform, what would be your recommendation for 
> production server deployment? We are planning to use only app platforms to 
> avoid infrastructure overhead.
>
>
>> [2023-12-17 01:40:06] │ -> $ python manage.py collectstatic --noinput
>> [2023-12-17 01:40:06] │Traceback (most recent call last):
>> [2023-12-17 01:40:06] │  File "/workspace/manage.py", line 23, in 
>> 
>> [2023-12-17 01:40:06] │execute_from_command_line(sys.argv)
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/core/management/__init__.py",
>>  
>> line 446, in execute_from_command_line
>> [2023-12-17 01:40:06] │utility.execute()
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/core/management/__init__.py",
>>  
>> line 420, in execute
>> [2023-12-17 01:40:06] │django.setup()
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/__init__.py", line 
>> 24, in setup
>> [2023-12-17 01:40:06] │apps.populate(settings.INSTALLED_APPS)
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/apps/registry.py", 
>> line 91, in populate
>> [2023-12-17 01:40:06] │app_config = AppConfig.create(entry)
>> [2023-12-17 01:40:06] │ ^^^
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/apps/config.py", 
>> line 228, in create
>> [2023-12-17 01:40:06] │import_module(entry)
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/importlib/__init__.py", line 126, in 
>> import_module
>> [2023-12-17 01:40:06] │return 
>> _bootstrap._gcd_import(name[level:], package, level)
>> [2023-12-17 01:40:06] │   
>> 
>> [2023-12-17 01:40:06] │  File "", 
>> line 1204, in _gcd_import
>> [2023-12-17 01:40:06] │  File "", 
>> line 1176, in _find_and_load
>> [2023-12-17 01:40:06] │  File "", 
>> line 1147, in _find_and_load_unlocked
>> [2023-12-17 01:40:06] │  File "", 
>> line 690, in _load_unlocked
>> [2023-12-17 01:40:06] │  File "> importlib._bootstrap_external>", line 940, in exec_module
>> [2023-12-17 01:40:06] │  File "", 
>> line 241, in _call_with_frames_removed
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django_tables2/__init__.py",
>>  
>> line 1, in 
>> [2023-12-17 01:40:06] │from .columns import (
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django_tables2/columns/__init__.py",
>>  
>> line 8, in 
>> [2023-12-17 01:40:06] │from .jsoncolumn import JSONColumn
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django_tables2/columns/jsoncolumn.py",
>>  
>> line 11, in 
>> [2023-12-17 01:40:06] │from django.contrib.postgres.fields 
>> import HStoreField
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/contrib/postgres/fields/__init__.py",
>>  
>> line 1, in 
>> [2023-12-17 01:40:06] │from .array import *  # NOQA
>> [2023-12-17 01:40:06] │
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/contrib/postgres/fields/array.py",
>>  
>> line 3, in 
>> [2023-12-17 01:40:06] │from django.contrib.postgres import 
>> lookups
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/contrib/postgres/lookups.py",
>>  
>> line 4, in 
>> [2023-12-17 01:40:06] │from .search import SearchVector, 
>> SearchVectorExact, SearchVectorField
>> [2023-12-17 01:40:06] │  File 
>> "/app/.heroku/python/lib/python3.11/site-packages/django/contrib/postgres/search.py",
>>  
>> line 1, in 
>> [2023-12-17 01:40:06] │import psycopg2
>> [2023-12-17 01:40:06] │  File 
>> 

Re: Error while showing detailed post

2023-08-22 Thread Mvd Raghava
what issue are you facing. please send the error

On Sat, Aug 19, 2023 at 9:03 PM Dhiraj Kumar 
wrote:

> Hi new in Django,
>
> I want to display details post to the template but facing issue while
> trying to fetch post by id on the click of Continue Reading
> ,
> Views.py
>
> def show(request, id):
> print(id)
> try:
> showPost = post.objects.get(id=id)  # Assuming your model is
> named 'post'
> except post.DoesNotExist:
> # Handle the case where the post with the given ID doesn't exist
> raise Http404("Post does not exist")
>
> return render(request, 'show_post.html', {'showPost': showPost})
>
>
>
>
> Urls.py
> from django.urls import path
> from news import views
> from django.conf import settings
> from django.conf.urls.static import static
>
> urlpatterns = [
> path('',views.home, name='home' ),
> path('about', views.about, name="about"),
> path('contact', views.contact, name="contact"),
> path('News_post', views.News_post, name='News_post'),
> path('add_post',views.add_post,name='add_post'),
> path('show//', views.show, name='show')
>
> ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
>
>
>
>
>
>
>
>
>
>
> Thanks & Regard Dhiraj Kumar
> Mobile No. : 9643843355, EXT: 250
> Email Id: dhi...@nimbusitsolutions.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/CAAdfw9TdfFir%2BiFUyGxAhzWLdpDCtfSZr2ZPhi7DJrUauJUn-w%40mail.gmail.com
> 
> .
>

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


Re: Error regarding Deployment on Vercel

2023-08-07 Thread krishna soni
how?

On Sunday, 6 August, 2023 at 10:09:37 pm UTC+5:30 Mithilesh Rawani wrote:

> Yes it's easy
>
> On Sun, 6 Aug 2023, 4:36 pm krishna soni,  wrote:
>
>> recently I have deployed a project on vercel  "
>> https://blogstar-web.vercel.app/;
>> giving me error 404 not found can any one tell why this error is coming 
>> ??? I have searched on google regarding this but not found helpful
>>
>> -- 
>> You received this message because you are subscribed 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/9aa321e4-7bbc-436e-b6d4-7ceddbb8515bn%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/c90befaa-a770-40c1-a02a-275f4e02a417n%40googlegroups.com.


Re: Error regarding Deployment on Vercel

2023-08-06 Thread Mithilesh Rawani
Yes it's easy

On Sun, 6 Aug 2023, 4:36 pm krishna soni, 
wrote:

> recently I have deployed a project on vercel  "
> https://blogstar-web.vercel.app/;
> giving me error 404 not found can any one tell why this error is coming
> ??? I have searched on google regarding this but not found helpful
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9aa321e4-7bbc-436e-b6d4-7ceddbb8515bn%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/CAEQ0vnArDJDkcU5fp6K_mVaKOhSskB43HuMfAnT0z6J4V9A%3DbA%40mail.gmail.com.


Re: Error: name 'include' is not defined

2023-04-02 Thread Larry Stevens
Perfect, thank you
Larry Stevens
(571) 289-7658


On Wed, Mar 22, 2023 at 9:49 AM Harouna Diallo 
wrote:

> You must Import include : from django.urls import path, include
>
> On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens 
> wrote:
>
>> Hello,
>>
>> I'm brand new to Django taking an online course in Python.
>> I created a project named 'django_test' and I'm in the process of
>> creating a very simple app named 'Hello_World'.
>>
>> I'm trying to modify the urls.py file in my 'django_test' project for the
>> app 'hello_world'.
>> My code in urls.py follows:
>> from django.contrib import admin
>> from django.urls import path
>> urlpatterns = [
>> path('admin/', admin.site.urls),
>> path('hello_world/', include('hello_world.urls'))
>> ]
>>
>> The return error is name 'include' is not defined
>>
>> I tried to import include with the statement from django.conf.urls
>> import include
>> which also failed.
>>
>> Thank you for reading my post.
>>
>> Larry Stevens
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/hi9S4ZEcla4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%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/CAC%3DJtzTefewf0Eyse96_StScLAb6ps7bqNTpHT8rybLTB-5QOQ%40mail.gmail.com.


Re: Error installing mysqlclient in WSL2, Ubuntu 20.04.

2023-03-29 Thread Anh Nguyen
I highly recommend use docker for it
On Tue, 28 Mar 2023 at 04:17 Hernan Gustavo  wrote:

> This is a problem with the legacy install. Try to install it with the
> command pip install mysqlclient --use-pep517
>
> El dom, 26 mar 2023 a la(s) 14:42, Muhammed Lawal (
> lawalmuhammed...@gmail.com) escribió:
>
>> Hello everyone.
>> I'm trying to setup MySQL server for my django project but I couldn't get
>> past installing mysqlclient. I've tried using pip3 and pipenv to install it
>> but I'm getting errors and also, I've tried all possible solutions I could
>> find online. Installed all the build dependencies yet still the same.
>> Please help me out of 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/CAOzVPC9xMooBEUqJmdXFzN3Mvd8hbmPcjxpTt9ZR8%3D%3DHr_qmXg%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/CAH6XLKi6c%2BTyTO5xaw1esFwOwbUcu_J6gCZDQkkEvLCH4CSqcw%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/CAKaoNbTGKTTXmBgJH5m8hRcN0aYG2N1YjpZe09HF9DcSARa1Cg%40mail.gmail.com.


Re: Error installing mysqlclient in WSL2, Ubuntu 20.04.

2023-03-27 Thread Hernan Gustavo
This is a problem with the legacy install. Try to install it with the
command pip install mysqlclient --use-pep517

El dom, 26 mar 2023 a la(s) 14:42, Muhammed Lawal (
lawalmuhammed...@gmail.com) escribió:

> Hello everyone.
> I'm trying to setup MySQL server for my django project but I couldn't get
> past installing mysqlclient. I've tried using pip3 and pipenv to install it
> but I'm getting errors and also, I've tried all possible solutions I could
> find online. Installed all the build dependencies yet still the same.
> Please help me out of 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/CAOzVPC9xMooBEUqJmdXFzN3Mvd8hbmPcjxpTt9ZR8%3D%3DHr_qmXg%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/CAH6XLKi6c%2BTyTO5xaw1esFwOwbUcu_J6gCZDQkkEvLCH4CSqcw%40mail.gmail.com.


Re: Error: name 'include' is not defined

2023-03-23 Thread Ikrombek
How can I use for dental clinic, For example, do I need to include 32 
fields from the model to specify 32 teeth, or is there a way to do it in 
one?

On Wednesday, March 22, 2023 at 8:24:18 PM UTC+5 Larry Stevens wrote:

> Perfect, problem solved.
> Thank you so much Jeman, Harouna, and Robinson.
> Greatly appreciated.
>
> On Wednesday, March 22, 2023 at 11:16:58 AM UTC-4 Robinson wrote:
>
>> import path, include
>>
>>
>> On Wed, Mar 22, 2023 at 4:49 PM Harouna Diallo  
>> wrote:
>>
>>> You must Import include : from django.urls import path, include
>>>
>>> On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens  
>>> wrote:
>>>
 Hello,

 I'm brand new to Django taking an online course in Python.
 I created a project named 'django_test' and I'm in the process of 
 creating a very simple app named 'Hello_World'.

 I'm trying to modify the urls.py file in my 'django_test' project for 
 the app 'hello_world'.
 My code in urls.py follows:
 from django.contrib import admin
 from django.urls import path
 urlpatterns = [
 path('admin/', admin.site.urls),
 path('hello_world/', include('hello_world.urls'))
 ]

 The return error is name 'include' is not defined

 I tried to import include with the statement from django.conf.urls 
 import include
 which also failed.

 Thank you for reading my post.

 Larry Stevens

 -- 
 You received this message because you are subscribed 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/4e2c7426-b451-4542-9629-52d4f4707a94n%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...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%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/09b7fb6b-f025-49a9-b46a-ad456afea0dan%40googlegroups.com.


Re: Error: name 'include' is not defined

2023-03-22 Thread Larry Stevens
Perfect, problem solved.
Thank you so much Jeman, Harouna, and Robinson.
Greatly appreciated.

On Wednesday, March 22, 2023 at 11:16:58 AM UTC-4 Robinson wrote:

> import path, include
>
>
> On Wed, Mar 22, 2023 at 4:49 PM Harouna Diallo  wrote:
>
>> You must Import include : from django.urls import path, include
>>
>> On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens  
>> wrote:
>>
>>> Hello,
>>>
>>> I'm brand new to Django taking an online course in Python.
>>> I created a project named 'django_test' and I'm in the process of 
>>> creating a very simple app named 'Hello_World'.
>>>
>>> I'm trying to modify the urls.py file in my 'django_test' project for 
>>> the app 'hello_world'.
>>> My code in urls.py follows:
>>> from django.contrib import admin
>>> from django.urls import path
>>> urlpatterns = [
>>> path('admin/', admin.site.urls),
>>> path('hello_world/', include('hello_world.urls'))
>>> ]
>>>
>>> The return error is name 'include' is not defined
>>>
>>> I tried to import include with the statement from django.conf.urls 
>>> import include
>>> which also failed.
>>>
>>> Thank you for reading my post.
>>>
>>> Larry Stevens
>>>
>>> -- 
>>> You received this message because you are subscribed 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/4e2c7426-b451-4542-9629-52d4f4707a94n%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%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/9d071aa8-0bec-4b1d-82a7-e34169bbd96bn%40googlegroups.com.


Re: Error: name 'include' is not defined

2023-03-22 Thread Robinson
import path, include


On Wed, Mar 22, 2023 at 4:49 PM Harouna Diallo 
wrote:

> You must Import include : from django.urls import path, include
>
> On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens 
> wrote:
>
>> Hello,
>>
>> I'm brand new to Django taking an online course in Python.
>> I created a project named 'django_test' and I'm in the process of
>> creating a very simple app named 'Hello_World'.
>>
>> I'm trying to modify the urls.py file in my 'django_test' project for the
>> app 'hello_world'.
>> My code in urls.py follows:
>> from django.contrib import admin
>> from django.urls import path
>> urlpatterns = [
>> path('admin/', admin.site.urls),
>> path('hello_world/', include('hello_world.urls'))
>> ]
>>
>> The return error is name 'include' is not defined
>>
>> I tried to import include with the statement from django.conf.urls
>> import include
>> which also failed.
>>
>> Thank you for reading my post.
>>
>> Larry Stevens
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%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/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%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/CAHs-6w6_shg-DEfGn_ASxdcXAJqFkZ3xO_YD7LTX1N-1U-CRnQ%40mail.gmail.com.


Re: Error: name 'include' is not defined

2023-03-22 Thread Harouna Diallo
You must Import include : from django.urls import path, include

On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens 
wrote:

> Hello,
>
> I'm brand new to Django taking an online course in Python.
> I created a project named 'django_test' and I'm in the process of creating
> a very simple app named 'Hello_World'.
>
> I'm trying to modify the urls.py file in my 'django_test' project for the
> app 'hello_world'.
> My code in urls.py follows:
> from django.contrib import admin
> from django.urls import path
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('hello_world/', include('hello_world.urls'))
> ]
>
> The return error is name 'include' is not defined
>
> I tried to import include with the statement from django.conf.urls
> import include
> which also failed.
>
> Thank you for reading my post.
>
> Larry Stevens
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%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/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com.


Re: Error: name 'include' is not defined

2023-03-22 Thread Jeman Kumar
hi, replace the line "from django.urls import path" to "from django.urls
import path, include"

On Wed, 22 Mar, 2023, 6:22 pm Larry Stevens,  wrote:

> Hello,
>
> I'm brand new to Django taking an online course in Python.
> I created a project named 'django_test' and I'm in the process of creating
> a very simple app named 'Hello_World'.
>
> I'm trying to modify the urls.py file in my 'django_test' project for the
> app 'hello_world'.
> My code in urls.py follows:
> from django.contrib import admin
> from django.urls import path
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('hello_world/', include('hello_world.urls'))
> ]
>
> The return error is name 'include' is not defined
>
> I tried to import include with the statement from django.conf.urls
> import include
> which also failed.
>
> Thank you for reading my post.
>
> Larry Stevens
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%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/CALmE1TsP%2BkUP8XKc8-h-ambaiX7mkHfF%3DqSWOFzTY0iqFG4q9w%40mail.gmail.com.


Re: Error loading static file from a NAS (CIFS mounted) Not 404...

2023-02-27 Thread Hua Liang

Okay I think I know the problem.

Apache2 has a bug with CIFS, set EnableMMAP Off in config will solve this.
On Monday, February 27, 2023 at 6:29:12 AM UTC-8 Hua Liang wrote:

> Hello,
>
> I have a django site and I have two storages serving static files.
> One is a hard drive attached to the server and the other is a NAS share.
>
> Both are mounted and I can view the files in Ubuntu without any problems.
>
> Both are linked to Django static folder.
>
> The problem is that when I tried to access the file from Django web, the 
> NAS one always fails with corrupted file.
> e.g. I have an image file image.jpg in both local drive and NAS share
>
> lets say "static/media1" is linked to the local drive, and "static/media2" 
> is linked to the nas share
> if I visit
> http://django-site-ip/static/media1/image.jpg, it is fine.
> if I visit
> http://django-site-ip/static/media2/image.jpg, it is corrupted. (but I 
> can view it in ubuntu)
>
> I downloaded the image from the site and I found that the size is 
> different compared to the original file.
>
> Anyone knows what the issue is?
>
> 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/621024f7-3a1a-4640-a9cb-5f1baf4d99ebn%40googlegroups.com.


Re: error problem

2023-02-21 Thread Ronnie Preal
Thank you David I will try again. Can I contact you if the problem
persists.

On Mon, Feb 20, 2023, 8:39 PM David Nugent  wrote:

> You appear to half only half asked your question and have provided no
> context.
>
> Do you have a route named 'register'?  [ URL(, name="register") ] (I
> am guessing no, else this specific error would not occur)
>
> Guessing what you forgot to mention, check out some of the great tutorials
> available via a google search on account registration and signup with
> Django.
>
> HTH,
> David
>
> On Tue, Feb 21, 2023 at 12:49 PM Tanjil Hossain <
> tanjilhossain...@gmail.com> wrote:
>
>> i am fatchig this error any one help me
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/b3e6a094-8027-49d8-a0ea-b3f21efe4510n%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/CAE5VhgVLi6VgPdreZT4-P%3DkzTTtFGa_Uj7L24iCpo-4OV6YZGQ%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/CAAegBZ_SCw_VQpmcgnMQn%3Db2%2BZFdqwkzVnB%3DEm3gGWBN6v5MOQ%40mail.gmail.com.


RE: ERROR DURING VIEWING SITE PART OF ADMIN

2023-02-21 Thread outlaw 2paczy
kindly help me to solve this error 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/edf6d33e-3a87-436d-b28a-f6d81c389e3fn%40googlegroups.com.


Re: error problem

2023-02-20 Thread David Nugent
You appear to half only half asked your question and have provided no
context.

Do you have a route named 'register'?  [ URL(, name="register") ] (I am
guessing no, else this specific error would not occur)

Guessing what you forgot to mention, check out some of the great tutorials
available via a google search on account registration and signup with
Django.

HTH,
David

On Tue, Feb 21, 2023 at 12:49 PM Tanjil Hossain 
wrote:

> i am fatchig this error any one help me
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b3e6a094-8027-49d8-a0ea-b3f21efe4510n%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/CAE5VhgVLi6VgPdreZT4-P%3DkzTTtFGa_Uj7L24iCpo-4OV6YZGQ%40mail.gmail.com.


Re: error

2022-11-06 Thread Seam
On Sun, 6 Nov 2022 at 18:30, Balogun Awwal  wrote:

> Thanks
>
> Sent from awwal
>
> On 5 Nov 2022, at 6:14 PM, Balogun Awwal  wrote:
>
> I’m using *vscode* editor  I’m not sure there is any typo but I will
> recheck it
>
> Sent from awwal
>
> On 5 Nov 2022, at 5:41 PM, 'Kasper Laudrup' via Django users <
> django-users@googlegroups.com> wrote:
>
> 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
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3609A45F-B1B8-4DA4-8663-1D668BC1218B%40gmail.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/3609A45F-B1B8-4DA4-8663-1D668BC1218B%40gmail.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/3609A45F-B1B8-4DA4-8663-1D668BC1218B%40gmail.com
> 
> .
>


-- 
Best Regards*,*
*MD.Seam uddin*
*Software Engineer*
*E-mail:* *s eamuddin2...@gmail.com
*
*Contact: +8801854422750*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMSMAXBusHA0HkOSkecoPhvn0k%3D7iK5A5%3DwEk%3DiL4nj8fwSM8A%40mail.gmail.com.
Index: mypractice/rocking_notes_2021/requirements.txt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===
--- mypractice/rocking_notes_2021/requirements.txt	(revision d3c9d6ef4fd8f9856f4adfcfef518bed04f7fc41)
+++ mypractice/rocking_notes_2021/requirements.txt	(revision 9998d030c880605610af7bf2178446322721e54e)
@@ -1,9 +1,15 @@
 click==8.1.3
 colorama==0.4.6
+decorator==5.1.1
 Flask==2.2.2
+Flask-JWT-Extended==4.4.4
 importlib-metadata==5.0.0
 itsdangerous==2.1.2
 Jinja2==3.1.2
 MarkupSafe==2.1.1
+peewee==3.15.3
+PyJWT==2.6.0
+python-dotenv==0.21.0
+validators==0.20.0
 Werkzeug==2.2.2
-zipp==3.10.0
\ No newline at end of file
+zipp==3.10.0
Index: mypractice/rocking_notes_2021/src/__init__.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===
--- mypractice/rocking_notes_2021/src/__init__.py	(revision d3c9d6ef4fd8f9856f4adfcfef518bed04f7fc41)
+++ mypractice/rocking_notes_2021/src/__init__.py	(revision 9998d030c880605610af7bf2178446322721e54e)
@@ -7,6 +7,8 @@
 from flask_jwt_extended import JWTManager
 def create_app(test_config=None):
 app = Flask(__name__,instance_relative_config=True)
+if __name__ == '__main__':
+app.run(debug=True)
 
 if test_config is None:
 app.config.from_mapping(
Index: mypractice/rocking_notes_2021/src/app.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===
--- mypractice/rocking_notes_2021/src/app.py	(revision d3c9d6ef4fd8f9856f4adfcfef518bed04f7fc41)
+++ mypractice/rocking_notes_2021/src/app.py	(revision 

Re: error

2022-11-05 Thread 'Kasper Laudrup' 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: error

2022-11-05 Thread Muhammad Juwaini Abdul Rahman
It's literally there.

Vpziew in your middleware settings.

On Sat, 5 Nov 2022 at 23:07, Balogun Awwal  wrote:

> everything was working perfectly befor until i installed django debug
> toolbar
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py",
> line 30, in import_string
> return cached_import(module_path, class_name)
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py",
> line 16, in cached_import
> return getattr(module, class_name)
> AttributeError: module 'django.middleware.csrf' has no attribute
> 'CsrfVpziewMiddleware'. Did you mean: 'CsrfViewMiddleware'?
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/servers/basehttp.py",
> line 47, in get_internal_wsgi_application
> return import_string(app_path)
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py",
> line 30, in import_string
> return cached_import(module_path, class_name)
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py",
> line 15, in cached_import
> module = import_module(module_path)
>   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1050, in _gcd_import
>   File "", line 1027, in _find_and_load
>   File "", line 1006, in
> _find_and_load_unlocked
>   File "", line 688, in _load_unlocked
>   File "", line 883, in exec_module
>   File "", line 241, in
> _call_with_frames_removed
>   File "/home/leo/Documents/storefront/storefront/wsgi.py", line 16, in
> 
> application = get_wsgi_application()
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/wsgi.py",
> line 13, in get_wsgi_application
> return WSGIHandler()
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/handlers/wsgi.py",
> line 125, in __init__
> self.load_middleware()
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/handlers/base.py",
> line 40, in load_middleware
> middleware = import_string(middleware_path)
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py",
> line 32, in import_string
> raise ImportError(
> ImportError: Module "django.middleware.csrf" does not define a
> "CsrfVpziewMiddleware" attribute/class
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
> self.run()
>   File "/usr/lib/python3.10/threading.py", line 946, in run
> self._target(*self._args, **self._kwargs)
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/autoreload.py",
> line 64, in wrapper
> fn(*args, **kwargs)
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/management/commands/runserver.py",
> line 157, in inner_run
> handler = self.get_handler(*args, **options)
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/contrib/staticfiles/management/commands/runserver.py",
> line 31, in get_handler
> handler = super().get_handler(*args, **options)
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/management/commands/runserver.py",
> line 78, in get_handler
> return get_internal_wsgi_application()
>   File
> "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/servers/basehttp.py",
> line 49, in get_internal_wsgi_application
> raise ImproperlyConfigured(
> django.core.exceptions.ImproperlyConfigured: WSGI application
> 'storefront.wsgi.application' could not be loaded; Error importing module.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJ434RuxkK0nO%3D5%3D1PJEm2%2B0-becZxqsmFZwOzC%2BWA9uY6_yYw%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 

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

2022-11-03 Thread Adeyemi Deji
Also, i tried psycopg2-binary ànd still add the same error issue but when i
updated the Dokerfile, things got normal.

On Mon, 31 Oct 2022, 19:51 'Kasper Laudrup' via Django users, <
django-users@googlegroups.com> wrote:

> 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
> .
>

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


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

2022-11-01 Thread Adeyemi Deji
Hi,

I believe the the binary package is suitable for development and I plan
integrating docker in my company's upcoming project, so I needed a package
best for production.

Thanks kasper

On Mon, 31 Oct 2022, 19:51 'Kasper Laudrup' via Django users, <
django-users@googlegroups.com> wrote:

> 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
> .
>

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


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

2022-10-31 Thread 'Kasper Laudrup' 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: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-31 Thread Adeyemi Deji

Hello, fam!

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

Thanks, guys...

*Dockerfile*

FROM python:3.8.3-slim

ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

WORKDIR /code

RUN apt-get update \
&& apt-get -y install libpq-dev gcc

COPY ./requirements.txt .
RUN pip install -r requirements.txt

COPY . .
On Saturday, October 29, 2022 at 1:12:22 PM UTC+1 Kasper Laudrup wrote:

> 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/184a0ed7-609c-4410-860f-ccf0e0c08cccn%40googlegroups.com.


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

2022-10-29 Thread 'Kasper Laudrup' 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: error extending base template

2022-10-11 Thread Chukwudi Onwusa
Give space in the html template tag
I mean {% extends 'base.html' %}
But if the base is nested inside a directory inside the template directory
pls name the '../base.html' according.
Thanks
Hope it will be help.

On Mon, Oct 10, 2022, 16:11 Namanya Daniel 
wrote:

> hello, someone help me out. am new to django and i face an issue with
> templates extending base.html
>
> i have created a base.html template which is basically a skeleton for
> other templates, they are all in templates/another directory but when i use
> {%extends 'base.html'%}  I get this error... thanks in advance
>
>
> Request Method:
> GET
> Request URL:
> http://127.0.0.1:8000/
> Django Version:
> 4.1.2
> Exception Type:
> TemplateDoesNotExist
> Exception Value:
> base.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b46cebb4-fca2-49b8-a836-309a2c4a4024n%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/CAGoV8n%3DxS3Zm_NmK7L8TqGg-vwX_5VAN%2BMxSwpM05TNK3Kc4rg%40mail.gmail.com.


Re: error extending base template

2022-10-10 Thread ASAMOAH EMMANUEL
Make sure the template directory is located in the app directory or if it
is in a different directory, ensure the location is specified at the
template section  in the settings.py file

On Mon, Oct 10, 2022 at 3:11 PM Namanya Daniel 
wrote:

> hello, someone help me out. am new to django and i face an issue with
> templates extending base.html
>
> i have created a base.html template which is basically a skeleton for
> other templates, they are all in templates/another directory but when i use
> {%extends 'base.html'%}  I get this error... thanks in advance
>
>
> Request Method:
> GET
> Request URL:
> http://127.0.0.1:8000/
> Django Version:
> 4.1.2
> Exception Type:
> TemplateDoesNotExist
> Exception Value:
> base.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b46cebb4-fca2-49b8-a836-309a2c4a4024n%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/CABFHQYwKkXHT%3DjLQYshKCV3q913_Q8dqWmFXi4477eDXLz0zmg%40mail.gmail.com.


Re: Error: duplicate key value violates unique constraint

2022-09-23 Thread Shams Ulhaq
Make an other constraints pk and your issue is solved django by default
make a pk as id

On Sat, 24 Sept 2022, 10:46 Salima Begum, 
wrote:

> Hi all,
>
> When I am posting data in the server here we have an issue where the
> primary key already exists. For example, today I posted some data . I have
> the same issue. I solved the issue by deleting data from that particular
> table and then I am able to post data. Next day if I try to post data I am
> having the same issue with the primary key already exists. Why this is
> happening I am not able to understand.  On the server I am getting this
> issue where as in local I don't have any issue.
> Please help me to understand why I am having this issue.
> ```
> django.db.utils.IntegrityError: duplicate key value violates unique
> constraint "trades_trade_table_pkey"
> DETAIL: Key (id)=(2) already exists
> ```
> Thank you
> ~Salima
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMSz6bmxvY2f3caZbqvNG3ZaghriShCQV1pouvvOWmgx-wpgbA%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/CACbcXAUFiToDmbDcBD22tvbpS9W%3D8n%2BXSkdF3MYta_iH%2BgfYgA%40mail.gmail.com.


Re: Error django.db.utils.OperationalError: no such column:

2022-04-27 Thread RANGA BHARATH JINKA
Hi,

Run python manage.py makemigrations

python manage.py migrate

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Tue, 26 Apr 2022, 1:07 pm Israel Lewis,  wrote:

> Hello guys,
>
> I'm having an error in my models when I add the FK to the faculty or the
> student.
> model.py
> from django.db import models
>
> # Create your models here.
>
>
> class Student(models.Model):
> first_name = models.CharField(max_length=100)
> last_name = models.CharField(max_length=100)
> reg_no = models.CharField(max_length=20, unique=True)
>
> def __str__(self):
> return self.first_name
>
>
> class Faculty(models.Model):
> faculty_name = models.CharField(max_length=100)
> student = models.ForeignKey(Student, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.faculty_name
>
>
> class Course(models.Model):
> course_name = models.CharField(max_length=100, unique=True)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.course_name
>
>
> class Dean(models.Model):
> dean_name = models.CharField(max_length=100)
> faculty = models.OneToOneField(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.dean_name
>
>
> class StudentRequest(models.Model):
> student_name = models.CharField(max_length=100)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
> reg_no = models.CharField(max_length=20)
> reasons = models.CharField(max_length=300, null=False)
>
> def __str__(self):
> return f"{self.student_name}"
>
>
> class FinancialRecords(models.Model):
> ACADENIC_YEAR_CHOICES = [
> ('Year 3 Sem 2'),
> ('Year 4 Sem 2')
> ]
> PAYMENT_PLAN_CHOICES = [
> ('Full'),
> ('Follow'),
> ('Fail'),
> ]
>
> payment_plan_category = models.CharField(
> PAYMENT_PLAN_CHOICES, max_length=10)
>
> student_reg = models.ForeignKey(Student, models.CASCADE)
> academic_year = models.CharField(ACADENIC_YEAR_CHOICES, max_length=20)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
>
>
>
> Errors
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/utils.py",
> line 89, in _execute
> return self.cursor.execute(sql, params)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py",
> line 477, in execute
> return Database.Cursor.execute(self, query, params)
> sqlite3.OperationalError: no such column: exams_app_faculty.student_id
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/exception.py",
> line 55, in inner
> response = get_response(request)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/base.py",
> line 197, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 683, in wrapper
> return self.admin_site.admin_view(view)(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/views/decorators/cache.py",
> line 62, in _wrapped_view_func
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/sites.py",
> line 242, in inner
> return view(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 46, in _wrapper
> return bound_method(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 2063, in changelist_view
> "selection_note": _("0 of %(cnt)s selected") % {"cnt":
> len(cl.result_list)},
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 302, in __len__
> self._fetch_all()
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 1507, in _fetch_all
> self._result_cache = list(self._iterable_class(self))
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 57, in __iter__
> results = compiler.execute_sql(
>   File
> 

Re: Error django.db.utils.OperationalError: no such column:

2022-04-26 Thread Miracle
Did you run migrations???

You should run `python manage.py makemigrations` and then `python manage.py
migrate`

On Tue, Apr 26, 2022 at 8:37 AM Israel Lewis  wrote:

> Hello guys,
>
> I'm having an error in my models when I add the FK to the faculty or the
> student.
> model.py
> from django.db import models
>
> # Create your models here.
>
>
> class Student(models.Model):
> first_name = models.CharField(max_length=100)
> last_name = models.CharField(max_length=100)
> reg_no = models.CharField(max_length=20, unique=True)
>
> def __str__(self):
> return self.first_name
>
>
> class Faculty(models.Model):
> faculty_name = models.CharField(max_length=100)
> student = models.ForeignKey(Student, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.faculty_name
>
>
> class Course(models.Model):
> course_name = models.CharField(max_length=100, unique=True)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.course_name
>
>
> class Dean(models.Model):
> dean_name = models.CharField(max_length=100)
> faculty = models.OneToOneField(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.dean_name
>
>
> class StudentRequest(models.Model):
> student_name = models.CharField(max_length=100)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
> reg_no = models.CharField(max_length=20)
> reasons = models.CharField(max_length=300, null=False)
>
> def __str__(self):
> return f"{self.student_name}"
>
>
> class FinancialRecords(models.Model):
> ACADENIC_YEAR_CHOICES = [
> ('Year 3 Sem 2'),
> ('Year 4 Sem 2')
> ]
> PAYMENT_PLAN_CHOICES = [
> ('Full'),
> ('Follow'),
> ('Fail'),
> ]
>
> payment_plan_category = models.CharField(
> PAYMENT_PLAN_CHOICES, max_length=10)
>
> student_reg = models.ForeignKey(Student, models.CASCADE)
> academic_year = models.CharField(ACADENIC_YEAR_CHOICES, max_length=20)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
>
>
>
> Errors
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/utils.py",
> line 89, in _execute
> return self.cursor.execute(sql, params)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py",
> line 477, in execute
> return Database.Cursor.execute(self, query, params)
> sqlite3.OperationalError: no such column: exams_app_faculty.student_id
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/exception.py",
> line 55, in inner
> response = get_response(request)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/base.py",
> line 197, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 683, in wrapper
> return self.admin_site.admin_view(view)(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/views/decorators/cache.py",
> line 62, in _wrapped_view_func
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/sites.py",
> line 242, in inner
> return view(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 46, in _wrapper
> return bound_method(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 2063, in changelist_view
> "selection_note": _("0 of %(cnt)s selected") % {"cnt":
> len(cl.result_list)},
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 302, in __len__
> self._fetch_all()
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 1507, in _fetch_all
> self._result_cache = list(self._iterable_class(self))
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 57, in __iter__
> results = compiler.execute_sql(
>   File
> 

Re: Error during template rendering

2022-04-11 Thread emmanuel odor
Thanks Antonis

On Sunday, April 10, 2022 at 9:54:09 AM UTC+1 Antonis Christofides wrote:

> Hi!
>
> The error message 'relation "curriculum_standard" does not exist' has been 
> produced by PostgreSQL, and Django merely repeats it. In other words, 
> Django is telling you that while it was doing what it was doing, an error 
> occurred in the RDBMS, and it is showing you the error message that the 
> RDBMS returned.
>
> People who, unlike me, have studied relational calculus often use the word 
> "relation" for what I call a "table". I don't know why. I once picked up a 
> relational calculus book to take a look, but it was too heavy for my taste 
> :-) (If someone can explain in simple terms I'm eager to read.) So the 
> system is telling you that table "curriculum_standard" does not exist.
>
> This probably means that you need to run "python manage.py migrate".
>
> Regards,
>
> Antonis
>
>
> On 09/04/2022 21.41, emmanuel odor wrote:
>
> Hello group,
>
> I hosted this app on Heroku and i am getting this error. find the attached 
> below. It is working well on my local host...
> ProgrammingError at /relation "curriculum_standard" does not exist LINE 1: 
> "slug", "curriculum_standard"."description" FROM "curriculu... ^ 
> Request Method:
> GET
> Request URL:
> https://insightskillz8.herokuapp.com/
> Django Version:
> 3.2
> Exception Type:
> ProgrammingError
> Exception Value:
> relation "curriculum_standard" does not exist LINE 1: "slug", 
> "curriculum_standard"."description" FROM "curriculu... ^ 
> Exception Location:
> /app/.heroku/python/lib/python3.9/site-packages/django/db/backends/utils.py, 
> line 84, in _execute
> Python Executable:
> /app/.heroku/python/bin/python
> Python Version:
> 3.9.11
> Python Path:
> ['/app/.heroku/python/bin', '/app', 
> '/app/.heroku/python/lib/python39.zip', 
> '/app/.heroku/python/lib/python3.9', 
> '/app/.heroku/python/lib/python3.9/lib-dynload', 
> '/app/.heroku/python/lib/python3.9/site-packages']
> Server time:
> Sat, 09 Apr 2022 18:32:20 +
> Error during template rendering 
>
> In template /app/templates/base.html, error at line *42*
> relation "curriculum_standard" does not exist LINE 1: "slug", 
> "curriculum_standard"."description" FROM "curriculu... ^
>
> -- 
> You received this message because you are subscribed 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/0143d604-a9e7-4fd8-9586-f9c8e8785c8en%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/40c5f225-f24b-4c36-a1e2-1beeff059705n%40googlegroups.com.


Re: Error during template rendering

2022-04-10 Thread Antonis Christofides

Hi!

The error message 'relation "curriculum_standard" does not exist' has been 
produced by PostgreSQL, and Django merely repeats it. In other words, Django is 
telling you that while it was doing what it was doing, an error occurred in the 
RDBMS, and it is showing you the error message that the RDBMS returned.


People who, unlike me, have studied relational calculus often use the word 
"relation" for what I call a "table". I don't know why. I once picked up a 
relational calculus book to take a look, but it was too heavy for my taste :-) 
(If someone can explain in simple terms I'm eager to read.) So the system is 
telling you that table "curriculum_standard" does not exist.


This probably means that you need to run "python manage.py migrate".

Regards,

Antonis



On 09/04/2022 21.41, emmanuel odor wrote:


Hello group,

I hosted this app on Heroku and i am getting this error. find the attached 
below. It is working well on my local host...
ProgrammingError at /relation "curriculum_standard" does not exist LINE 1: 
"slug", "curriculum_standard"."description" FROM "curriculu... ^

Request Method:
GET
Request URL:
https://insightskillz8.herokuapp.com/
Django Version:
3.2
Exception Type:
ProgrammingError
Exception Value:
relation "curriculum_standard" does not exist LINE 1: "slug", 
"curriculum_standard"."description" FROM "curriculu... ^

Exception Location:
/app/.heroku/python/lib/python3.9/site-packages/django/db/backends/utils.py, 
line 84, in _execute

Python Executable:
/app/.heroku/python/bin/python
Python Version:
3.9.11
Python Path:
['/app/.heroku/python/bin', '/app', '/app/.heroku/python/lib/python39.zip', 
'/app/.heroku/python/lib/python3.9', 
'/app/.heroku/python/lib/python3.9/lib-dynload', 
'/app/.heroku/python/lib/python3.9/site-packages']

Server time:
Sat, 09 Apr 2022 18:32:20 +
Error during template rendering

In template /app/templates/base.html, error at line *42*

relation "curriculum_standard" does not exist LINE 1: "slug", 
"curriculum_standard"."description" FROM "curriculu... ^

--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0143d604-a9e7-4fd8-9586-f9c8e8785c8en%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/db64f9a9-512c-6bd5-b7e5-9014ab884b4e%40antonischristofides.com.


Re: Error : Circula import

2022-03-04 Thread Kasper Laudrup

On 04/03/2022 07.58, Jet Ezra wrote:

But the link tells you the details and how to solve the problem.
Anyway, I think you forgot to share the said screenshots. I can't find them.

Also, when you are asking please, don't try to direct us how we should 
solve this problem. Just detail your problem and wait for your answer.




I think you're a bit confused. I answered the original question with the 
link, so you answered the wrong person.


Not sure if GMail doesn't support threads or what else might be the 
cause of the confusion.


Anyway, no worries. Just wanted to point it out.

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/bad0faf8-dc81-c1eb-26f7-7cd4c5d5e80b%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Error : Circula import

2022-03-03 Thread Jet Ezra
But the link tells you the details and how to solve the problem.
Anyway, I think you forgot to share the said screenshots. I can't find them.

Also, when you are asking please, don't try to direct us how we should
solve this problem. Just detail your problem and wait for your answer.

Simple.
A circular import happens when you have fileA that has something say a
class A, then another file B with also a class B
Then class A imports class B from file B which is also importing class A
from B.
So the program keeps importing and never completes the cycle.

Solution,
If you have to use the two like that, then put them in the same file. It is
always my shortcut.

On Thu, Mar 3, 2022 at 11:26 PM Kasper Laudrup 
wrote:

> On 03/03/2022 20.38, Ruzindana Kent wrote:
> > Hello everyone,
> >
> > I'm new to django and also new in the group, I wanted to know how to
> > solve circula import errors. here is a screenshot of the error from the
> > terminal.
> >
> > Any reply about that will be helpful, thank you
> >
>
> Remember that Django is a Python framework, so circular imports are
> mostly a Python thing not specific to Django:
>
> https://www.pythonpool.com/python-circular-import/
>
> 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/e259dd34-1578-7540-35c7-132550a1955c%40stacktrace.dk
> .
>


-- 
jet

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


Re: Error : Circula import

2022-03-03 Thread Kasper Laudrup

On 03/03/2022 20.38, Ruzindana Kent wrote:

Hello everyone,

I'm new to django and also new in the group, I wanted to know how to 
solve circula import errors. here is a screenshot of the error from the 
terminal.


Any reply about that will be helpful, thank you



Remember that Django is a Python framework, so circular imports are 
mostly a Python thing not specific to Django:


https://www.pythonpool.com/python-circular-import/

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/e259dd34-1578-7540-35c7-132550a1955c%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Error

2022-02-21 Thread Kasper Laudrup

On 21/02/2022 16.19, Priyanshu Garg wrote:

Hi,
When I run py -m pip install -e \path\to\your\local\clone\django\ to 
install the previously cloned copy of Django I get this error
  ERROR: \path\to\your\local\clone\django\ is not a valid editable 
requirement. It should either be a path to a local project or a VCS URL 
(beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, 
bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, 
hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, 
svn+svn, svn+file).


Please , help me I am new to open source



You need to replace "\path\to\your\local\clone\django\" with the actual 
path to your clone of Django.


I guess whoever wrote whatever documentation you are following assumed 
that would be obvious.


One might wonder why you are trying to install Django this way?

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/a35fd116-9b6e-e8a3-867e-da4b874ba6f4%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: error email in django

2022-01-21 Thread Saad Olamilekan
Maybe I didn't get the question better, but if what am thinking, like if
you want to be using email login to your app instead of username think you
have to do so
Check the link to know if your question tally to my answer.
https://www.django-rest-framework.org/tutorial/1-serialization/

On Sat, Jan 22, 2022, 1:05 AM Richard Myers 
>
> Get Outlook for iOS <https://aka.ms/o0ukef>
> --
> *From:* django-users@googlegroups.com  on
> behalf of Aksh Desai 
> *Sent:* Friday, January 21, 2022 2:06 PM
> *To:* django-users@googlegroups.com
> *Subject:* Re: error email in django
>
> ok My problem is solved in django email. Thank you
>
> On Fri, 21 Jan 2022 at 18:14, Kasper Laudrup 
> wrote:
>
>> On 21/01/2022 00.37, Saad Olamilekan wrote:
>> > Have you install rest frame work then, insert it to register app in
>> setting?
>> >
>>
>> No. Why would I want to do that?
>>
>> Are you sure you meant to reply to me?
>>
>> 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/98eebc35-98fd-c644-9437-1ce563a43bbb%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/CABANe8OY157HBEsRbAk84mmi6yG5JQC9raymdFrewXk%2BthhyAw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABANe8OY157HBEsRbAk84mmi6yG5JQC9raymdFrewXk%2BthhyAw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/LO6P265MB599803842F8556DF250E4FE5FE5B9%40LO6P265MB5998.GBRP265.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/django-users/LO6P265MB599803842F8556DF250E4FE5FE5B9%40LO6P265MB5998.GBRP265.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
> .
>

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


Re: error email in django

2022-01-21 Thread Richard Myers


Get Outlook for iOS<https://aka.ms/o0ukef>

From: django-users@googlegroups.com  on behalf 
of Aksh Desai 
Sent: Friday, January 21, 2022 2:06 PM
To: django-users@googlegroups.com
Subject: Re: error email in django

ok My problem is solved in django email. Thank you

On Fri, 21 Jan 2022 at 18:14, Kasper Laudrup 
mailto:laud...@stacktrace.dk>> wrote:
On 21/01/2022 00.37, Saad Olamilekan wrote:
> Have you install rest frame work then, insert it to register app in setting?
>

No. Why would I want to do that?

Are you sure you meant to reply to me?

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<mailto:django-users%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98eebc35-98fd-c644-9437-1ce563a43bbb%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<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABANe8OY157HBEsRbAk84mmi6yG5JQC9raymdFrewXk%2BthhyAw%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CABANe8OY157HBEsRbAk84mmi6yG5JQC9raymdFrewXk%2BthhyAw%40mail.gmail.com?utm_medium=email_source=footer>.

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


Re: error email in django

2022-01-21 Thread Aksh Desai
ok My problem is solved in django email. Thank you

On Fri, 21 Jan 2022 at 18:14, Kasper Laudrup  wrote:

> On 21/01/2022 00.37, Saad Olamilekan wrote:
> > Have you install rest frame work then, insert it to register app in
> setting?
> >
>
> No. Why would I want to do that?
>
> Are you sure you meant to reply to me?
>
> 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/98eebc35-98fd-c644-9437-1ce563a43bbb%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/CABANe8OY157HBEsRbAk84mmi6yG5JQC9raymdFrewXk%2BthhyAw%40mail.gmail.com.


Re: error email in django

2022-01-21 Thread Kasper Laudrup

On 21/01/2022 00.37, Saad Olamilekan wrote:

Have you install rest frame work then, insert it to register app in setting?



No. Why would I want to do that?

Are you sure you meant to reply to me?

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/98eebc35-98fd-c644-9437-1ce563a43bbb%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: error email in django

2022-01-20 Thread Saad Olamilekan
Have you install rest frame work then, insert it to register app in setting?

On Thu, Jan 20, 2022, 7:39 PM Kasper Laudrup  On 20/01/2022 15.19, Aksh Desai wrote:
> > Hi! I face one error "No module named 'django.core.mail.backend'" when i
> > use django-rest-framework. Now what can i do? How i fix this error.
>
> Start by reading something like this:
>
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> That should tell you what 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/c4f20780-1d44-98a4-d617-8ef59fcb4846%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/CAP%2BiQEavH90vCe08B4wRrO5ySAxD-%3DzGNSpAdxRbMG_j%3DVCGKQ%40mail.gmail.com.


Re: error email in django

2022-01-20 Thread Kasper Laudrup

On 20/01/2022 15.19, Aksh Desai wrote:
Hi! I face one error "No module named 'django.core.mail.backend'" when i 
use django-rest-framework. Now what can i do? How i fix this error. 


Start by reading something like this:

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

That should tell you what 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/c4f20780-1d44-98a4-d617-8ef59fcb4846%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Error on import psycopg2

2021-09-19 Thread Felix Orinda
pip install psycopg2-binary
Should work for you. Give me feedback on whether it has worked or not

On Sep 17, 2021 21:18, "Aashish Kumar"  wrote:

install this package 

pip install psycopg2-binary

It works perfectly

On Wed, 15 Sep 2021 at 9:40 PM, 'Maryam Yousaf' via Django users <
django-users@googlegroups.com> wrote:

> Hello,
>
> I need psycopg2 for postgres database in django. While installing it, I am
> getting below error. I tried everything on internet but it still there.
> Kindly help me out.
>
> Error:
> "File
> "/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/__init__.py",
> line 51, in 
> from psycopg2._psycopg import ( # noqa
> ImportError:
> dlopen(/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so, 2): Symbol not found: _PQbackendPID
>   Referenced from:
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so
>   Expected in: flat namespace
>  in
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so"
>
> Regards,
> Maryam.
>
>
> --
> This email and any files transmitted with it contain confidential
> information and/or privileged or personal advice. This email is intended
> for the addressee(s) stated above only. If you are not the addressee of the
> email please do not copy or forward it or otherwise use it or any part of
> it in any form whatsoever. If you have received this email in error please
> notify the sender and remove the e-mail from your system. Thank you.
>
> This is an email from the company Just Eat Takeaway.com N.V., a public
> limited liability company with corporate seat in Amsterdam, the
> Netherlands, and address at Oosterdoksstraat 80, 1011 DK Amsterdam
> ,
> registered with the Dutch Chamber of Commerce with number 08142836 and
> where the context requires, includes its subsidiaries and associated
> undertakings.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a1ed0079-ee5f-4da1-977c-a02ee5600d6dn%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/CACTAcrxJJ-9qqyYW%3DHmXurZypRi6Ve82QjTudOZW2gy40-yVww%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/CAKh5HMsBxjsHJH%3DkbM5pP%3DUKzaFeyPgZdbeHnyLCns7p-1VRsw%40mail.gmail.com.


Re: Error on import psycopg2

2021-09-17 Thread Aashish Kumar
install this package 

pip install psycopg2-binary

It works perfectly

On Wed, 15 Sep 2021 at 9:40 PM, 'Maryam Yousaf' via Django users <
django-users@googlegroups.com> wrote:

> Hello,
>
> I need psycopg2 for postgres database in django. While installing it, I am
> getting below error. I tried everything on internet but it still there.
> Kindly help me out.
>
> Error:
> "File
> "/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/__init__.py",
> line 51, in 
> from psycopg2._psycopg import ( # noqa
> ImportError:
> dlopen(/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so, 2): Symbol not found: _PQbackendPID
>   Referenced from:
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so
>   Expected in: flat namespace
>  in
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so"
>
> Regards,
> Maryam.
>
>
> --
> This email and any files transmitted with it contain confidential
> information and/or privileged or personal advice. This email is intended
> for the addressee(s) stated above only. If you are not the addressee of the
> email please do not copy or forward it or otherwise use it or any part of
> it in any form whatsoever. If you have received this email in error please
> notify the sender and remove the e-mail from your system. Thank you.
>
> This is an email from the company Just Eat Takeaway.com N.V., a public
> limited liability company with corporate seat in Amsterdam, the
> Netherlands, and address at Oosterdoksstraat 80, 1011 DK Amsterdam
> ,
> registered with the Dutch Chamber of Commerce with number 08142836 and
> where the context requires, includes its subsidiaries and associated
> undertakings.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a1ed0079-ee5f-4da1-977c-a02ee5600d6dn%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/CACTAcrxJJ-9qqyYW%3DHmXurZypRi6Ve82QjTudOZW2gy40-yVww%40mail.gmail.com.


Re: Error on import psycopg2

2021-09-17 Thread 'Maryam Yousaf' via Django users
Thank you all. It was resolved by making new virtual environment and
installing it again

On Fri, Sep 17, 2021, 6:47 PM Vinay Bagare  wrote:

> Try
>
> >> psycopg2-binary
>
> Best,
> Vinay Bagare
>
> Sent from my iPhone
>
> > On Sep 15, 2021, at 12:15 PM, Kasper Laudrup 
> wrote:
> >
> > On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:
> >> Hello,
> >> I need psycopg2 for postgres database in django. While installing it, I
> am getting below error. I tried everything on internet but it still there.
> Kindly help me out.
> >>
> >
> > Did you try this:
> >
> >
> https://stackoverflow.com/questions/65059310/apple-m1-install-psycopg2-package-symbol-not-found-pqbackendpid
> >
> > I don't know much about MacOSX, but I would assume you have an
> unsupported version of Postgres installed.
> >
> > 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/d667e7fa-57a7-ee16-0390-6834e0f0f006%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/1C0852B7-F4BE-4A54-AB01-033F4A2EB5E6%40gmail.com
> .
>

-- 



This email and any files transmitted with it contain confidential 
information and/or privileged or personal advice. This email is intended 
for the addressee(s) stated above only. If you are not the addressee of the 
email please do not copy or forward it or otherwise use it or any part of 
it in any form whatsoever. If you have received this email in error please 
notify the sender and remove the e-mail from your system. Thank you.


This 
is an email from the company Just Eat Takeaway.com N.V., a public limited 
liability company with corporate seat in Amsterdam, the Netherlands, and 
address at Oosterdoksstraat 80, 1011 DK Amsterdam, registered with the 
Dutch Chamber of Commerce with number 08142836 and where the context 
requires, includes its subsidiaries and associated undertakings.

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


Re: Error on import psycopg2

2021-09-17 Thread Vinay Bagare
Try 

>> psycopg2-binary

Best,
Vinay Bagare

Sent from my iPhone

> On Sep 15, 2021, at 12:15 PM, Kasper Laudrup  wrote:
> 
> On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:
>> Hello,
>> I need psycopg2 for postgres database in django. While installing it, I am 
>> getting below error. I tried everything on internet but it still there. 
>> Kindly help me out.
>> 
> 
> Did you try this:
> 
> https://stackoverflow.com/questions/65059310/apple-m1-install-psycopg2-package-symbol-not-found-pqbackendpid
> 
> I don't know much about MacOSX, but I would assume you have an unsupported 
> version of Postgres installed.
> 
> 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/d667e7fa-57a7-ee16-0390-6834e0f0f006%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/1C0852B7-F4BE-4A54-AB01-033F4A2EB5E6%40gmail.com.


Re: Error on import psycopg2

2021-09-15 Thread FIRDOUS BHAT
Try installing this package,

pip install psycopg2-binary

On Wed, Sep 15, 2021 at 10:45 PM Kasper Laudrup 
wrote:

> On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:
> > Hello,
> >
> > I need psycopg2 for postgres database in django. While installing it, I
> > am getting below error. I tried everything on internet but it still
> > there. Kindly help me out.
> >
>
> Did you try this:
>
>
> https://stackoverflow.com/questions/65059310/apple-m1-install-psycopg2-package-symbol-not-found-pqbackendpid
>
> I don't know much about MacOSX, but I would assume you have an
> unsupported version of Postgres installed.
>
> 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/d667e7fa-57a7-ee16-0390-6834e0f0f006%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/CAFB6YJrWD-Thhida0%2B1fzgzox6ca_CPSPoLgEzTveE8009VwVg%40mail.gmail.com.


Re: Error on import psycopg2

2021-09-15 Thread Kasper Laudrup

On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:

Hello,

I need psycopg2 for postgres database in django. While installing it, I 
am getting below error. I tried everything on internet but it still 
there. Kindly help me out.




Did you try this:

https://stackoverflow.com/questions/65059310/apple-m1-install-psycopg2-package-symbol-not-found-pqbackendpid

I don't know much about MacOSX, but I would assume you have an 
unsupported version of Postgres installed.


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/d667e7fa-57a7-ee16-0390-6834e0f0f006%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Error: NoReverseMatch at

2021-08-16 Thread DJANGO DEVELOPER
show me your django app url and views as well.

On Tue, Aug 17, 2021 at 1:10 AM DJANGO DEVELOPER 
wrote:

> okay add a url. first of all import the view into urls.py file and make a
> path.
>
> On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users <
> django-users@googlegroups.com> wrote:
>
>> Here is how the the project's url.py looks like. Not made any changes to
>> it.
>>
>> [image: dj_4.jpg]
>>
>> *change_list.html: *Copied this (
>> https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html)
>>  to
>> the local app folder.
>>
>> On Monday, August 16, 2021 at 3:36:27 PM UTC+5:30 abubak...@gmail.com
>> wrote:
>>
>>> show your url, view and html code.
>>>
>>> On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <
>>> django...@googlegroups.com> wrote:
>>>
 Hi All,

 I have a customized/override "*changelist_view.html*" to display
 hierarchical data in Django admin panel.

 The problem is that the default form to add the Model data throws below
 error when clicked the button "add category". Please refer to the attached
 screenshot.

 [image: dj_1.jpg]

 *NoReverseMatch at /admin/category/category/add/*

 *Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not
 found. 1 pattern(s) tried: ['admin/(?Pcategory|auth)/$']*

 [image: dj_2.jpg]

 If I remove the function
 "def changelist_view(self, request, extra_context={}):", the model starts
 appearing fine. Please refer to the screenshot below. But then I loose the
 functionality to display custom hierarchical data.

 [image: dj_3.jpg]

 How can I still show the default form to add data to the model and
 override the  *changelist_view.html*" .

 Appreciate any help in advance.

 Thanks
 Rahul

 This e-mail is intended only for the named person or entity to which it is 
 addressed and contains valuable business information that is privileged, 
 confidential and/or otherwise protected from disclosure. If you received 
 this e-mail in error, any review, use, dissemination, distribution or 
 copying of this e-mail is strictly prohibited. Please notify us 
 immediately of the error via e-mail to discl...@email-abuse.com and please 
 delete the e-mail from your system, retaining no copies in any media. We 
 appreciate your cooperation.

 --
 You received this message because you are subscribed 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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com
 
 .

>>>
>> This e-mail is intended only for the named person or entity to which it is 
>> addressed and contains valuable business information that is privileged, 
>> confidential and/or otherwise protected from disclosure. If you received 
>> this e-mail in error, any review, use, dissemination, distribution or 
>> copying of this e-mail is strictly prohibited. Please notify us immediately 
>> of the error via e-mail to disclai...@email-abuse.com and please delete the 
>> e-mail from your system, retaining no copies in any media. We appreciate 
>> your cooperation.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/0b99bc76-6423-432e-b114-107b88976fc4n%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/CAKPY9pmTXmUZQ--W6wTFQpr0jstahL%2BdUjPh2DQ7CRcxb%2B%3D7dg%40mail.gmail.com.


Re: Error: NoReverseMatch at

2021-08-16 Thread DJANGO DEVELOPER
okay add a url. first of all import the view into urls.py file and make a
path.

On Mon, Aug 16, 2021 at 5:32 PM 'Rahul Chauhan' via Django users <
django-users@googlegroups.com> wrote:

> Here is how the the project's url.py looks like. Not made any changes to
> it.
>
> [image: dj_4.jpg]
>
> *change_list.html: *Copied this (
> https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html)
>  to
> the local app folder.
>
> On Monday, August 16, 2021 at 3:36:27 PM UTC+5:30 abubak...@gmail.com
> wrote:
>
>> show your url, view and html code.
>>
>> On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <
>> django...@googlegroups.com> wrote:
>>
>>> Hi All,
>>>
>>> I have a customized/override "*changelist_view.html*" to display
>>> hierarchical data in Django admin panel.
>>>
>>> The problem is that the default form to add the Model data throws below
>>> error when clicked the button "add category". Please refer to the attached
>>> screenshot.
>>>
>>> [image: dj_1.jpg]
>>>
>>> *NoReverseMatch at /admin/category/category/add/*
>>>
>>> *Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not
>>> found. 1 pattern(s) tried: ['admin/(?Pcategory|auth)/$']*
>>>
>>> [image: dj_2.jpg]
>>>
>>> If I remove the function
>>> "def changelist_view(self, request, extra_context={}):", the model starts
>>> appearing fine. Please refer to the screenshot below. But then I loose the
>>> functionality to display custom hierarchical data.
>>>
>>> [image: dj_3.jpg]
>>>
>>> How can I still show the default form to add data to the model and
>>> override the  *changelist_view.html*" .
>>>
>>> Appreciate any help in advance.
>>>
>>> Thanks
>>> Rahul
>>>
>>> This e-mail is intended only for the named person or entity to which it is 
>>> addressed and contains valuable business information that is privileged, 
>>> confidential and/or otherwise protected from disclosure. If you received 
>>> this e-mail in error, any review, use, dissemination, distribution or 
>>> copying of this e-mail is strictly prohibited. Please notify us immediately 
>>> of the error via e-mail to discl...@email-abuse.com and please delete the 
>>> e-mail from your system, retaining no copies in any media. We appreciate 
>>> your cooperation.
>>>
>>> --
>>> You received this message because you are subscribed 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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com
>>> 
>>> .
>>>
>>
> This e-mail is intended only for the named person or entity to which it is 
> addressed and contains valuable business information that is privileged, 
> confidential and/or otherwise protected from disclosure. If you received this 
> e-mail in error, any review, use, dissemination, distribution or copying of 
> this e-mail is strictly prohibited. Please notify us immediately of the error 
> via e-mail to disclai...@email-abuse.com and please delete the e-mail from 
> your system, retaining no copies in any media. We appreciate your cooperation.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0b99bc76-6423-432e-b114-107b88976fc4n%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/CAKPY9pnb52b%2BtTTo3Zx-KnvBCewrQtWcVSA6APGxEm7KU5azSw%40mail.gmail.com.


Re: Error: NoReverseMatch at

2021-08-16 Thread 'Rahul Chauhan' via Django users
Here is how the the project's url.py looks like. Not made any changes to it.

[image: dj_4.jpg]

*change_list.html: *Copied 
this 
(https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/change_list.html)
 to 
the local app folder.

On Monday, August 16, 2021 at 3:36:27 PM UTC+5:30 abubak...@gmail.com wrote:

> show your url, view and html code.
>
> On Mon, Aug 16, 2021 at 2:56 PM 'Rahul Chauhan' via Django users <
> django...@googlegroups.com> wrote:
>
>> Hi All,
>>
>> I have a customized/override "*changelist_view.html*" to display 
>> hierarchical data in Django admin panel.
>>
>> The problem is that the default form to add the Model data throws below 
>> error when clicked the button "add category". Please refer to the attached 
>> screenshot.
>>
>> [image: dj_1.jpg]
>>
>> *NoReverseMatch at /admin/category/category/add/*
>>
>> *Reverse for 'app_list' with keyword arguments '{'app_label': ''}' not 
>> found. 1 pattern(s) tried: ['admin/(?Pcategory|auth)/$']*
>>
>> [image: dj_2.jpg]
>>
>> If I remove the function 
>> "def changelist_view(self, request, extra_context={}):", the model starts 
>> appearing fine. Please refer to the screenshot below. But then I loose the 
>> functionality to display custom hierarchical data.
>>
>> [image: dj_3.jpg]
>>
>> How can I still show the default form to add data to the model and 
>> override the  *changelist_view.html*" .
>>
>> Appreciate any help in advance.
>>
>> Thanks
>> Rahul
>>
>> This e-mail is intended only for the named person or entity to which it is 
>> addressed and contains valuable business information that is privileged, 
>> confidential and/or otherwise protected from disclosure. If you received 
>> this e-mail in error, any review, use, dissemination, distribution or 
>> copying of this e-mail is strictly prohibited. Please notify us immediately 
>> of the error via e-mail to discl...@email-abuse.com and please delete the 
>> e-mail from your system, retaining no copies in any media. We appreciate 
>> your cooperation.
>>
>> -- 
>> You received this message because you are subscribed 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/a3088233-47f7-4433-ae5c-3cd37b1fd9dbn%40googlegroups.com
>>  
>> 
>> .
>>
>
-- 
This e-mail is intended only for the named person or entity to which it is 
addressed and contains valuable business information that is privileged, 
confidential and/or otherwise protected from disclosure. If you received 
this e-mail in error, any review, use, dissemination, distribution or 
copying of this e-mail is strictly prohibited. Please notify us immediately 
of the error via e-mail to disclai...@email-abuse.com 
 and please delete the e-mail from your 
system, retaining no copies in any media. We appreciate your cooperation.

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


Re: Error - module 'django.db.models' has no attribute 'FieldDoesNotExist' when adding FK relationship object

2021-08-11 Thread David Crandell
Try adding related_name='+' to your FK definition.

class ReleaseImageGallery(BaseImageGallery):
release = models.ForeignKey(Release, related_name='+', on_delete
=models.CASCADE)

class Meta:
verbose_name = "release image gallery"
verbose_name_plural = "release image galleries"

On Friday, August 6, 2021 at 6:07:52 PM UTC-5 Lloyd wrote:

> Addendum: the Release model is declared as follows:
>
> from django.db import models
> from tinymce import models as tinymce_models
>
> from artists.models import Artist
> from bands.models import Band
> from labels.models import Label
>
>
> class Release(models.Model):
> artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
> band = models.ForeignKey(
> Band,
> on_delete=models.CASCADE,
> blank=True, null=True
> )
> title = models.CharField(max_length=200)
> label = models.ForeignKey(Label, on_delete=models.CASCADE)
> cat_no = models.CharField(
> max_length=200,
> blank=True,
> null=True,
> default='UNKNOWN'
> )
> country = models.CharField(
> max_length=200,
> blank=True,
> null=True,
> default=None
> )
> RELEASE_FORMAT_CHOICES = [
> ('LP', 'LP'),
> ('10INCHALBUM', '10" ALBUM'),
> ('7INCHEP', '7" EP'),
> ('12INCHEP', '12" EP'),
> ('12INCHSINGLE', '12" SINGLE'),
> ('10INCHSINGLE', '10" SINGLE'),
> ('7INCHSINGLE', '7" SINGLE'),
> ]
> release_format = models.CharField(
> max_length=200,
> choices=RELEASE_FORMAT_CHOICES,
> blank=True,
> null=True,
> default=None
> )
> year = models.PositiveSmallIntegerField()
> genre = models.CharField(
> max_length=200,
> blank=True,
> null=True,
> default=None
> )
> bio = tinymce_models.HTMLField(blank=True, null=True)
> date_created = models.DateTimeField(auto_now_add=True)
> date_modified = models.DateTimeField(auto_now=True)
>
> class Meta:
> verbose_name = "release"
> verbose_name_plural = "releases"
>
> def __str__(self):
> return self.title
>
>
>
>
> I suspect that something is going on with migrations. All migrations have 
> been run and a user is already capturing data on a staging server, so I do 
> not want to recreate the database.
>
>
> Regards,
> ~ Lloyd
>
>
> On Sat, Aug 7, 2021 at 1:02 AM Lloyd Dube  wrote:
>
>> Hi,
>>
>> I have two models, ReleaseImageGallery and ReleaseImage as follows:
>>
>> class ReleaseImageGallery(BaseImageGallery):
>> release = models.ForeignKey(Release, on_delete=models.CASCADE)
>>
>> class Meta:
>> verbose_name = "release image gallery"
>> verbose_name_plural = "release image galleries"
>>
>> and
>>
>> class ReleaseImage(BaseImage):
>> release_image_gallery = models.ForeignKey(ReleaseImageGallery,
>> on_delete=models.CASCADE)
>> image = models.ImageField(upload_to='release-images/', blank=True, null=
>> True)
>> class Meta:
>> verbose_name = "release image"
>> verbose_name_plural = "release images"
>>
>>
>>
>> My admin.py file is as follows:
>> from django.contrib import admin
>>
>> from .models import ReleaseImageGallery, ReleaseImage
>>
>>
>> class ReleaseImageInline(admin.StackedInline):
>> model = ReleaseImage
>> extra = 1
>>
>> class ReleaseImageGalleryAdmin(admin.ModelAdmin):
>> inlines = [ReleaseImageInline]
>> list_filter = ['date_created', 'date_modified']
>> search_fields = ['title']
>>
>>
>> admin.site.register(ReleaseImageGallery, ReleaseImageGalleryAdmin)
>>
>> When I run the project and log into the admin site, all works fine.
>>
>> While creating a new ReleaseImageGallery, I try to add a new Release 
>> object (FK relationship) via a select list, an error is raised in the 
>> add_view as follows:
>>
>> [image: add-release-fk-object.png]
>>
>> ```
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: 
>> http://127.0.0.1:8000/admin/releases/release/add/?_to_field=id&_popup=1
>>
>> Django Version: 3.2.5
>> Python Version: 3.9.6
>> Installed Applications:
>> ['django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles',
>>  'tinymce',
>>  'nested_inline',
>>  'coresite.apps.CoreSiteConfig',
>>  'customadminoptions.apps.CustomAdminOptionsConfig',
>>  'baseimagegalleries.apps.BaseImageGalleriesConfig',
>>  'baseusers.apps.UsersConfig',
>>  'userprofiles.apps.UserProfilesConfig',
>>  'artists.apps.ArtistsConfig',
>>  'artistimagegalleries.apps.ArtistImageGalleriesConfig',
>>  'bands.apps.BandsConfig',
>>  'labels.apps.LabelsConfig',
>>  'releaseimagegalleries.apps.ReleaseImageGalleriesConfig',
>>  'releases.apps.ReleasesConfig']
>> Installed Middleware:
>> ('whitenoise.middleware.WhiteNoiseMiddleware',
>>  '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')
>>
>>
>>
>> Traceback (most recent call last):
>>   File 
>> 

Re: Error - module 'django.db.models' has no attribute 'FieldDoesNotExist' when adding FK relationship object

2021-08-06 Thread Lloyd Dube
Addendum: the Release model is declared as follows:

from django.db import models
from tinymce import models as tinymce_models

from artists.models import Artist
from bands.models import Band
from labels.models import Label


class Release(models.Model):
artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
band = models.ForeignKey(
Band,
on_delete=models.CASCADE,
blank=True, null=True
)
title = models.CharField(max_length=200)
label = models.ForeignKey(Label, on_delete=models.CASCADE)
cat_no = models.CharField(
max_length=200,
blank=True,
null=True,
default='UNKNOWN'
)
country = models.CharField(
max_length=200,
blank=True,
null=True,
default=None
)
RELEASE_FORMAT_CHOICES = [
('LP', 'LP'),
('10INCHALBUM', '10" ALBUM'),
('7INCHEP', '7" EP'),
('12INCHEP', '12" EP'),
('12INCHSINGLE', '12" SINGLE'),
('10INCHSINGLE', '10" SINGLE'),
('7INCHSINGLE', '7" SINGLE'),
]
release_format = models.CharField(
max_length=200,
choices=RELEASE_FORMAT_CHOICES,
blank=True,
null=True,
default=None
)
year = models.PositiveSmallIntegerField()
genre = models.CharField(
max_length=200,
blank=True,
null=True,
default=None
)
bio = tinymce_models.HTMLField(blank=True, null=True)
date_created = models.DateTimeField(auto_now_add=True)
date_modified = models.DateTimeField(auto_now=True)

class Meta:
verbose_name = "release"
verbose_name_plural = "releases"

def __str__(self):
return self.title




I suspect that something is going on with migrations. All migrations have
been run and a user is already capturing data on a staging server, so I do
not want to recreate the database.


Regards,
~ Lloyd


On Sat, Aug 7, 2021 at 1:02 AM Lloyd Dube  wrote:

> Hi,
>
> I have two models, ReleaseImageGallery and ReleaseImage as follows:
>
> class ReleaseImageGallery(BaseImageGallery):
> release = models.ForeignKey(Release, on_delete=models.CASCADE)
>
> class Meta:
> verbose_name = "release image gallery"
> verbose_name_plural = "release image galleries"
>
> and
>
> class ReleaseImage(BaseImage):
> release_image_gallery = models.ForeignKey(ReleaseImageGallery,
> on_delete=models.CASCADE)
> image = models.ImageField(upload_to='release-images/', blank=True, null=
> True)
> class Meta:
> verbose_name = "release image"
> verbose_name_plural = "release images"
>
>
>
> My admin.py file is as follows:
> from django.contrib import admin
>
> from .models import ReleaseImageGallery, ReleaseImage
>
>
> class ReleaseImageInline(admin.StackedInline):
> model = ReleaseImage
> extra = 1
>
> class ReleaseImageGalleryAdmin(admin.ModelAdmin):
> inlines = [ReleaseImageInline]
> list_filter = ['date_created', 'date_modified']
> search_fields = ['title']
>
>
> admin.site.register(ReleaseImageGallery, ReleaseImageGalleryAdmin)
>
> When I run the project and log into the admin site, all works fine.
>
> While creating a new ReleaseImageGallery, I try to add a new Release
> object (FK relationship) via a select list, an error is raised in the
> add_view as follows:
>
> [image: add-release-fk-object.png]
>
> ```
> Environment:
>
>
> Request Method: GET
> Request URL:
> http://127.0.0.1:8000/admin/releases/release/add/?_to_field=id&_popup=1
>
> Django Version: 3.2.5
> Python Version: 3.9.6
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'tinymce',
>  'nested_inline',
>  'coresite.apps.CoreSiteConfig',
>  'customadminoptions.apps.CustomAdminOptionsConfig',
>  'baseimagegalleries.apps.BaseImageGalleriesConfig',
>  'baseusers.apps.UsersConfig',
>  'userprofiles.apps.UserProfilesConfig',
>  'artists.apps.ArtistsConfig',
>  'artistimagegalleries.apps.ArtistImageGalleriesConfig',
>  'bands.apps.BandsConfig',
>  'labels.apps.LabelsConfig',
>  'releaseimagegalleries.apps.ReleaseImageGalleriesConfig',
>  'releases.apps.ReleasesConfig']
> Installed Middleware:
> ('whitenoise.middleware.WhiteNoiseMiddleware',
>  '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')
>
>
>
> Traceback (most recent call last):
>   File
> "/Users/sd/Library/Caches/pypoetry/virtualenvs/afridisc-sWjK8x-o-py3.9/lib/python3.9/site-packages/django/db/models/options.py",
> line 608, in get_field
> return self.fields_map[field_name]
>
> During handling of the above exception ('_to_field'), another exception
> occurred:
>   File
> "/Users/sd/Library/Caches/pypoetry/virtualenvs/afridisc-sWjK8x-o-py3.9/lib/python3.9/site-packages/nested_inline/admin.py",
> line 217, in add_view
> f = opts.get_field(k)
>   File
> 

Re: Error when loading data to database to postgresql

2021-07-15 Thread Kasper Laudrup

On 7/15/21 11:05 AM, Wale Olajumoke wrote:
Please how do I fix this error that comes up when loading data. See the 
error message below.


Reading something like this is a good 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/d9020ea5-4898-1210-04f4-c5a93ad21cc7%40stacktrace.dk.


Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
Hi,
I tried to pass the id..but its not working
I observed while debugging, the try catch block is not getting
implemented... i tried to put some print statements there..but they are not
getting printed
The print statements in models.py -- new_or_get func()  are working

On Thu, Jun 24, 2021 at 12:08 AM Aadil Rashid 
wrote:

> First pass Id as an argument along with request to that particular view
> function
>
> On Thu, 24 Jun, 2021, 12:06 AM Parul.,  wrote:
>
>> Hi ,
>>
>> I am doing : product_obj=Product.objects.get(id=product_id)
>> in the cart_update function in views.py
>>
>> but when trying to print this object... i am not getting anything... is
>> this function is not working?
>>
>>
>> On Wed, Jun 23, 2021 at 11:38 PM Aadil Rashid 
>> wrote:
>>
>>> Pass I'd to the view you are you are using,
>>> And then get products thrid that I'd by simple ORM quriy
>>>
>>> Product = model name.objects.get(id=id)
>>>
>>> On Wed, 23 Jun, 2021, 11:35 PM Parul.,  wrote:
>>>
 Hi,
 I am working on an ecommerce website. I am facing an error. Can anyone
 please help me solve this error.
 I am not able to fetch the PRODUCT_ID

 1. views.py (APP-CART)

 ---
 from django.shortcuts import render,redirect
 from .models import Cart
 from new_app.models import Product

 # Create your views here.


 def cart_home(request):

 cart_obj,new_obj=Cart.objects.new_or_get(request)
 products=Cart.objects.all()



 return render(request,'carts/home.html',{})


 def cart_update(request):
 print(request.POST)
 # print(dict(request.POST.items()))
 # print("in func")

 product_id=1
 print('id below')
 print(product_id) // not able to get the value of product id in
 console
 product_obj=Product.objects.get(id=product_id)
 cart_obj,new_obj=Cart.objects.new_or_get(request)
 if product_obj in cart_obj.products.all():
 cart_obj.products.remove(product_obj)
 else:
 cart_obj.products.add(product_obj)
 return redirect('home')




 
 2. models.py  (cart)


 from django.db import models
 from django.conf import settings
 from new_app.models import Product
 from django.db.models.signals import pre_save,post_save,m2m_changed



 User=settings.AUTH_USER_MODEL

 class CartManager(models.Manager):
 def new_or_get(self,request):
 cart_id=request.session.get("cart_id",None)
 # qs=self.get_queryset().filter(id=cart_id)
 qs=self.get_queryset().only('products')

 print(qs)
 if qs.count()==1:
 new_obj=False
 cart_obj=qs.first()
 print('cart obj below')
 print(cart_obj)
 if request.user.is_authenticated and cart_obj.user is
 None:

 cart_obj.user=request.user
 cart_obj.save()


 else:
 cart_obj=Cart.objects.new_cart(user=request.user)
 new_obj=True
 request.session['cart_id']=cart_obj.id
 return cart_obj,new_obj

 def new_cart(self,user=None):
 user_obj=None
 if user is not None:
 if user.is_authenticated:
 user_obj=user
 return self.model.objects.create(user=user_obj)

 class Cart(models.Model):

 user=models.ForeignKey(User,null=True,blank=True,on_delete=models.CASCADE)
 products=models.ManyToManyField(Product,blank=True)

 subtotal=models.DecimalField(default=0.00,max_digits=100,decimal_places=2)


 total=models.DecimalField(default=0.00,max_digits=100,decimal_places=2)
 timestamp=models.DateTimeField(auto_now_add=True)
 updated=models.DateTimeField(auto_now=True)

 objects=CartManager()

 def __str__(self):
 return str(self.id)


 def m2m_changed_cart_receiver(sender,instance,action,*args,**kwargs):
 print(action)
 if action=='post_add' or action=='post_remove' or action=='clear':
 products=instance.products.all()
 total=0
 for x in products:
 total += x.price
 if instance.subtotal != total:
 instance.subtotal=total
 instance.save()

 m2m_changed.connect(m2m_changed_cart_receiver,sender=Cart.products.through)


 def pre_save_cart_receiver(sender,instance,*args,**kwargs):

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Aadil Rashid
First pass Id as an argument along with request to that particular view
function

On Thu, 24 Jun, 2021, 12:06 AM Parul.,  wrote:

> Hi ,
>
> I am doing : product_obj=Product.objects.get(id=product_id)
> in the cart_update function in views.py
>
> but when trying to print this object... i am not getting anything... is
> this function is not working?
>
>
> On Wed, Jun 23, 2021 at 11:38 PM Aadil Rashid 
> wrote:
>
>> Pass I'd to the view you are you are using,
>> And then get products thrid that I'd by simple ORM quriy
>>
>> Product = model name.objects.get(id=id)
>>
>> On Wed, 23 Jun, 2021, 11:35 PM Parul.,  wrote:
>>
>>> Hi,
>>> I am working on an ecommerce website. I am facing an error. Can anyone
>>> please help me solve this error.
>>> I am not able to fetch the PRODUCT_ID
>>>
>>> 1. views.py (APP-CART)
>>>
>>> ---
>>> from django.shortcuts import render,redirect
>>> from .models import Cart
>>> from new_app.models import Product
>>>
>>> # Create your views here.
>>>
>>>
>>> def cart_home(request):
>>>
>>> cart_obj,new_obj=Cart.objects.new_or_get(request)
>>> products=Cart.objects.all()
>>>
>>>
>>>
>>> return render(request,'carts/home.html',{})
>>>
>>>
>>> def cart_update(request):
>>> print(request.POST)
>>> # print(dict(request.POST.items()))
>>> # print("in func")
>>>
>>> product_id=1
>>> print('id below')
>>> print(product_id) // not able to get the value of product id in
>>> console
>>> product_obj=Product.objects.get(id=product_id)
>>> cart_obj,new_obj=Cart.objects.new_or_get(request)
>>> if product_obj in cart_obj.products.all():
>>> cart_obj.products.remove(product_obj)
>>> else:
>>> cart_obj.products.add(product_obj)
>>> return redirect('home')
>>>
>>>
>>>
>>>
>>> 
>>> 2. models.py  (cart)
>>>
>>>
>>> from django.db import models
>>> from django.conf import settings
>>> from new_app.models import Product
>>> from django.db.models.signals import pre_save,post_save,m2m_changed
>>>
>>>
>>>
>>> User=settings.AUTH_USER_MODEL
>>>
>>> class CartManager(models.Manager):
>>> def new_or_get(self,request):
>>> cart_id=request.session.get("cart_id",None)
>>> # qs=self.get_queryset().filter(id=cart_id)
>>> qs=self.get_queryset().only('products')
>>>
>>> print(qs)
>>> if qs.count()==1:
>>> new_obj=False
>>> cart_obj=qs.first()
>>> print('cart obj below')
>>> print(cart_obj)
>>> if request.user.is_authenticated and cart_obj.user is
>>> None:
>>>
>>> cart_obj.user=request.user
>>> cart_obj.save()
>>>
>>>
>>> else:
>>> cart_obj=Cart.objects.new_cart(user=request.user)
>>> new_obj=True
>>> request.session['cart_id']=cart_obj.id
>>> return cart_obj,new_obj
>>>
>>> def new_cart(self,user=None):
>>> user_obj=None
>>> if user is not None:
>>> if user.is_authenticated:
>>> user_obj=user
>>> return self.model.objects.create(user=user_obj)
>>>
>>> class Cart(models.Model):
>>>
>>> user=models.ForeignKey(User,null=True,blank=True,on_delete=models.CASCADE)
>>> products=models.ManyToManyField(Product,blank=True)
>>>
>>> subtotal=models.DecimalField(default=0.00,max_digits=100,decimal_places=2)
>>>
>>>
>>> total=models.DecimalField(default=0.00,max_digits=100,decimal_places=2)
>>> timestamp=models.DateTimeField(auto_now_add=True)
>>> updated=models.DateTimeField(auto_now=True)
>>>
>>> objects=CartManager()
>>>
>>> def __str__(self):
>>> return str(self.id)
>>>
>>>
>>> def m2m_changed_cart_receiver(sender,instance,action,*args,**kwargs):
>>> print(action)
>>> if action=='post_add' or action=='post_remove' or action=='clear':
>>> products=instance.products.all()
>>> total=0
>>> for x in products:
>>> total += x.price
>>> if instance.subtotal != total:
>>> instance.subtotal=total
>>> instance.save()
>>>
>>> m2m_changed.connect(m2m_changed_cart_receiver,sender=Cart.products.through)
>>>
>>>
>>> def pre_save_cart_receiver(sender,instance,*args,**kwargs):
>>> if instance.subtotal>0:
>>> instance.total=instance.subtotal + 10
>>> else:
>>> instance.total=0.00
>>>
>>> pre_save.connect(pre_save_cart_receiver,sender=Cart)
>>>
>>>
>>>
>>>
>>> OUTPUT IN CONSOLE:
>>>
>>> >> ['FMk2gTq6XXxZ2HU40I6h4b3WtPl59Drf1urwUNufDZUeSFPMzGNwU4L1QuGCiCbB'],
>>> 'product_id':
>>>  ['']}>  GETTING EMPTY DICTIONARY  INSTEAD OF GETTING
>>> PRODUCT ID i.e. 1
>>> id below
>>> 1
>>> ]>
>>>
>>>
>>> So, I am unable to 

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
Hi ,

I am doing : product_obj=Product.objects.get(id=product_id)
in the cart_update function in views.py

but when trying to print this object... i am not getting anything... is
this function is not working?


On Wed, Jun 23, 2021 at 11:38 PM Aadil Rashid 
wrote:

> Pass I'd to the view you are you are using,
> And then get products thrid that I'd by simple ORM quriy
>
> Product = model name.objects.get(id=id)
>
> On Wed, 23 Jun, 2021, 11:35 PM Parul.,  wrote:
>
>> Hi,
>> I am working on an ecommerce website. I am facing an error. Can anyone
>> please help me solve this error.
>> I am not able to fetch the PRODUCT_ID
>>
>> 1. views.py (APP-CART)
>>
>> ---
>> from django.shortcuts import render,redirect
>> from .models import Cart
>> from new_app.models import Product
>>
>> # Create your views here.
>>
>>
>> def cart_home(request):
>>
>> cart_obj,new_obj=Cart.objects.new_or_get(request)
>> products=Cart.objects.all()
>>
>>
>>
>> return render(request,'carts/home.html',{})
>>
>>
>> def cart_update(request):
>> print(request.POST)
>> # print(dict(request.POST.items()))
>> # print("in func")
>>
>> product_id=1
>> print('id below')
>> print(product_id) // not able to get the value of product id in
>> console
>> product_obj=Product.objects.get(id=product_id)
>> cart_obj,new_obj=Cart.objects.new_or_get(request)
>> if product_obj in cart_obj.products.all():
>> cart_obj.products.remove(product_obj)
>> else:
>> cart_obj.products.add(product_obj)
>> return redirect('home')
>>
>>
>>
>>
>> 
>> 2. models.py  (cart)
>>
>>
>> from django.db import models
>> from django.conf import settings
>> from new_app.models import Product
>> from django.db.models.signals import pre_save,post_save,m2m_changed
>>
>>
>>
>> User=settings.AUTH_USER_MODEL
>>
>> class CartManager(models.Manager):
>> def new_or_get(self,request):
>> cart_id=request.session.get("cart_id",None)
>> # qs=self.get_queryset().filter(id=cart_id)
>> qs=self.get_queryset().only('products')
>>
>> print(qs)
>> if qs.count()==1:
>> new_obj=False
>> cart_obj=qs.first()
>> print('cart obj below')
>> print(cart_obj)
>> if request.user.is_authenticated and cart_obj.user is
>> None:
>>
>> cart_obj.user=request.user
>> cart_obj.save()
>>
>>
>> else:
>> cart_obj=Cart.objects.new_cart(user=request.user)
>> new_obj=True
>> request.session['cart_id']=cart_obj.id
>> return cart_obj,new_obj
>>
>> def new_cart(self,user=None):
>> user_obj=None
>> if user is not None:
>> if user.is_authenticated:
>> user_obj=user
>> return self.model.objects.create(user=user_obj)
>>
>> class Cart(models.Model):
>>
>> user=models.ForeignKey(User,null=True,blank=True,on_delete=models.CASCADE)
>> products=models.ManyToManyField(Product,blank=True)
>>
>> subtotal=models.DecimalField(default=0.00,max_digits=100,decimal_places=2)
>>
>>
>> total=models.DecimalField(default=0.00,max_digits=100,decimal_places=2)
>> timestamp=models.DateTimeField(auto_now_add=True)
>> updated=models.DateTimeField(auto_now=True)
>>
>> objects=CartManager()
>>
>> def __str__(self):
>> return str(self.id)
>>
>>
>> def m2m_changed_cart_receiver(sender,instance,action,*args,**kwargs):
>> print(action)
>> if action=='post_add' or action=='post_remove' or action=='clear':
>> products=instance.products.all()
>> total=0
>> for x in products:
>> total += x.price
>> if instance.subtotal != total:
>> instance.subtotal=total
>> instance.save()
>>
>> m2m_changed.connect(m2m_changed_cart_receiver,sender=Cart.products.through)
>>
>>
>> def pre_save_cart_receiver(sender,instance,*args,**kwargs):
>> if instance.subtotal>0:
>> instance.total=instance.subtotal + 10
>> else:
>> instance.total=0.00
>>
>> pre_save.connect(pre_save_cart_receiver,sender=Cart)
>>
>>
>>
>>
>> OUTPUT IN CONSOLE:
>>
>> > ['FMk2gTq6XXxZ2HU40I6h4b3WtPl59Drf1urwUNufDZUeSFPMzGNwU4L1QuGCiCbB'],
>> 'product_id':
>>  ['']}>  GETTING EMPTY DICTIONARY  INSTEAD OF GETTING PRODUCT
>> ID i.e. 1
>> id below
>> 1
>> ]>
>>
>>
>> So, I am unable to fetch the productc id there besides the csrf
>> i tried to individually print the product id.. which came as 1...(written
>> under"id below" in output)
>>
>> Can anyone pls help me with this.
>>
>>
>>
>>
>> Also, adding update_cart.html
>> {%
>> csrf_token %}
>>   
>>   {% if product in 

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Aadil Rashid
Pass I'd to the view you are you are using,
And then get products thrid that I'd by simple ORM quriy

Product = model name.objects.get(id=id)

On Wed, 23 Jun, 2021, 11:35 PM Parul.,  wrote:

> Hi,
> I am working on an ecommerce website. I am facing an error. Can anyone
> please help me solve this error.
> I am not able to fetch the PRODUCT_ID
>
> 1. views.py (APP-CART)
>
> ---
> from django.shortcuts import render,redirect
> from .models import Cart
> from new_app.models import Product
>
> # Create your views here.
>
>
> def cart_home(request):
>
> cart_obj,new_obj=Cart.objects.new_or_get(request)
> products=Cart.objects.all()
>
>
>
> return render(request,'carts/home.html',{})
>
>
> def cart_update(request):
> print(request.POST)
> # print(dict(request.POST.items()))
> # print("in func")
>
> product_id=1
> print('id below')
> print(product_id) // not able to get the value of product id in
> console
> product_obj=Product.objects.get(id=product_id)
> cart_obj,new_obj=Cart.objects.new_or_get(request)
> if product_obj in cart_obj.products.all():
> cart_obj.products.remove(product_obj)
> else:
> cart_obj.products.add(product_obj)
> return redirect('home')
>
>
>
>
> 
> 2. models.py  (cart)
>
>
> from django.db import models
> from django.conf import settings
> from new_app.models import Product
> from django.db.models.signals import pre_save,post_save,m2m_changed
>
>
>
> User=settings.AUTH_USER_MODEL
>
> class CartManager(models.Manager):
> def new_or_get(self,request):
> cart_id=request.session.get("cart_id",None)
> # qs=self.get_queryset().filter(id=cart_id)
> qs=self.get_queryset().only('products')
>
> print(qs)
> if qs.count()==1:
> new_obj=False
> cart_obj=qs.first()
> print('cart obj below')
> print(cart_obj)
> if request.user.is_authenticated and cart_obj.user is None:
>
> cart_obj.user=request.user
> cart_obj.save()
>
>
> else:
> cart_obj=Cart.objects.new_cart(user=request.user)
> new_obj=True
> request.session['cart_id']=cart_obj.id
> return cart_obj,new_obj
>
> def new_cart(self,user=None):
> user_obj=None
> if user is not None:
> if user.is_authenticated:
> user_obj=user
> return self.model.objects.create(user=user_obj)
>
> class Cart(models.Model):
>
> user=models.ForeignKey(User,null=True,blank=True,on_delete=models.CASCADE)
> products=models.ManyToManyField(Product,blank=True)
>
> subtotal=models.DecimalField(default=0.00,max_digits=100,decimal_places=2)
>
> total=models.DecimalField(default=0.00,max_digits=100,decimal_places=2)
> timestamp=models.DateTimeField(auto_now_add=True)
> updated=models.DateTimeField(auto_now=True)
>
> objects=CartManager()
>
> def __str__(self):
> return str(self.id)
>
>
> def m2m_changed_cart_receiver(sender,instance,action,*args,**kwargs):
> print(action)
> if action=='post_add' or action=='post_remove' or action=='clear':
> products=instance.products.all()
> total=0
> for x in products:
> total += x.price
> if instance.subtotal != total:
> instance.subtotal=total
> instance.save()
> m2m_changed.connect(m2m_changed_cart_receiver,sender=Cart.products.through)
>
>
> def pre_save_cart_receiver(sender,instance,*args,**kwargs):
> if instance.subtotal>0:
> instance.total=instance.subtotal + 10
> else:
> instance.total=0.00
>
> pre_save.connect(pre_save_cart_receiver,sender=Cart)
>
>
>
>
> OUTPUT IN CONSOLE:
>
>  ['FMk2gTq6XXxZ2HU40I6h4b3WtPl59Drf1urwUNufDZUeSFPMzGNwU4L1QuGCiCbB'],
> 'product_id':
>  ['']}>  GETTING EMPTY DICTIONARY  INSTEAD OF GETTING PRODUCT
> ID i.e. 1
> id below
> 1
> ]>
>
>
> So, I am unable to fetch the productc id there besides the csrf
> i tried to individually print the product id.. which came as 1...(written
> under"id below" in output)
>
> Can anyone pls help me with this.
>
>
>
>
> Also, adding update_cart.html
> {% csrf_token
> %}
>   
>   {% if product in cart.products.all %}
>   remove
>   {% else %}
>   add to cart
>   {% endif %}
>
>   
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> 

Re: error save to model on a onto many relationship

2021-06-10 Thread Abdul Qoyyuum
What happens if you try and save choice#3 in question 1 only? Can you try 
in the Python shell? 

On Friday, June 11, 2021 at 8:38:37 AM UTC+8 suabiut wrote:

> I am running to some issue saving to models in a one to make relationship. 
> The error is described Here 
> 
>   
> . I would appreciate it if you could point me in the right direction.
>
> cheers,
>

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


Re: Error finding Upload-Folder. Maybe it does not exist?

2021-05-26 Thread Mic
I tried to create the missing `blast/db` folder in the following way but it 
still does not work:

```
*$ docker-compose exec web /bin/bash*
*# pwd*
*/code*
*# mkdir -p blast/db*
*# mkdir -p i5k/blast/db *
```
Where do I have to create *blast/db* folder?

Thank you in advance,

Michal
On Tuesday, May 25, 2021 at 8:25:39 AM UTC+10 Mic wrote:

> Hello,
> I found a Django project and failed to get it running in Docker container 
> in the following way:
>
>  1. `*git clone git clone https://github.com/NAL-i5K/django-blast.git 
> *`
>  2. `*$ cat requirements.txt*` in this files the below dependencies had 
> to be updated:
> - psycopg2==2.8.6 
>
> I have the following Dockerfile:
>
> ```
> *FROM python:2*
> *ENV PYTHONUNBUFFERED=1*
> *RUN apt-get update && apt-get install -y postgresql-client*
> *WORKDIR /code*
> *COPY requirements.txt /code/*
> *RUN pip install -r requirements.txt*
> *COPY . /code/*
> *RUN mkdir -p /var/log/django*
> *RUN mkdir -p /var/log/i5k*
> ```
>
> For `docker-compose.yml` I use:
>
> ```
> *version: "3"*
>
> *services:*
> *  db:*
> *image: postgres*
> *volumes:*
> *  - ./data/db:/var/lib/postgresql/data*
> *  - 
> ./scripts/install-extensions.sql:/docker-entrypoint-initdb.d/install-extensions.sql*
>
> *environment:*
> *  - POSTGRES_DB=postgres*
> *  - POSTGRES_USER=postgres*
> *  - POSTGRES_PASSWORD=postgres*
>
> *  web:*
> *build: .*
> *command: python manage.py runserver 0.0.0.0:8000 
> *
> *volumes:*
> *  - .:/code*
> *ports:*
> *  - "8000:8000"*
> *depends_on:*
> *  - db*
> *links:*
> *  - db*
> ```
>
> ```
> *$ cat scripts/install-extensions.sql *
> *CREATE EXTENSION hstore;*
> ```
>
> I had to change:
>
> ```
> *$ vim i5k/settings.py*
> *DATABASES = {*
> *'default': {*
> *'ENGINE': 'django.db.backends.postgresql_psycopg2',*
> *'NAME': 'postgres',*
> *'USER': 'postgres',*
> *'PASSWORD': 'postgres',*
> *'HOST': 'db',*
> *'PORT': '5432',*
> *}*
> *}*
> ```
>
> Next, I ran:
>
>1. `*docker-compose up --build*` 
>2. `*docker-compose run web python manage.py`* 
>3. `*docker-compose run web python manage.py migrate*`
>4. `*docker-compose run web python manage.py createsuperuser`*
>
> Finally, I opened in Browser `
> http://localhost:8000/admin/blast/blastdb/add/` 
>  and try to upload a file 
> and got this error:
>
>
> *```*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *web_1  | [24/May/2021 18:04:53] "POST 
> /admin/blast/sequencetype/add/?_to_field=id&_popup=1 HTTP/1.1" 200 237web_1 
>  | [24/May/2021 18:04:58] "GET /admin/blast/blastdb/add/ HTTP/1.1" 200 
> 15281web_1  | [24/May/2021 18:04:58] "GET /admin/jsi18n/ HTTP/1.1" 200 
> 2372web_1  | django.request ERROR 2021-05-24 18:05:05,381 10 [Internal 
> Server Error: /admin/filebrowser/browse/]web_1  | Traceback (most recent 
> call last):web_1  |   File 
> "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 
> 132, in get_responseweb_1  | response = wrapped_callback(request, 
> *callback_args, **callback_kwargs)web_1  |   File 
> "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", 
> line 22, in _wrapped_viewweb_1  | return view_func(request, *args, 
> **kwargs)web_1  |   File 
> "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py", 
> line 57, in _wrapped_view_funcweb_1  | response = view_func(request, 
> *args, **kwargs)web_1  |   File "/code/filebrowser/views.py", line 89, in 
> browseweb_1  | raise ImproperlyConfigured, _("Error finding 
> Upload-Folder. Maybe it does not exist?")web_1  | ImproperlyConfigured: 
> Error finding Upload-Folder. Maybe it does not exist?web_1  | [24/May/2021 
> 18:05:05] "GET 
> /admin/filebrowser/browse/?pop=1=blast/db/=FASTA_type=FASTA 
> HTTP/1.1" 500 101471*
> *```*
> Where do I have to create *blast**/db* folder?
>
>
> Thank you in advance
>

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


Re: error

2021-04-05 Thread RANGA BHARATH JINKA
Hi,
I think you have to generate an app password from Gmail and use it instead
of your password.
Refer to this link. https://support.google.com/mail/answer/185833?hl=en
All the best

On Mon, Apr 5, 2021 at 7:28 PM Kissanth D 
wrote:

> My project description is using django to login via imap server and see
> the unread email in template method but Imeet the error for authentication
> faild but i enabled the gmail less secure app permission and gmail setting
> imap enable but error again
> [image: Capture.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/21a06439-86d7-47d9-9a57-437703f4a654n%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/CAK5m317onw_dYMxvFybtgyfkkMvvaQ_5pKCkQyePEX-VcXGnkA%40mail.gmail.com.


Re: Error: Login at the Admin Page (Django)

2021-02-01 Thread Kasper Laudrup

On 01/02/2021 01.46, Kendel Ibarra wrote:


Hi everybody. I am having some troubles. I am taking the free course of 
Prof. Charles Severance (Dr. Chuck)., on lesson 6, tutorial part 2, I've 
created the username and password successfully,  but at the  moment to 
login at http://djtutorial.dj4e.com/admin I receive the following message:


"Please enter the correct username and password for a staff account. 
Note that both fields may be case-sensitive."


I do not know what's going on. Please I need some help.



If you're sure you've entered the correct username and password that you 
used for creating the account, then I'd suggest you try asking Dr. Chuck 
for help. I don't know what makes you think anyone here can help.


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/62e6a311-a74b-348d-0907-7e98ffb8583a%40stacktrace.dk.


Re: Error After Heroku Deployment

2020-12-30 Thread Sumit Pande
Yes . I got the solution. Thanks

On Wed, Dec 30, 2020, 8:43 PM RANGA BHARATH JINKA 
wrote:

> Hi,
>
> Run
> heroku run python manage.py makemigrations
>  heroku run python manage.py migrate
>
> All the best
>
> On Wed, Dec 30, 2020 at 8:18 PM Sumit Pande <2018bit...@sggs.ac.in> wrote:
>
>> ProgrammingError at /accounts/login/
>> relation "django_site" does not exist
>> LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
>>  ^
>> Request Method:  GET
>> Request URL:  https://carbonapp7.herokuapp.com/accounts/login/
>> Django Version:  3.1.1
>> Exception Type:  ProgrammingError
>> Exception Value:
>> relation "django_site" does not exist
>> LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
>>  ^
>>  I have used *allauth*.
>>
>> *Please help me with this error.*
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send 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%2BPixk%2Bhk3-X3J4SsM%3Dz9az_KntBinoJNOPDWp8mdMf5Abr%2BGg%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/CAK5m315Q5g2XUNJHm4Ui2EbQDV4F9bAKGzR74--7wmo1B16jiA%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/CA%2BPixk%2BUFrX7KFRZoby9uJXRxmXApu3AA6dxc71sCOp_%2BbCciA%40mail.gmail.com.


Re: Error After Heroku Deployment

2020-12-30 Thread RANGA BHARATH JINKA
Hi,

Run
heroku run python manage.py makemigrations
 heroku run python manage.py migrate

All the best

On Wed, Dec 30, 2020 at 8:18 PM Sumit Pande <2018bit...@sggs.ac.in> wrote:

> ProgrammingError at /accounts/login/
> relation "django_site" does not exist
> LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
>  ^
> Request Method:  GET
> Request URL:  https://carbonapp7.herokuapp.com/accounts/login/
> Django Version:  3.1.1
> Exception Type:  ProgrammingError
> Exception Value:
> relation "django_site" does not exist
> LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
>  ^
>  I have used *allauth*.
>
> *Please help me with this error.*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 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%2BPixk%2Bhk3-X3J4SsM%3Dz9az_KntBinoJNOPDWp8mdMf5Abr%2BGg%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/CAK5m315Q5g2XUNJHm4Ui2EbQDV4F9bAKGzR74--7wmo1B16jiA%40mail.gmail.com.


Re: Error at the return of an AJAX POST in DJANGO

2020-10-26 Thread Nikitha Bangalore Escorts
hmm


On Monday, October 26, 2020 at 2:35:28 AM UTC+5:30 wwran...@gmail.com wrote:

> Hi buddies, I have a POST request from ajax. At the backend some records 
> are updated in the django view, this is done fine but an error comes up and 
> the page isnt reloaded.
>
> ***This is the error:***
>
> > SyntaxError: Unexpected token O in JSON at position 0
>
> ***This is the ajax:***
>
> $.ajax({
> headers: { "X-CSRFToken": token },
> "url": '/articulos/massup/', "type": "POST",
> "dataType": "json", data: data,
> success: function(e){
> if(e="OK"){
> location.reload(true);
> }
> },
> error: function(a,b,c){
> alert(c);
> }
> });
> });
>
> ***Thi is the view:***
>
> @csrf_exempt
> def massup(request):
> template_name = "articulos/articulos_ok.html"  
> contexto={}  
> if request.method=="GET":  
> cat = Articulos.objects.all().order_by("codigo")  
> contexto={"obj":cat}  
> if request.method=="POST":  
> codigos=request.POST.getlist("codigos[]")
> porcentaje = codigos[0]#el primer elemento de la lista es el 
> porcentaje
> porcentaje=Decimal(porcentaje)
> codigos= [int(x) for x in codigos]#Convierte la lista en 
> integer
> art_change = Articulos.objects.filter(pk__in=codigos)
> i=0
> for item in art_change:
> if i!=0: #Excluye el primer item ( el porcentaje)
> precioant=item.precio
> precionuevo=(precioant + (porcentaje * precioant/100))
> item.precio=precionuevo
> item.save()
> i=i+1
> return HttpResponse("OK")
> return render(request
>

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


Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
HI Mac,
I've changed the if statement  to if(e=="OK")  but  the message error 
persist.
Note: I have explore the value of the return in the webbrowser dev tools 
and it contains "OK"


El domingo, 25 de octubre de 2020 a la(s) 21:06:00 UTC-3, Mac escribió:

> In your success function, you are assigning the variable e = 'OK', so in 
> your if statement, it appears to throw an error. If you change it to  
> if(e=="OK"), does it work? Note the two equal signs, == .
>
> On Sun, Oct 25, 2020 at 3:29 PM Walter Randazzo  
> wrote:
>
>> I tried with no luck. When i remove it  it brings an error.
>>
>> El domingo, 25 de octubre de 2020 a la(s) 19:19:29 UTC-3, trebor escribió:
>>
>>> Walter,
>>>
>>>  
>>>
>>> If your copy and paste is accurate you have too many closing brackets in 
>>> the ajax section.
>>>
>>>  
>>>
>>> Try removing one of these from the end of the ajax section:
>>>
>>> });
>>>
>>>  
>>>
>>>  
>>>
>>> *From:* django...@googlegroups.com  *On 
>>> Behalf Of *Walter Randazzo
>>> *Sent:* Monday, 26 October 2020 9:09 AM
>>> *To:* django...@googlegroups.com
>>> *Subject:* Re: Error at the return of an AJAX POST in DJANGO
>>>
>>>  
>>>
>>> [External email] Please be cautious when clicking on any links or 
>>> attachments.
>>> ---
>>>
>>> hi there, 
>>>
>>> As far as I check its OK.
>>>
>>>  
>>>
>>> Thanks for replay.
>>>
>>>  
>>>
>>>  
>>>
>>>  
>>>
>>> El dom., 25 oct. 2020 a las 18:43, rbar...@xcaretresearch.com (<
>>> rbar...@xcaretresearch.com>) escribió:
>>>
>>> Not sure, but looks like an extra closing bracket in line 9 of the ajax 
>>> code
>>>
>>> On Sunday, October 25, 2020 at 2:05:28 PM UTC-7 wwran...@gmail.com 
>>> wrote:
>>>
>>> Hi buddies, I have a POST request from ajax. At the backend some records 
>>> are updated in the django view, this is done fine but an error comes up and 
>>> the page isnt reloaded.
>>>
>>>  
>>>
>>> ***This is the error:***
>>>
>>>  
>>>
>>> > SyntaxError: Unexpected token O in JSON at position 0
>>>
>>>  
>>>
>>> ***This is the ajax:***
>>>
>>>  
>>>
>>> $.ajax({
>>>
>>> headers: { "X-CSRFToken": token },
>>>
>>> "url": '/articulos/massup/', "type": "POST",
>>>
>>> "dataType": "json", data: data,
>>>
>>> success: function(e){
>>>
>>> if(e="OK"){
>>>
>>> location.reload(true);
>>>
>>> }
>>>
>>> },
>>>
>>> error: function(a,b,c){
>>>
>>> alert(c);
>>>
>>> }
>>>
>>> });
>>>
>>> });
>>>
>>>  
>>>
>>> ***Thi is the view:***
>>>
>>>  
>>>
>>> @csrf_exempt
>>>
>>> def massup(request):
>>>
>>> template_name = "articulos/articulos_ok.html"  
>>>
>>> contexto={}  
>>>
>>> if request.method=="GET":  
>>>
>>> cat = Articulos.objects.all().order_by("codigo")  
>>>
>>> contexto={"obj":cat}  
>>>
>>> if request.method=="POST":  
>>>
>>> codigos=request.POST.getlist("codigos[]")
>>>
>>> porcentaje = codigos[0]#el primer elemento de la lista es el 
>>> porcentaje
>>>
>>> porcentaje=Decimal(porcentaje)
>>>
>>> codigos= [int(x) for x in codigos]#Convierte la lista en 
>>> integer
>>>
>>> art_change = Articulos.objects.filter(pk__in=codigos)
>>>
>>> i=0
>>>
>>> for item in art_change:
>>>
>>> if i!=0: #Excluye el primer item ( el porcentaje)
>>>
>>> precioant=item.precio
>>>
>>> precionuevo=(precioant + (porcentaje * 
>>> precioant/100))
>>>
>&g

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread leon.vaks

Sent from my Samsung Galaxy smartphone.
 Original message From: Walter Randazzo  
Date: 10/25/20  6:10 PM  (GMT-05:00) To: django-users@googlegroups.com Subject: 
Re: Error at the return of an AJAX POST in DJANGO hi there, As far as I check 
its OK.Thanks for replay.El dom., 25 oct. 2020 a las 18:43, 
rbar...@xcaretresearch.com () escribió:Not sure, 
but looks like an extra closing bracket in line 9 of the ajax codeOn Sunday, 
October 25, 2020 at 2:05:28 PM UTC-7 wwran...@gmail.com wrote:Hi buddies, I 
have a POST request from ajax. At the backend some records are updated in the 
django view, this is done fine but an error comes up and the page isnt 
reloaded.**This is the error:**> SyntaxError: Unexpected token O in JSON at 
position 0**This is the ajax:**    $.ajax({    headers: { "X-CSRFToken": token 
},    "url": '/articulos/massup/', "type": "POST",    "dataType": "json", data: 
data,    success: function(e){    if(e="OK"){    location.reload(true);    }    
},    error: function(a,b,c){    alert(c);    }    });    });**Thi is the 
view:**    @csrf_exempt    def massup(request):        template_name = 
"articulos/articulos_ok.html"          contexto={}          if 
request.method=="GET":              cat = 
Articulos.objects.all().order_by("codigo")              contexto={"obj":cat}    
      if request.method=="POST":              
codigos=request.POST.getlist("codigos[]")            porcentaje = codigos[0]#el 
primer elemento de la lista es el porcentaje            
porcentaje=Decimal(porcentaje)            codigos= [int(x) for x in 
codigos]#Convierte la lista en integer            art_change = 
Articulos.objects.filter(pk__in=codigos)            i=0            for item in 
art_change:                if i!=0: #Excluye el primer item ( el porcentaje)    
                precioant=item.precio                    precionuevo=(precioant 
+ (porcentaje * precioant/100))                    item.precio=precionuevo      
              item.save()                i=i+1            return 
HttpResponse("OK")        return render(request



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%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/CAL7Dry6VivmQKU9sVwu%3Dhw9QXT35HUT7ySTZkAme3_AVu8Rb4w%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/5f9618f9.1c69fb81.6f201.01e1%40mx.google.com.


Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread leon.vaks

  t.f  Sent from my Samsung Galaxy smartphone.
 Original message From: Walter Randazzo  
Date: 10/25/20  6:10 PM  (GMT-05:00) To: django-users@googlegroups.com Subject: 
Re: Error at the return of an AJAX POST in DJANGO hi there, As far as I check 
its OK.Thanks for replay.El dom., 25 oct. 2020 a las 18:43, 
rbar...@xcaretresearch.com () escribió:Not sure, 
but looks like an extra closing bracket in line 9 of the ajax codeOn Sunday, 
October 25, 2020 at 2:05:28 PM UTC-7 wwran...@gmail.com wrote:Hi buddies, I 
have a POST request from ajax. At the backend some records are updated in the 
django view, this is done fine but an error comes up and the page isnt 
reloaded.**This is the error:**> SyntaxError: Unexpected token O in JSON at 
position 0**This is the ajax:**    $.ajax({    headers: { "X-CSRFToken": token 
},    "url": '/articulos/massup/', "type": "POST",    "dataType": "json", data: 
data,    success: function(e){    if(e="OK"){    location.reload(true);    }    
},    error: function(a,b,c){    alert(c);    }    });    });**Thi is the 
view:**    @csrf_exempt    def massup(request):        template_name = 
"articulos/articulos_ok.html"          contexto={}          if 
request.method=="GET":              cat = 
Articulos.objects.all().order_by("codigo")              contexto={"obj":cat}    
      if request.method=="POST":              
codigos=request.POST.getlist("codigos[]")            porcentaje = codigos[0]#el 
primer elemento de la lista es el porcentaje            
porcentaje=Decimal(porcentaje)            codigos= [int(x) for x in 
codigos]#Convierte la lista en integer            art_change = 
Articulos.objects.filter(pk__in=codigos)            i=0            for item in 
art_change:                if i!=0: #Excluye el primer item ( el porcentaje)    
                precioant=item.precio                    precionuevo=(precioant 
+ (porcentaje * precioant/100))                    item.precio=precionuevo      
              item.save()                i=i+1            return 
HttpResponse("OK")        return render(request



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%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/CAL7Dry6VivmQKU9sVwu%3Dhw9QXT35HUT7ySTZkAme3_AVu8Rb4w%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/5f9618f8.1c69fb81.6f201.01de%40mx.google.com.


Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Malcolm MacKinnon
In your success function, you are assigning the variable e = 'OK', so in
your if statement, it appears to throw an error. If you change it to
if(e=="OK"), does it work? Note the two equal signs, == .

On Sun, Oct 25, 2020 at 3:29 PM Walter Randazzo 
wrote:

> I tried with no luck. When i remove it  it brings an error.
>
> El domingo, 25 de octubre de 2020 a la(s) 19:19:29 UTC-3, trebor escribió:
>
>> Walter,
>>
>>
>>
>> If your copy and paste is accurate you have too many closing brackets in
>> the ajax section.
>>
>>
>>
>> Try removing one of these from the end of the ajax section:
>>
>> });
>>
>>
>>
>>
>>
>> *From:* django...@googlegroups.com  *On
>> Behalf Of *Walter Randazzo
>> *Sent:* Monday, 26 October 2020 9:09 AM
>> *To:* django...@googlegroups.com
>> *Subject:* Re: Error at the return of an AJAX POST in DJANGO
>>
>>
>>
>> [External email] Please be cautious when clicking on any links or
>> attachments.
>> ---
>>
>> hi there,
>>
>> As far as I check its OK.
>>
>>
>>
>> Thanks for replay.
>>
>>
>>
>>
>>
>>
>>
>> El dom., 25 oct. 2020 a las 18:43, rbar...@xcaretresearch.com (<
>> rbar...@xcaretresearch.com>) escribió:
>>
>> Not sure, but looks like an extra closing bracket in line 9 of the ajax
>> code
>>
>> On Sunday, October 25, 2020 at 2:05:28 PM UTC-7 wwran...@gmail.com wrote:
>>
>> Hi buddies, I have a POST request from ajax. At the backend some records
>> are updated in the django view, this is done fine but an error comes up and
>> the page isnt reloaded.
>>
>>
>>
>> ***This is the error:***
>>
>>
>>
>> > SyntaxError: Unexpected token O in JSON at position 0
>>
>>
>>
>> ***This is the ajax:***
>>
>>
>>
>> $.ajax({
>>
>> headers: { "X-CSRFToken": token },
>>
>> "url": '/articulos/massup/', "type": "POST",
>>
>> "dataType": "json", data: data,
>>
>> success: function(e){
>>
>> if(e="OK"){
>>
>> location.reload(true);
>>
>> }
>>
>> },
>>
>> error: function(a,b,c){
>>
>> alert(c);
>>
>> }
>>
>> });
>>
>> });
>>
>>
>>
>> ***Thi is the view:***
>>
>>
>>
>> @csrf_exempt
>>
>> def massup(request):
>>
>> template_name = "articulos/articulos_ok.html"
>>
>> contexto={}
>>
>> if request.method=="GET":
>>
>> cat = Articulos.objects.all().order_by("codigo")
>>
>> contexto={"obj":cat}
>>
>> if request.method=="POST":
>>
>> codigos=request.POST.getlist("codigos[]")
>>
>> porcentaje = codigos[0]#el primer elemento de la lista es el
>> porcentaje
>>
>> porcentaje=Decimal(porcentaje)
>>
>> codigos= [int(x) for x in codigos]#Convierte la lista en
>> integer
>>
>> art_change = Articulos.objects.filter(pk__in=codigos)
>>
>> i=0
>>
>> for item in art_change:
>>
>> if i!=0: #Excluye el primer item ( el porcentaje)
>>
>> precioant=item.precio
>>
>> precionuevo=(precioant + (porcentaje * precioant/100))
>>
>> item.precio=precionuevo
>>
>> item.save()
>>
>> i=i+1
>>
>> return HttpResponse("OK")
>>
>> return render(request
>>
>> --
>> You received this message because you are subscribed 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/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "

Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
I tried with no luck. When i remove it  it brings an error.

El domingo, 25 de octubre de 2020 a la(s) 19:19:29 UTC-3, trebor escribió:

> Walter,
>
>  
>
> If your copy and paste is accurate you have too many closing brackets in 
> the ajax section.
>
>  
>
> Try removing one of these from the end of the ajax section:
>
> });
>
>  
>
>  
>
> *From:* django...@googlegroups.com  *On 
> Behalf Of *Walter Randazzo
> *Sent:* Monday, 26 October 2020 9:09 AM
> *To:* django...@googlegroups.com
> *Subject:* Re: Error at the return of an AJAX POST in DJANGO
>
>  
>
> [External email] Please be cautious when clicking on any links or 
> attachments.
> ---
>
> hi there, 
>
> As far as I check its OK.
>
>  
>
> Thanks for replay.
>
>  
>
>  
>
>  
>
> El dom., 25 oct. 2020 a las 18:43, rbar...@xcaretresearch.com (<
> rbar...@xcaretresearch.com>) escribió:
>
> Not sure, but looks like an extra closing bracket in line 9 of the ajax 
> code
>
> On Sunday, October 25, 2020 at 2:05:28 PM UTC-7 wwran...@gmail.com wrote:
>
> Hi buddies, I have a POST request from ajax. At the backend some records 
> are updated in the django view, this is done fine but an error comes up and 
> the page isnt reloaded.
>
>  
>
> ***This is the error:***
>
>  
>
> > SyntaxError: Unexpected token O in JSON at position 0
>
>  
>
> ***This is the ajax:***
>
>  
>
> $.ajax({
>
> headers: { "X-CSRFToken": token },
>
> "url": '/articulos/massup/', "type": "POST",
>
> "dataType": "json", data: data,
>
> success: function(e){
>
> if(e="OK"){
>
> location.reload(true);
>
> }
>
> },
>
> error: function(a,b,c){
>
> alert(c);
>
> }
>
> });
>
> });
>
>  
>
> ***Thi is the view:***
>
>  
>
> @csrf_exempt
>
> def massup(request):
>
> template_name = "articulos/articulos_ok.html"  
>
> contexto={}  
>
> if request.method=="GET":  
>
> cat = Articulos.objects.all().order_by("codigo")  
>
> contexto={"obj":cat}  
>
> if request.method=="POST":  
>
> codigos=request.POST.getlist("codigos[]")
>
> porcentaje = codigos[0]#el primer elemento de la lista es el 
> porcentaje
>
> porcentaje=Decimal(porcentaje)
>
> codigos= [int(x) for x in codigos]#Convierte la lista en 
> integer
>
> art_change = Articulos.objects.filter(pk__in=codigos)
>
> i=0
>
> for item in art_change:
>
> if i!=0: #Excluye el primer item ( el porcentaje)
>
> precioant=item.precio
>
> precionuevo=(precioant + (porcentaje * precioant/100))
>
> item.precio=precionuevo
>
> item.save()
>
> i=i+1
>
> return HttpResponse("OK")
>
> return render(request
>
> -- 
> You received this message because you are subscribed 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/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAL7Dry6VivmQKU9sVwu%3Dhw9QXT35HUT7ySTZkAme3_AVu8Rb4w%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/django-users/CAL7Dry6VivmQKU9sVwu%3Dhw9QXT35HUT7ySTZkAme3_AVu8Rb4w%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

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


RE: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread 'Trevor Woolley' via Django users
Walter,

If your copy and paste is accurate you have too many closing brackets in the 
ajax section.

Try removing one of these from the end of the ajax section:
});


From: django-users@googlegroups.com  On Behalf 
Of Walter Randazzo
Sent: Monday, 26 October 2020 9:09 AM
To: django-users@googlegroups.com
Subject: Re: Error at the return of an AJAX POST in DJANGO


[External email] Please be cautious when clicking on any links or attachments.
---
hi there,

As far as I check its OK.

Thanks for replay.

[https://docs.google.com/uc?export=download=0B2naFBGBGbW3cUwtdVJYYUo4bkU=0B2naFBGBGbW3aG9wM3E3TDJ0aE9wMWlOZkcwNnBlRURFZkZJPQ]


El dom., 25 oct. 2020 a las 18:43, 
rbar...@xcaretresearch.com<mailto:rbar...@xcaretresearch.com> 
(mailto:rbarh...@xcaretresearch.com>>) escribió:
Not sure, but looks like an extra closing bracket in line 9 of the ajax code
On Sunday, October 25, 2020 at 2:05:28 PM UTC-7 
wwran...@gmail.com<mailto:wwran...@gmail.com> wrote:
Hi buddies, I have a POST request from ajax. At the backend some records are 
updated in the django view, this is done fine but an error comes up and the 
page isnt reloaded.

**This is the error:**

> SyntaxError: Unexpected token O in JSON at position 0

**This is the ajax:**

$.ajax({
headers: { "X-CSRFToken": token },
"url": '/articulos/massup/', "type": "POST",
"dataType": "json", data: data,
success: function(e){
if(e="OK"){
location.reload(true);
}
},
error: function(a,b,c){
alert(c);
}
});
});

**Thi is the view:**

@csrf_exempt
def massup(request):
template_name = "articulos/articulos_ok.html"
contexto={}
if request.method=="GET":
cat = Articulos.objects.all().order_by("codigo")
contexto={"obj":cat}
if request.method=="POST":
codigos=request.POST.getlist("codigos[]")
porcentaje = codigos[0]#el primer elemento de la lista es el 
porcentaje
porcentaje=Decimal(porcentaje)
codigos= [int(x) for x in codigos]#Convierte la lista en integer
art_change = Articulos.objects.filter(pk__in=codigos)
i=0
for item in art_change:
if i!=0: #Excluye el primer item ( el porcentaje)
precioant=item.precio
precionuevo=(precioant + (porcentaje * precioant/100))
item.precio=precionuevo
item.save()
i=i+1
return HttpResponse("OK")
return render(request
--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%40googlegroups.com<https://groups.google.com/d/msgid/django-users/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%40googlegroups.com?utm_medium=email_source=footer>.
--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL7Dry6VivmQKU9sVwu%3Dhw9QXT35HUT7ySTZkAme3_AVu8Rb4w%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAL7Dry6VivmQKU9sVwu%3Dhw9QXT35HUT7ySTZkAme3_AVu8Rb4w%40mail.gmail.com?utm_medium=email_source=footer>.

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


Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
hi there,

As far as I check its OK.

Thanks for replay.



El dom., 25 oct. 2020 a las 18:43, rbar...@xcaretresearch.com (<
rbarh...@xcaretresearch.com>) escribió:

> Not sure, but looks like an extra closing bracket in line 9 of the ajax
> code
>
> On Sunday, October 25, 2020 at 2:05:28 PM UTC-7 wwran...@gmail.com wrote:
>
>> Hi buddies, I have a POST request from ajax. At the backend some records
>> are updated in the django view, this is done fine but an error comes up and
>> the page isnt reloaded.
>>
>> ***This is the error:***
>>
>> > SyntaxError: Unexpected token O in JSON at position 0
>>
>> ***This is the ajax:***
>>
>> $.ajax({
>> headers: { "X-CSRFToken": token },
>> "url": '/articulos/massup/', "type": "POST",
>> "dataType": "json", data: data,
>> success: function(e){
>> if(e="OK"){
>> location.reload(true);
>> }
>> },
>> error: function(a,b,c){
>> alert(c);
>> }
>> });
>> });
>>
>> ***Thi is the view:***
>>
>> @csrf_exempt
>> def massup(request):
>> template_name = "articulos/articulos_ok.html"
>> contexto={}
>> if request.method=="GET":
>> cat = Articulos.objects.all().order_by("codigo")
>> contexto={"obj":cat}
>> if request.method=="POST":
>> codigos=request.POST.getlist("codigos[]")
>> porcentaje = codigos[0]#el primer elemento de la lista es el
>> porcentaje
>> porcentaje=Decimal(porcentaje)
>> codigos= [int(x) for x in codigos]#Convierte la lista en
>> integer
>> art_change = Articulos.objects.filter(pk__in=codigos)
>> i=0
>> for item in art_change:
>> if i!=0: #Excluye el primer item ( el porcentaje)
>> precioant=item.precio
>> precionuevo=(precioant + (porcentaje * precioant/100))
>> item.precio=precionuevo
>> item.save()
>> i=i+1
>> return HttpResponse("OK")
>> return render(request
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/91f49db5-e89b-4df2-ab25-9ff61abec4bfn%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/CAL7Dry6VivmQKU9sVwu%3Dhw9QXT35HUT7ySTZkAme3_AVu8Rb4w%40mail.gmail.com.


Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Walter Randazzo
HI Macolm,

I am checking out  the response value in the  and it shows OK in the
browser dev tool . So i guess the function is not defined properly

[image: image.png]

El dom., 25 oct. 2020 a las 18:46, Malcolm MacKinnon ()
escribió:

> I'm not a JS expert, but is your success function defined properly?
> if(e="OK") vs. if(e=="OK")
>
> On Sun, Oct 25, 2020 at 2:06 PM Walter Randazzo 
> wrote:
> >
> > Hi buddies, I have a POST request from ajax. At the backend some records
> are updated in the django view, this is done fine but an error comes up and
> the page isnt reloaded.
> >
> > **This is the error:**
> >
> > > SyntaxError: Unexpected token O in JSON at position 0
> >
> > **This is the ajax:**
> >
> > $.ajax({
> > headers: { "X-CSRFToken": token },
> > "url": '/articulos/massup/', "type": "POST",
> > "dataType": "json", data: data,
> > success: function(e){
> > if(e="OK"){
> > location.reload(true);
> > }
> > },
> > error: function(a,b,c){
> > alert(c);
> > }
> > });
> > });
> >
> > **Thi is the view:**
> >
> > @csrf_exempt
> > def massup(request):
> > template_name = "articulos/articulos_ok.html"
> > contexto={}
> > if request.method=="GET":
> > cat = Articulos.objects.all().order_by("codigo")
> > contexto={"obj":cat}
> > if request.method=="POST":
> > codigos=request.POST.getlist("codigos[]")
> > porcentaje = codigos[0]#el primer elemento de la lista es el
> porcentaje
> > porcentaje=Decimal(porcentaje)
> > codigos= [int(x) for x in codigos]#Convierte la lista en
> integer
> > art_change = Articulos.objects.filter(pk__in=codigos)
> > i=0
> > for item in art_change:
> > if i!=0: #Excluye el primer item ( el porcentaje)
> > precioant=item.precio
> > precionuevo=(precioant + (porcentaje *
> precioant/100))
> > item.precio=precionuevo
> > item.save()
> > i=i+1
> > return HttpResponse("OK")
> > return render(request
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/124085ff-0700-4361-9377-02596b161c4fn%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/CAK8W3Xrftk-3SeGp-EmJVtPzhvWYQp-ZigkHouLOEpDd1W%2B8FA%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/CAL7Dry6ofhrTb__NmTdKXK9Pi9ODtzWDX6GVMfRc916WjB9aXw%40mail.gmail.com.


Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread Malcolm MacKinnon
I'm not a JS expert, but is your success function defined properly?
if(e="OK") vs. if(e=="OK")

On Sun, Oct 25, 2020 at 2:06 PM Walter Randazzo  wrote:
>
> Hi buddies, I have a POST request from ajax. At the backend some records are 
> updated in the django view, this is done fine but an error comes up and the 
> page isnt reloaded.
>
> **This is the error:**
>
> > SyntaxError: Unexpected token O in JSON at position 0
>
> **This is the ajax:**
>
> $.ajax({
> headers: { "X-CSRFToken": token },
> "url": '/articulos/massup/', "type": "POST",
> "dataType": "json", data: data,
> success: function(e){
> if(e="OK"){
> location.reload(true);
> }
> },
> error: function(a,b,c){
> alert(c);
> }
> });
> });
>
> **Thi is the view:**
>
> @csrf_exempt
> def massup(request):
> template_name = "articulos/articulos_ok.html"
> contexto={}
> if request.method=="GET":
> cat = Articulos.objects.all().order_by("codigo")
> contexto={"obj":cat}
> if request.method=="POST":
> codigos=request.POST.getlist("codigos[]")
> porcentaje = codigos[0]#el primer elemento de la lista es el 
> porcentaje
> porcentaje=Decimal(porcentaje)
> codigos= [int(x) for x in codigos]#Convierte la lista en integer
> art_change = Articulos.objects.filter(pk__in=codigos)
> i=0
> for item in art_change:
> if i!=0: #Excluye el primer item ( el porcentaje)
> precioant=item.precio
> precionuevo=(precioant + (porcentaje * precioant/100))
> item.precio=precionuevo
> item.save()
> i=i+1
> return HttpResponse("OK")
> return render(request
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/124085ff-0700-4361-9377-02596b161c4fn%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/CAK8W3Xrftk-3SeGp-EmJVtPzhvWYQp-ZigkHouLOEpDd1W%2B8FA%40mail.gmail.com.


Re: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread rbar...@xcaretresearch.com
Not sure, but looks like an extra closing bracket in line 9 of the ajax code

On Sunday, October 25, 2020 at 2:05:28 PM UTC-7 wwran...@gmail.com wrote:

> Hi buddies, I have a POST request from ajax. At the backend some records 
> are updated in the django view, this is done fine but an error comes up and 
> the page isnt reloaded.
>
> ***This is the error:***
>
> > SyntaxError: Unexpected token O in JSON at position 0
>
> ***This is the ajax:***
>
> $.ajax({
> headers: { "X-CSRFToken": token },
> "url": '/articulos/massup/', "type": "POST",
> "dataType": "json", data: data,
> success: function(e){
> if(e="OK"){
> location.reload(true);
> }
> },
> error: function(a,b,c){
> alert(c);
> }
> });
> });
>
> ***Thi is the view:***
>
> @csrf_exempt
> def massup(request):
> template_name = "articulos/articulos_ok.html"  
> contexto={}  
> if request.method=="GET":  
> cat = Articulos.objects.all().order_by("codigo")  
> contexto={"obj":cat}  
> if request.method=="POST":  
> codigos=request.POST.getlist("codigos[]")
> porcentaje = codigos[0]#el primer elemento de la lista es el 
> porcentaje
> porcentaje=Decimal(porcentaje)
> codigos= [int(x) for x in codigos]#Convierte la lista en 
> integer
> art_change = Articulos.objects.filter(pk__in=codigos)
> i=0
> for item in art_change:
> if i!=0: #Excluye el primer item ( el porcentaje)
> precioant=item.precio
> precionuevo=(precioant + (porcentaje * precioant/100))
> item.precio=precionuevo
> item.save()
> i=i+1
> return HttpResponse("OK")
> return render(request
>

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


Re: error

2020-09-10 Thread GUMMALLA DURGA PRASAD
You can refer below links. it helps you
* https://github.com/pennersr/django-allauth/issues/2274

* 
https://github.com/django/django/blob/ba2057910644d3255a6283a16ceefbd0fceedafc/docs/releases/2.0.txt#L341-L359

On Tuesday, September 8, 2020 at 2:26:25 PM UTC+5:30 punde...@gmail.com 
wrote:

> Hi,
> I got this type of error while executing admin panel,please help me out
>
>

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


Re: Error configuring URLs for a beginner

2020-08-31 Thread Arpana Mehta
Do you have a *urls.py* in your 'app' folder? (And app is a reserved
keyword, it would be better if you use some other name to avoid confusion
even later )

On Tue, 1 Sep 2020 at 04:29, Manal Helal  wrote:

> Hi
>
> I am using Django to the first time and followed the tutorial in:
> https://docs.djangoproject.com/en/3.1/intro/tutorial01/
>
> I changes the mysite and polls app to different project and app names, and
> followed the instructions
>
> I ended up with the following error when I run python manage.py runserver:
>
> *File "/home/me/website.com/project/project/urls.py
> ", line 21, in *
>
> *path('app/', include('app.urls')),*
>
> *  ...*
>
> *urlconf_module = import_module(urlconf_module)*
>
> * ...*
>
> *ModuleNotFoundError: No module named 'app.urls'*
>
>
> app is what is created by python3 manage.py startapp app
>
> and project is what is created by python3 venv/bin/django-admin.py
> startproject project
>
>
> can you please explain to me how to resolve? I am trying to read through
> different documentation of URL resolution and tried
>
> from app import views
>
> or
>
> from app import urls
>
>
> and did not work. It seems I have a long way to get used to the directory
> structure and naming convention and appreciate a jump start please
>
>
> thank you,
>
>
> Manal
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f8b13b31-3eac-4bda-88f4-559256b67eafn%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/CAGyqUuXsBfv01e18Vey-__EhfBJ7T961p_xKUyhonDQiw2YVkw%40mail.gmail.com.


Re: error at deployment

2020-08-23 Thread Kasper Laudrup

Hi Sayur,

On 22/08/2020 22.53, Sayur Patel wrote:

hello i am beginner and this is my first project.



Welcome to developing websites using Django. Hope you'll enjoy it.



anything am i missing?



You should probably let us know a bit about what Phusion Passenger is 
and how you have deployed it there. I have no experience with that, but 
someone else might and there's a greater chance they could help if you 
tell us how you have deployed it.


Do you get an error if you use the Django builtin development server?

Also, as someone else have already mentioned, you should check the logs. 
There's probably some way to do that with Phusion Passenger, if you 
don't know how, try to figure that out. You'll need that sooner or later 
anyway.


Finally, what happens when you click the "Technical information for 
administrator of this website" link? Remember, you're the administrator 
of this website ;-)


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/2254ccd8-e210-6743-df6f-09103486b352%40stacktrace.dk.


Re: error at deployment

2020-08-23 Thread MUGOYA DIHFAHSIH
Also that error comes about if you didn't  create well the python
application like maybe you missed the application root, or you didn't
replace the code in  your wsgi.py with this line. from myproject import
application

On Sun, Aug 23, 2020, 22:49 MUGOYA DIHFAHSIH  wrote:

> You are missing python manage.py collectstatic, this is used to copy your
> static files to public fold so that they can be served by the server .
>
> On Sun, Aug 23, 2020, 02:14 Amresh Giri  wrote:
>
>> Check logs bro. You'll know what went wrong and where.
>>
>> On Sun, Aug 23, 2020, 3:45 AM Sayur Patel  wrote:
>>
>>> hello i am beginner and this is my first project.
>>>
>>> i have error on my home page.
>>>
>>> i do
>>>
>>>1. installing dependency
>>>2. makemigrations
>>>3.  migrate
>>>4.  createsuperuser
>>>
>>>
>>>-  setting.py
>>>- change static root
>>>- static dir
>>>- media root
>>>- allowed host
>>>- debug = false
>>>
>>>
>>>
>>> anything am i missing?
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/c2198c12-b84c-4ee8-a948-6a9c2cffac79n%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/CAJqzuMEDcOdvD9Z8drUR0CqTexgLgfwije8pZ6rCee-SKb8k_A%40mail.gmail.com
>> 
>> .
>>
>

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


Re: error at deployment

2020-08-23 Thread MUGOYA DIHFAHSIH
You are missing python manage.py collectstatic, this is used to copy your
static files to public fold so that they can be served by the server .

On Sun, Aug 23, 2020, 02:14 Amresh Giri  wrote:

> Check logs bro. You'll know what went wrong and where.
>
> On Sun, Aug 23, 2020, 3:45 AM Sayur Patel  wrote:
>
>> hello i am beginner and this is my first project.
>>
>> i have error on my home page.
>>
>> i do
>>
>>1. installing dependency
>>2. makemigrations
>>3.  migrate
>>4.  createsuperuser
>>
>>
>>-  setting.py
>>- change static root
>>- static dir
>>- media root
>>- allowed host
>>- debug = false
>>
>>
>>
>> anything am i missing?
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/c2198c12-b84c-4ee8-a948-6a9c2cffac79n%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/CAJqzuMEDcOdvD9Z8drUR0CqTexgLgfwije8pZ6rCee-SKb8k_A%40mail.gmail.com
> 
> .
>

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


Re: error at deployment

2020-08-22 Thread Amresh Giri
Check logs bro. You'll know what went wrong and where.

On Sun, Aug 23, 2020, 3:45 AM Sayur Patel  wrote:

> hello i am beginner and this is my first project.
>
> i have error on my home page.
>
> i do
>
>1. installing dependency
>2. makemigrations
>3.  migrate
>4.  createsuperuser
>
>
>-  setting.py
>- change static root
>- static dir
>- media root
>- allowed host
>- debug = false
>
>
>
> anything am i missing?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c2198c12-b84c-4ee8-a948-6a9c2cffac79n%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/CAJqzuMEDcOdvD9Z8drUR0CqTexgLgfwije8pZ6rCee-SKb8k_A%40mail.gmail.com.


Re: ERROR

2020-08-19 Thread traore arouna
the github link

https://github.com/TRAOREAROUNA/projetEcom.git

Le vendredi 14 août 2020 à 09:50:17 UTC, akinfolar...@gmail.com a écrit :

> can you send the code on github so i can help you debug properly
>
> On Fri, Aug 14, 2020 at 11:42 PM Kasper Laudrup  
> wrote:
>
>> On 14/08/2020 00.29, traore arouna wrote:
>> > how define it
>> > 
>>
>> https://www.wikihow.com/Declare-a-Variable-in-Javascript
>>
>> -- 
>> You received this message because you are subscribed 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/1b98d4d1-dbb8-46af-c3cd-18a1b83d2c80%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/b931a8d0-24fd-4f7a-856c-7aaed5ef8af6n%40googlegroups.com.


Re: ERROR

2020-08-19 Thread traore arouna
ok no problem
i will do it

I had some problems with my computer, so it is ok now


Le ven. 14 août 2020 à 09:49, Akinfolarin Stephen <
akinfolarinsteph...@gmail.com> a écrit :

> can you send the code on github so i can help you debug properly
>
> On Fri, Aug 14, 2020 at 11:42 PM Kasper Laudrup 
> wrote:
>
>> On 14/08/2020 00.29, traore arouna wrote:
>> > how define it
>> >
>>
>> https://www.wikihow.com/Declare-a-Variable-in-Javascript
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1b98d4d1-dbb8-46af-c3cd-18a1b83d2c80%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/CAFujGLxeFYeTOHYZFJjirXHpFHCv%3D_8Xee9EW2FU66X_tsTgjQ%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/CADjT8DYrXzi3MPcEqeZpjm%3Dyca7CKDjYxE689ZNkVxF0wpczsg%40mail.gmail.com.


Re: ERROR

2020-08-14 Thread Akinfolarin Stephen
can you send the code on github so i can help you debug properly

On Fri, Aug 14, 2020 at 11:42 PM Kasper Laudrup 
wrote:

> On 14/08/2020 00.29, traore arouna wrote:
> > how define it
> >
>
> https://www.wikihow.com/Declare-a-Variable-in-Javascript
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1b98d4d1-dbb8-46af-c3cd-18a1b83d2c80%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/CAFujGLxeFYeTOHYZFJjirXHpFHCv%3D_8Xee9EW2FU66X_tsTgjQ%40mail.gmail.com.


Re: ERROR

2020-08-14 Thread Kasper Laudrup

On 14/08/2020 00.29, traore arouna wrote:

how define it



https://www.wikihow.com/Declare-a-Variable-in-Javascript

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1b98d4d1-dbb8-46af-c3cd-18a1b83d2c80%40stacktrace.dk.


Re: ERROR

2020-08-13 Thread traore arouna
how define it

Le jeu. 13 août 2020 à 21:23, Akinfolarin Stephen <
akinfolarinsteph...@gmail.com> a écrit :

> your user variable is not define try to define it like is not referencing
> anything
>
> On Fri, Aug 14, 2020 at 11:07 AM traore arouna 
> wrote:
>
>> ok my js file is
>>
>>
>> var updateBtns = document.getElementsByClassName('update-cart')
>>
>> for(var i = 0; i < updateBtns.length; i++)
>> {
>> updateBtns[i].addEventListener('click',function(){
>> var productId = this.dataset.product
>> var action = this.dataset.action
>> console.log('productId:',productId, 'action:',action )
>>
>> console.log('USER:', user)
>> if(user === 'AnonymousUser')
>> {
>> console.log('Not logged in')
>> }
>> else
>> {
>> updateUserOrder(productId, action)
>> }
>>
>> })
>> }
>>
>> function updateUserOrder(productId, action){
>> console.log('User is logged in, sending data..')
>> var url = '/update_item/'
>> fetch(url, {
>> method:'POST',
>> headers:{
>> 'Content-Type': 'application/json',
>> 'X-CSRFToken': csrftoken,
>> },
>> body:JSON.stringify({'productId': productId , 'action': action})
>> })
>> .then((response) => {
>> return response.json()
>> })
>> .then((data) => {
>> console.log('Data:',data)
>> location.reload()
>> })
>> }
>>
>> Le dimanche 9 août 2020 à 14:51:03 UTC, yemin...@gmail.com a écrit :
>>
>>> I think the error is from the frontend javascript code. Can u share
>>> snippets of that code?
>>>
>>> On Sun, Aug 9, 2020 at 8:30 AM Kovy Jacob  wrote:
>>>
 Are you switching into your projects directory and then using 'python
 manage.py runserver' from command prompt/terminal to run your website?

 On Sat, Aug 8, 2020 at 4:25 PM Agoua David  wrote:

> Can you send a screenshot of the view file
>
> Le sam. 8 août 2020 à 20:21, traore arouna  a
> écrit :
>
>> Hello
>> I am here because I am developing an e-commerce application.
>> But at a certain level of my code when I run my server with the command
>> python manage runserver
>> I have an error message
>> Uncaught ReferenceError: info is not defined
>>
>> --
>> You received this message because you are subscribed 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/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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...@googlegroups.com.

>>> To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CACMwF3U_6LtFunxAm%2BoSjPFuAYyFGQ7QsgctyigqJXCathe8Lw%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/162f2532-e687-42a4-b82f-7b024964a699n%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/CAFujGLys9SU1UkFVpA6_7L1OdWZYxyj%2BXWsyEoVxmgE7PParHQ%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to 

Re: ERROR

2020-08-13 Thread traore arouna
where can define it

Le jeudi 13 août 2020 à 21:24:37 UTC, akinfolar...@gmail.com a écrit :

> your user variable is not define try to define it like is not referencing 
> anything
>
> On Fri, Aug 14, 2020 at 11:07 AM traore arouna  wrote:
>
>> ok my js file is
>>
>>
>> var updateBtns = document.getElementsByClassName('update-cart')
>>
>> for(var i = 0; i < updateBtns.length; i++)
>> {
>> updateBtns[i].addEventListener('click',function(){
>> var productId = this.dataset.product
>> var action = this.dataset.action
>> console.log('productId:',productId, 'action:',action )
>>
>> console.log('USER:', user)
>> if(user === 'AnonymousUser')
>> {
>> console.log('Not logged in')
>> }
>> else
>> {
>> updateUserOrder(productId, action)
>> }
>>
>> })
>> }
>>
>> function updateUserOrder(productId, action){
>> console.log('User is logged in, sending data..')
>> var url = '/update_item/'
>> fetch(url, {
>> method:'POST',
>> headers:{
>> 'Content-Type': 'application/json',
>> 'X-CSRFToken': csrftoken,
>> },
>> body:JSON.stringify({'productId': productId , 'action': action})
>> })
>> .then((response) => {
>> return response.json()
>> })
>> .then((data) => {
>> console.log('Data:',data)
>> location.reload()
>> })
>> }
>>
>> Le dimanche 9 août 2020 à 14:51:03 UTC, yemin...@gmail.com a écrit :
>>
>>> I think the error is from the frontend javascript code. Can u share 
>>> snippets of that code?
>>>
>>> On Sun, Aug 9, 2020 at 8:30 AM Kovy Jacob  wrote:
>>>
 Are you switching into your projects directory and then using 'python 
 manage.py runserver' from command prompt/terminal to run your website?

 On Sat, Aug 8, 2020 at 4:25 PM Agoua David  wrote:

> Can you send a screenshot of the view file
>
> Le sam. 8 août 2020 à 20:21, traore arouna  a 
> écrit :
>
>> Hello
>> I am here because I am developing an e-commerce application.
>> But at a certain level of my code when I run my server with the command
>> python manage runserver
>> I have an error message
>> Uncaught ReferenceError: info is not defined
>>
>> -- 
>> You received this message because you are subscribed 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/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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...@googlegroups.com.

>>> To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/CACMwF3U_6LtFunxAm%2BoSjPFuAYyFGQ7QsgctyigqJXCathe8Lw%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/162f2532-e687-42a4-b82f-7b024964a699n%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/d7c762ad-fe16-42bd-b760-c457cb150f0fn%40googlegroups.com.


Re: ERROR

2020-08-13 Thread Akinfolarin Stephen
your user variable is not define try to define it like is not referencing
anything

On Fri, Aug 14, 2020 at 11:07 AM traore arouna  wrote:

> ok my js file is
>
>
> var updateBtns = document.getElementsByClassName('update-cart')
>
> for(var i = 0; i < updateBtns.length; i++)
> {
> updateBtns[i].addEventListener('click',function(){
> var productId = this.dataset.product
> var action = this.dataset.action
> console.log('productId:',productId, 'action:',action )
>
> console.log('USER:', user)
> if(user === 'AnonymousUser')
> {
> console.log('Not logged in')
> }
> else
> {
> updateUserOrder(productId, action)
> }
>
> })
> }
>
> function updateUserOrder(productId, action){
> console.log('User is logged in, sending data..')
> var url = '/update_item/'
> fetch(url, {
> method:'POST',
> headers:{
> 'Content-Type': 'application/json',
> 'X-CSRFToken': csrftoken,
> },
> body:JSON.stringify({'productId': productId , 'action': action})
> })
> .then((response) => {
> return response.json()
> })
> .then((data) => {
> console.log('Data:',data)
> location.reload()
> })
> }
>
> Le dimanche 9 août 2020 à 14:51:03 UTC, yemin...@gmail.com a écrit :
>
>> I think the error is from the frontend javascript code. Can u share
>> snippets of that code?
>>
>> On Sun, Aug 9, 2020 at 8:30 AM Kovy Jacob  wrote:
>>
>>> Are you switching into your projects directory and then using 'python
>>> manage.py runserver' from command prompt/terminal to run your website?
>>>
>>> On Sat, Aug 8, 2020 at 4:25 PM Agoua David  wrote:
>>>
 Can you send a screenshot of the view file

 Le sam. 8 août 2020 à 20:21, traore arouna  a
 écrit :

> Hello
> I am here because I am developing an e-commerce application.
> But at a certain level of my code when I run my server with the command
> python manage runserver
> I have an error message
> Uncaught ReferenceError: info is not defined
>
> --
> You received this message because you are subscribed 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/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CACMwF3U_6LtFunxAm%2BoSjPFuAYyFGQ7QsgctyigqJXCathe8Lw%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/162f2532-e687-42a4-b82f-7b024964a699n%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/CAFujGLys9SU1UkFVpA6_7L1OdWZYxyj%2BXWsyEoVxmgE7PParHQ%40mail.gmail.com.


Re: ERROR

2020-08-13 Thread traore arouna
ok my js file is


var updateBtns = document.getElementsByClassName('update-cart')

for(var i = 0; i < updateBtns.length; i++)
{
updateBtns[i].addEventListener('click',function(){
var productId = this.dataset.product
var action = this.dataset.action
console.log('productId:',productId, 'action:',action )

console.log('USER:', user)
if(user === 'AnonymousUser')
{
console.log('Not logged in')
}
else
{
updateUserOrder(productId, action)
}

})
}

function updateUserOrder(productId, action){
console.log('User is logged in, sending data..')
var url = '/update_item/'
fetch(url, {
method:'POST',
headers:{
'Content-Type': 'application/json',
'X-CSRFToken': csrftoken,
},
body:JSON.stringify({'productId': productId , 'action': action})
})
.then((response) => {
return response.json()
})
.then((data) => {
console.log('Data:',data)
location.reload()
})
}

Le dimanche 9 août 2020 à 14:51:03 UTC, yemin...@gmail.com a écrit :

> I think the error is from the frontend javascript code. Can u share 
> snippets of that code?
>
> On Sun, Aug 9, 2020 at 8:30 AM Kovy Jacob  wrote:
>
>> Are you switching into your projects directory and then using 'python 
>> manage.py runserver' from command prompt/terminal to run your website?
>>
>> On Sat, Aug 8, 2020 at 4:25 PM Agoua David  wrote:
>>
>>> Can you send a screenshot of the view file
>>>
>>> Le sam. 8 août 2020 à 20:21, traore arouna  a écrit :
>>>
 Hello
 I am here because I am developing an e-commerce application.
 But at a certain level of my code when I run my server with the command
 python manage runserver
 I have an error message
 Uncaught ReferenceError: info is not defined

 -- 
 You received this message because you are subscribed 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/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CACMwF3U_6LtFunxAm%2BoSjPFuAYyFGQ7QsgctyigqJXCathe8Lw%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/162f2532-e687-42a4-b82f-7b024964a699n%40googlegroups.com.


Re: ERROR

2020-08-13 Thread traore arouna
no I not switch to my web site
I alway in my local project directory

Le dimanche 9 août 2020 à 02:30:36 UTC, kovy@gmail.com a écrit :

> Are you switching into your projects directory and then using 'python 
> manage.py runserver' from command prompt/terminal to run your website?
>
> On Sat, Aug 8, 2020 at 4:25 PM Agoua David  wrote:
>
>> Can you send a screenshot of the view file
>>
>> Le sam. 8 août 2020 à 20:21, traore arouna  a écrit :
>>
>>> Hello
>>> I am here because I am developing an e-commerce application.
>>> But at a certain level of my code when I run my server with the command
>>> python manage runserver
>>> I have an error message
>>> Uncaught ReferenceError: info is not defined
>>>
>>> -- 
>>> You received this message because you are subscribed 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/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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/c23da7ab-0edc-4751-89f1-3f20cda6d833n%40googlegroups.com.


Re: ERROR

2020-08-13 Thread traore arouna
and my view content




from django.shortcuts import render
from django.http import JsonResponse
import json
from .models import *



def store(request):
if request.user.is_authenticated:
customer = request.user.customer
order, created =
Order.objects.get_or_create(customer=customer, complete=False)
items = order.orderitem_set.all()
cartItems = order.get_cart_items
else:
items = []
order = {'get_cart_total': 0, 'get_cart_items': 0, 'shipping': False}
cartItems = order['get_cart_items']

products = Product.objects.all()
context = {'products': products, 'cartItems': cartItems}
return render(request, 'store/store.html', context)


def cart(request):
if request.user.is_authenticated:
customer = request.user.customer
order, created =
Order.objects.get_or_create(customer=customer, complete=False)
items = order.orderitem_set.all()
cartItems = order.get_cart_items
else:
items = []
order = {'get_cart_total': 0, 'get_cart_items': 0}
cartItems = order['get_cart_items']
context = {'items': items, 'order': order, 'cartItems': cartItems}
return render(request, 'store/cart.html', context)


def checkout(request):
if request.user.is_authenticated:
customer = request.user.customer
order, created =
Order.objects.get_or_create(customer=customer, complete=False)
items = order.orderitem_set.all()
cartItems = order.get_cart_items
else:
items = []
order = {'get_cart_total': 0, 'get_cart_items': 0}
cartItems = order['get_cart_items']
context = {'items': items, 'order': order, 'cartItems': cartItems}
return render(request, 'store/checkout.html', context)

def updateItem(request):
data = json.loads(request.body)
productId = data['productId']
action = data['action']

print('action:', action)
print('productId:', productId)


customer = request.user.customer
product = Product.objects.get(id=productId)
order, created = Order.objects.get_or_create(customer=customer,
complete=False)
orderItem, created = OrderItem.objects.get_or_create(order=order,
product=product)

if action == 'add':
orderItem.quantity = (orderItem.quantity + 1)
elif action == 'remove':
orderItem.quantity = (orderItem.quantity - 1)

orderItem.save()

if orderItem.quantity <= 0:
orderItem.delete()


return JsonResponse('Item was added', safe=False)


Le sam. 8 août 2020 à 20:24, Agoua David  a écrit :

> Can you send a screenshot of the view file
>
> Le sam. 8 août 2020 à 20:21, traore arouna  a écrit :
>
>> Hello
>> I am here because I am developing an e-commerce application.
>> But at a certain level of my code when I run my server with the command
>> python manage runserver
>> I have an error message
>> Uncaught ReferenceError: info is not defined
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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/CADjT8DY5pjin5-RGk0xUW2A%3DQVpry2NC%2BCBi8epKQtbvOV8v2w%40mail.gmail.com.


Re: ERROR

2020-08-09 Thread Julio Cojom
It is js error, show the script part. It seems like you referenced a
variable before declare it.

On Sun, Aug 9, 2020, 8:50 AM Yemin Sajid  wrote:

> I think the error is from the frontend javascript code. Can u share
> snippets of that code?
>
> On Sun, Aug 9, 2020 at 8:30 AM Kovy Jacob  wrote:
>
>> Are you switching into your projects directory and then using 'python
>> manage.py runserver' from command prompt/terminal to run your website?
>>
>> On Sat, Aug 8, 2020 at 4:25 PM Agoua David  wrote:
>>
>>> Can you send a screenshot of the view file
>>>
>>> Le sam. 8 août 2020 à 20:21, traore arouna  a
>>> écrit :
>>>
 Hello
 I am here because I am developing an e-commerce application.
 But at a certain level of my code when I run my server with the command
 python manage runserver
 I have an error message
 Uncaught ReferenceError: info is not defined

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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/CACMwF3U_6LtFunxAm%2BoSjPFuAYyFGQ7QsgctyigqJXCathe8Lw%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/CAFzgvyEGOxaYRrpXiW0iPOjdy1tm9LNe1ZOVT7jTkXT56mHh0A%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/CAHRQUHkW8h-3eO29NdpSGGW9T1vV2heEgO1F2UNEa7Y%3DLmVbmg%40mail.gmail.com.


Re: ERROR

2020-08-09 Thread Yemin Sajid
I think the error is from the frontend javascript code. Can u share
snippets of that code?

On Sun, Aug 9, 2020 at 8:30 AM Kovy Jacob  wrote:

> Are you switching into your projects directory and then using 'python
> manage.py runserver' from command prompt/terminal to run your website?
>
> On Sat, Aug 8, 2020 at 4:25 PM Agoua David  wrote:
>
>> Can you send a screenshot of the view file
>>
>> Le sam. 8 août 2020 à 20:21, traore arouna  a
>> écrit :
>>
>>> Hello
>>> I am here because I am developing an e-commerce application.
>>> But at a certain level of my code when I run my server with the command
>>> python manage runserver
>>> I have an error message
>>> Uncaught ReferenceError: info is not defined
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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/CACMwF3U_6LtFunxAm%2BoSjPFuAYyFGQ7QsgctyigqJXCathe8Lw%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/CAFzgvyEGOxaYRrpXiW0iPOjdy1tm9LNe1ZOVT7jTkXT56mHh0A%40mail.gmail.com.


Re: ERROR

2020-08-08 Thread Kovy Jacob
Are you switching into your projects directory and then using 'python
manage.py runserver' from command prompt/terminal to run your website?

On Sat, Aug 8, 2020 at 4:25 PM Agoua David  wrote:

> Can you send a screenshot of the view file
>
> Le sam. 8 août 2020 à 20:21, traore arouna  a écrit :
>
>> Hello
>> I am here because I am developing an e-commerce application.
>> But at a certain level of my code when I run my server with the command
>> python manage runserver
>> I have an error message
>> Uncaught ReferenceError: info is not defined
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%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/CACMwF3U_6LtFunxAm%2BoSjPFuAYyFGQ7QsgctyigqJXCathe8Lw%40mail.gmail.com.


Re: ERROR

2020-08-08 Thread Agoua David
Can you send a screenshot of the view file

Le sam. 8 août 2020 à 20:21, traore arouna  a écrit :

> Hello
> I am here because I am developing an e-commerce application.
> But at a certain level of my code when I run my server with the command
> python manage runserver
> I have an error message
> Uncaught ReferenceError: info is not defined
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2fdbf0c6-5f2e-4120-a524-6f3171c50389o%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/CAByCr6gT6SJ1EHyDMTGKb6Q73rbRJXWnd7XbgOeq7WE%2BLU3sAg%40mail.gmail.com.


Re: Error in sending mail

2020-07-25 Thread MUGOYA DIHFAHSIH
i think it is repeating it cos the email you put in the settings.py is the
same email you used for clients to send to contact you through.
What i mean is a person contacting you sends the email to
rubymoti...@gmail.com and it is the same email you used i the settings.py
to permit django app send email.


On Sat, 25 Jul 2020 at 11:35, Nikola Tesla  wrote:

> *Someone from Django's creators to help me*
> *I have noticed that when the user who sends me a message through the
> contact form, the information that arrives in my mail... arrives in a wrong
> way *
> *I've attached a picture of the error, I want to know how to correct it
> 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/afc4aea3-2cd8-4a02-a358-6ddee98aae10n%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/CAP%3DJD9y_TPZmyNjLQHXULfopm4AKiQsn2P5GjWQQqCLZKGvL1w%40mail.gmail.com.


Re: Error in manage.py when I do python manage.py runserver

2020-07-22 Thread Jagtar Singh Lakhyan
Use python3 & install if Not installed then run python3 manage.py runserver


On Wed, Jul 22, 2020 at 8:08 PM Kovy Jacob  wrote:

> It gives me a syntax error
>
> Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver
> 0.0.0.0:8000
> File "manage.py", line 16
> ) from exc:
> ^
> SyntaxError: invalid syntax
>
> I didn’t edit manage.py yet, I literally just started the project. I was
> thinking maybe its a) a version error, or b) I know that I get syntax
> errors on code that was written in sublime text or a different IDE when I
> run it on IDLE, so maybe its that.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/A7892FFC-BEE5-4DE3-99C1-6C4E8CD98C68%40gmail.com
> .
>


-- 

*jagtar singh*founder & CEO
LinkedIn  
Twitter 

web 1: Network 
web 2: WMS 
web 3: Conference 

Android App 1: Network

Android App 2: WMS

Android App 3: Conference


Instagram 
LinkedIn

LinkedIn2 
Twitter 
*IITIAN'S ADVANCED SCHOOL OF COMPETITION PVT. LTD.
*



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


Re: Error running Django tutorial

2020-07-20 Thread Lithium
In in mysite/urls.py
check the "/" after "polls" in this line: 
path('polls/', include('polls.urls'))


On Friday, June 12, 2020 at 4:52:52 PM UTC+4:30 temitope iyanoye wrote:

> I’m using Django 3.0 and I have this same issue following the official 
> Django tutorial, has anyone been able to fix it? Please I need help, 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/eaae3d91-71bf-4d4d-a15f-674ef3e290b3n%40googlegroups.com.


Re: Error on unauthorized access problem in django

2020-07-18 Thread talk fun
I do not know I am beginner too

On Wed, Jul 15, 2020, 12:25 AM Jorge Gimeno  wrote:

> django.contrib.staticfiles by design will serve static files only when
> debug is set to False.  It's not designed to serve static files in a
> production environment.  See here:
> https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/
>
> -Jorge
>
>
> On Mon, Jul 13, 2020 at 5:11 AM Anjana Balakrishnan <
> anjanabalakrishnan1...@gmail.com> wrote:
>
>> Hi,
>>   i am in trouble with django unauthorized access problem.i have a django
>> project and it is now ready for production,so i added debug=False in
>> settings.py file.When i change the debug=false, unauthorized access issue
>> is solved,but the problem is webpages can't access all css and js
>> files(Static folder,)how can i solve tbis issue?Attached a document showing
>> this problems.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/2edb567b-0909-4381-a8d7-9634ae688df5o%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/CANfN%3DK9ud%2BTHqfkB2Jyc4F76c1Q1ov8Ghkt7MqXAOjia0HXZFw%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/CA%2B4Bgo6Zv7fKuQJJTDGM1saPdWsSmUTJ%2BXDVx4gTHU49AnU4hA%40mail.gmail.com.


  1   2   3   4   5   6   7   8   9   10   >