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

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

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

> Need help in python Django project "online train ticket booking system"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com
> 
> .
>

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


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

2024-02-21 Thread Fasila Ali
I am Interested

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

> Need help in python Django project "online train ticket booking system"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com
> 
> .
>

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


Re: Need help setting up my Django environment

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

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

conda create -n myEnv python==3.12

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

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

Re: Need help setting up my Django environment

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

Supports what Mordecai Etukudo said about version incompatability.

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

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

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

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Re: Need help setting up my Django environment

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

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

> I'm encoutering the below error, how can I fix this
>
> Traceback (most recent call last):
>   File "/home/brigid/.local/bin/django-admin", line 8, in 
> sys.exit(execute_from_command_line())
>  ^^^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
> line 371, in execute_from_command_line
> utility.execute()
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
> line 365, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
> line 288, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
> line 335, in execute
> output = self.handle(*args, **options)
>  ^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
> line 20, in handle
> super().handle('project', project_name, target, **options)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
> line 117, in handle
> django.setup()
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line
> 16, in setup
> from django.urls import set_script_prefix
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py",
> line 1, in 
> from .base import (
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py",
> line 8, in 
> from .exceptions import NoReverseMatch, Resolver404
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py",
> line 1, in 
> from django.http import Http404
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py",
> line 5, in 
> from django.http.response import (
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py",
> line 13, in 
> from django.core.serializers.json import DjangoJSONEncoder
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
> line 23, in 
> from django.core.serializers.base import SerializerDoesNotExist
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
> line 6, in 
> from django.db import models
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/__init__.py",
> line 3, in 
> from django.db.models.aggregates import *  # NOQA
> ^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/aggregates.py",
> line 5, in 
> from django.db.models.expressions import Case, Func, Star, When
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
> line 486, in 
> class TemporalSubtraction(CombinedExpression):
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
> line 487, in TemporalSubtraction
> output_field = fields.DurationField()
>^^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/fields/__init__.py",
> line 155, in __init__
> if isinstance(choices, collections.Iterator):
>
> AttributeError: module 'collections' has no attribute 'Iterator'
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ce94bd02-d38d-464d-9d06-2fbd3d5e7340n%40googlegroups.com
> 
> .
>

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


Re: need help

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

> hello 
>
> Le mar. 4 juil. 2023, 4:44, Theresa Taye  a écrit :
>
>> Hello,
>>
>> You see a Server error because Debug is set to False. To know what the 
>> actual error is, turn it back to True. Then when you are done debugging you 
>> can change that especially if you are pushing to production.
>>
>> On Tue, 4 Jul 2023 at 16:21, Abdoulaye SENE  
>> wrote:
>>
>>> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>>>
>>> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>>>
 Sorry I meant turn 
 DEBUG = True




 Best Regards,

 Albert Ashaba Aheebwa
 +256 781 435857 <+256%20781%20435857>

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

> Go to your settings.py and look for allowed_hosts and make it 
> ALLOWED_HOSTS = ["*"]
>
> or better yet, if you are in development, turn
> DEBUG = False
>
>
>
> Best Regards,
>
> Albert Ashaba Aheebwa
> +256 781 435857 <+256%20781%20435857>
>
> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE,  
> wrote:
>
>> hello,
>> while programming, i see this problem : " CommandError: You must set 
>> settings.ALLOWED_HOSTS if DEBUG is False."
>> i wonder if someone can help me to fix it.
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8663160e-338a-44f6-97df-9c6fab6b1cecn%40googlegroups.com.


Re: need help

2023-07-05 Thread Bouka Largent
hello

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

> Hello,
>
> You see a Server error because Debug is set to False. To know what the
> actual error is, turn it back to True. Then when you are done debugging you
> can change that especially if you are pushing to production.
>
> On Tue, 4 Jul 2023 at 16:21, Abdoulaye SENE 
> wrote:
>
>> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>>
>> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>>
>>> Sorry I meant turn
>>> DEBUG = True
>>>
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>>> wrote:
>>>
 Go to your settings.py and look for allowed_hosts and make it
 ALLOWED_HOSTS = ["*"]

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



 Best Regards,

 Albert Ashaba Aheebwa
 +256 781 435857 <+256%20781%20435857>

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

> hello,
> while programming, i see this problem : " CommandError: You must set
> settings.ALLOWED_HOSTS if DEBUG is False."
> i wonder if someone can help me to fix it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
> 
> .
>
 --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com
> 
> .
>

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


Re: need help

2023-07-04 Thread Theresa Taye
Hello,

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

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

> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>
> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>
>> Sorry I meant turn
>> DEBUG = True
>>
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>> wrote:
>>
>>> Go to your settings.py and look for allowed_hosts and make it
>>> ALLOWED_HOSTS = ["*"]
>>>
>>> or better yet, if you are in development, turn
>>> DEBUG = False
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
>>> wrote:
>>>
 hello,
 while programming, i see this problem : " CommandError: You must set
 settings.ALLOWED_HOSTS if DEBUG is False."
 i wonder if someone can help me to fix it.

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
 
 .

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

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


Re: need help

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

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



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

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

> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>
> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>
>> Sorry I meant turn
>> DEBUG = True
>>
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>> wrote:
>>
>>> Go to your settings.py and look for allowed_hosts and make it
>>> ALLOWED_HOSTS = ["*"]
>>>
>>> or better yet, if you are in development, turn
>>> DEBUG = False
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
>>> wrote:
>>>
 hello,
 while programming, i see this problem : " CommandError: You must set
 settings.ALLOWED_HOSTS if DEBUG is False."
 i wonder if someone can help me to fix it.

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
 
 .

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

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


Re: need help

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

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

> Sorry I meant turn 
> DEBUG = True
>
>
>
>
> Best Regards,
>
> Albert Ashaba Aheebwa
> +256 781 435857 <+256%20781%20435857>
>
> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA,  
> wrote:
>
>> Go to your settings.py and look for allowed_hosts and make it 
>> ALLOWED_HOSTS = ["*"]
>>
>> or better yet, if you are in development, turn
>> DEBUG = False
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE,  
>> wrote:
>>
>>> hello,
>>> while programming, i see this problem : " CommandError: You must set 
>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>> i wonder if someone can help me to fix it.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

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


Re: need help

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



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

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

> Go to your settings.py and look for allowed_hosts and make it
> ALLOWED_HOSTS = ["*"]
>
> or better yet, if you are in development, turn
> DEBUG = False
>
>
>
> Best Regards,
>
> Albert Ashaba Aheebwa
> +256 781 435857
>
> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
> wrote:
>
>> hello,
>> while programming, i see this problem : " CommandError: You must set
>> settings.ALLOWED_HOSTS if DEBUG is False."
>> i wonder if someone can help me to fix it.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>> 
>> .
>>
>

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


Re: need help

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

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



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

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

> hello,
> while programming, i see this problem : " CommandError: You must set
> settings.ALLOWED_HOSTS if DEBUG is False."
> i wonder if someone can help me to fix it.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
> 
> .
>

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


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread Namanya Daniel
Right there, all the best

On Fri, 10 Mar 2023 at 22:31, linda jean-philippe <
jeanphilippe.li...@gmail.com> wrote:

> Yes the user is saved and I can see it on the django admin page and no I
> have not hashed the password.
>
> On Fri, Mar 10, 2023 at 1:33 PM Namanya Daniel 
> wrote:
>
>> 1. Have you tried to check from the django admin end, the user is not
>> saved?
>> 2. If the user is saved, did you create a hashed password before saving
>> data in your views?
>>
>> On Fri, 10 Mar 2023 at 21:15, linda jean-philippe <
>> jeanphilippe.li...@gmail.com> wrote:
>>
>>> I created 2 accounts with the django admin page, but the credentials do
>>> not work on the login page. When I create new credentials with the register
>>> page I made, it doesn’t save. I think it’s supposed to save to the database.
>>>
>>> On Mar 10, 2023, at 1:06 PM, Namanya Daniel 
>>> wrote:
>>>
>>> 
>>>
>>> how have you saved your password in registration?
>>>
>>> On Fri, 10 Mar 2023 at 18:02, linda jean-philippe <
>>> jeanphilippe.li...@gmail.com> wrote:
>>>
 I do not know what I am missing. My login page and register page have
 rendered, but when I try to sign up with new credentials, it does not save.
 And on the Django Admin page, it says invalid password and username with
 each attempt.

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%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/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%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/C005769D-7154-43A2-9D0E-A9A53A62148F%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/CAP4VW2XfYKiajXg5GYbEs75BRDLa5aD1%2Bbiii__YnWHT0YyE8w%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/CAAeZjhhHaER0308c704JeKrf-P91q8FrF2KjWJpBzwZFmK22bA%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/CAP4VW2UXPnxm_Lmch18E5jqRNPx-Aprpe2QMe%2B2cVTY-13ey-w%40mail.gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread linda jean-philippe
Yes the user is saved and I can see it on the django admin page and no I
have not hashed the password.

On Fri, Mar 10, 2023 at 1:33 PM Namanya Daniel 
wrote:

> 1. Have you tried to check from the django admin end, the user is not
> saved?
> 2. If the user is saved, did you create a hashed password before saving
> data in your views?
>
> On Fri, 10 Mar 2023 at 21:15, linda jean-philippe <
> jeanphilippe.li...@gmail.com> wrote:
>
>> I created 2 accounts with the django admin page, but the credentials do
>> not work on the login page. When I create new credentials with the register
>> page I made, it doesn’t save. I think it’s supposed to save to the database.
>>
>> On Mar 10, 2023, at 1:06 PM, Namanya Daniel 
>> wrote:
>>
>> 
>>
>> how have you saved your password in registration?
>>
>> On Fri, 10 Mar 2023 at 18:02, linda jean-philippe <
>> jeanphilippe.li...@gmail.com> wrote:
>>
>>> I do not know what I am missing. My login page and register page have
>>> rendered, but when I try to sign up with new credentials, it does not save.
>>> And on the Django Admin page, it says invalid password and username with
>>> each attempt.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%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/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%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/C005769D-7154-43A2-9D0E-A9A53A62148F%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/CAP4VW2XfYKiajXg5GYbEs75BRDLa5aD1%2Bbiii__YnWHT0YyE8w%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/CAAeZjhhHaER0308c704JeKrf-P91q8FrF2KjWJpBzwZFmK22bA%40mail.gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread Namanya Daniel
1. Have you tried to check from the django admin end, the user is not
saved?
2. If the user is saved, did you create a hashed password before saving
data in your views?

On Fri, 10 Mar 2023 at 21:15, linda jean-philippe <
jeanphilippe.li...@gmail.com> wrote:

> I created 2 accounts with the django admin page, but the credentials do
> not work on the login page. When I create new credentials with the register
> page I made, it doesn’t save. I think it’s supposed to save to the database.
>
> On Mar 10, 2023, at 1:06 PM, Namanya Daniel 
> wrote:
>
> 
>
> how have you saved your password in registration?
>
> On Fri, 10 Mar 2023 at 18:02, linda jean-philippe <
> jeanphilippe.li...@gmail.com> wrote:
>
>> I do not know what I am missing. My login page and register page have
>> rendered, but when I try to sign up with new credentials, it does not save.
>> And on the Django Admin page, it says invalid password and username with
>> each attempt.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%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/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%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/C005769D-7154-43A2-9D0E-A9A53A62148F%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/CAP4VW2XfYKiajXg5GYbEs75BRDLa5aD1%2Bbiii__YnWHT0YyE8w%40mail.gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread linda jean-philippe
I created 2 accounts with the django admin page, but the credentials do not work on the login page. When I create new credentials with the register page I made, it doesn’t save. I think it’s supposed to save to the database.On Mar 10, 2023, at 1:06 PM, Namanya Daniel  wrote:how have you saved your password in registration? On Fri, 10 Mar 2023 at 18:02, linda jean-philippe  wrote:I do not know what I am missing. My login page and register page have rendered, but when I try to sign up with new credentials, it does not save. And on the Django Admin page, it says invalid password and username with each attempt.



-- 
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%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/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%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/C005769D-7154-43A2-9D0E-A9A53A62148F%40gmail.com.


Re: Need help with Authenticating and Authorizing

2023-03-10 Thread Namanya Daniel
how have you saved your password in registration?

On Fri, 10 Mar 2023 at 18:02, linda jean-philippe <
jeanphilippe.li...@gmail.com> wrote:

> I do not know what I am missing. My login page and register page have
> rendered, but when I try to sign up with new credentials, it does not save.
> And on the Django Admin page, it says invalid password and username with
> each attempt.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b9c56cc4-6ab6-4f2b-81f0-48e256ff3685n%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/CAP4VW2X_K03C1ZoZZoCVfCbRBia5SX6OqsPygMixPReHWXe75Q%40mail.gmail.com.


Re: Need help

2023-02-22 Thread herve bineli
Hi Emmanuel,

If you are on Macbook, you can use the excellent app: Dash
https://kapeli.com/dash
But if you are on Windows or Linux, you can use: Zeal https://zealdocs.org/

Best Regards,
BINELI Arsene - binelima...@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/CAJm63OkkQnL8%2BRA2T-2k8V%3Dkz_yQhC2uZqtuCybP6pp5J-k5BQ%40mail.gmail.com.


Re: Need help

2023-02-22 Thread Michael Fladischer

Hi Emmanuel,

Am 22.02.2023 um 00:46 schrieb Emmanuel Wilfried Ilboudo:
Hi all !!! I would like to have the Django documentation in French to 
learn offline. I'm in a place where internet access is a real problem. 
Thanks in advance !!!


you can get the whole documentation in french as a ZIP file here:

https://media.djangoproject.com/docs/django-docs-4.1-fr.zip

Best regards,
Michael

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1e9fb70f-ffe3-c30b-52a6-34c9e2af9bca%40fladi.at.


RE: Need help

2023-02-21 Thread Mike Dewhirst
https://explore.transifex.com/django/django-docs/Might helpM--(Unsigned mail 
from my phone)
 Original message From: Emmanuel Wilfried Ilboudo 
 Date: 22/2/23  13:08  (GMT+10:00) To: 
Django users  Subject: Need help Hi all !!!
I would like to have the Django documentation in French to learn offline.
I'm in a place where internet access is a real problem.
Thanks 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/9b8662d1-22fb-4d81-bc27-9216ef6d0a9dn%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/63f59a10.050a0220.7eb71.f696SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: Need help Scraping a couple of websites

2022-12-26 Thread John McClain
I’m not needing to scrape anything illegal

I need product details and associated images from collections on furniture
mfg websites

I have permission to do so no issues with data being collected

I need data scraped to be cleansed and delivered in csv

I do not need the scraping routine designed fir future use, this one time
scrape. However, if data collected is not sufficient you may need to repeat
the process

On Mon 26 Dec 2022 at 14:39, Raj Mandaviya  wrote:

> Thank you for the info. Does this mean I can make a repo for the Scrapper
> I created with Flask on GitHub and not be affected?
>
> On Friday, December 23, 2022 at 11:41:27 PM UTC+5:30
> bscho...@schollnick.net wrote:
>
>> > I can scrap for you. I just created an IMDB scrapper(which is illegal,
>> so not going to post the code anywhere but mailed IMDb about it) in the
>> flask.
>> > Also, have experience in Django and web scrapping using bs4.
>>
>> illegal? Against Copyright, and maybe not permitted by End-User License.
>>
>> But illegal? You’re not going to go to jail if you scrape IMDB, as an
>> individual user. If you do it as part of a company, that company will
>> probably be issued a cease and desist… And if they don’t comply they’ll get
>> IP blocked, and possibly sued. But once again, I suspect that would be
>> civil, and maybe not criminal? I’m not sure…
>>
>> But IMDB can’t do anything to prevent someone from scraping the web site,
>> as a individual, as long as you don’t draw attention to yourself.
>>
>> - Benjamin
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d033cab5-a552-4ea4-b5d6-ef8aa9b8440dn%40googlegroups.com
> 
> .
>
-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@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/CAN-hv_r8YPe%2BzDZZBjTrtxw8EOn3hbmcMyVbf_7WaYQt828LYQ%40mail.gmail.com.


Re: Need help Scraping a couple of websites

2022-12-26 Thread Raj Mandaviya
Thank you for the info. Does this mean I can make a repo for the Scrapper I 
created with Flask on GitHub and not be affected?

On Friday, December 23, 2022 at 11:41:27 PM UTC+5:30 
bscho...@schollnick.net wrote:

> > I can scrap for you. I just created an IMDB scrapper(which is illegal, 
> so not going to post the code anywhere but mailed IMDb about it) in the 
> flask.
> > Also, have experience in Django and web scrapping using bs4.
>
> illegal? Against Copyright, and maybe not permitted by End-User License. 
>
> But illegal? You’re not going to go to jail if you scrape IMDB, as an 
> individual user. If you do it as part of a company, that company will 
> probably be issued a cease and desist… And if they don’t comply they’ll get 
> IP blocked, and possibly sued. But once again, I suspect that would be 
> civil, and maybe not criminal? I’m not sure… 
>
> But IMDB can’t do anything to prevent someone from scraping the web site, 
> as a individual, as long as you don’t draw attention to yourself.
>
> - Benjamin
>
>

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


Re: Need help Scraping a couple of websites

2022-12-23 Thread Michael Starr
Yeah it's not a DDOS or anything. They are providing the movie information 
on their site, from their databases, as-is and without warranty. That means 
you can do whatever you want with it to the fullest extent of criminal law.

But maybe I have no idea what I'm talking about.

Cheers,
Mike

On Friday, December 23, 2022 at 10:11:27 AM UTC-8 bscho...@schollnick.net 
wrote:

> > I can scrap for you. I just created an IMDB scrapper(which is illegal, 
> so not going to post the code anywhere but mailed IMDb about it) in the 
> flask.
> > Also, have experience in Django and web scrapping using bs4.
>
> illegal? Against Copyright, and maybe not permitted by End-User License. 
>
> But illegal? You’re not going to go to jail if you scrape IMDB, as an 
> individual user. If you do it as part of a company, that company will 
> probably be issued a cease and desist… And if they don’t comply they’ll get 
> IP blocked, and possibly sued. But once again, I suspect that would be 
> civil, and maybe not criminal? I’m not sure… 
>
> But IMDB can’t do anything to prevent someone from scraping the web site, 
> as a individual, as long as you don’t draw attention to yourself.
>
> - Benjamin
>
>

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


Re: Need help Scraping a couple of websites

2022-12-23 Thread Benjamin Schollnick
> I can scrap for you. I just created an IMDB scrapper(which is illegal, so not 
> going to post the code anywhere but mailed IMDb about it) in the flask.
> Also, have experience in Django and web scrapping using bs4.

illegal?  Against Copyright, and maybe not permitted by End-User License.  

But illegal?  You’re not going to go to jail if you scrape IMDB, as an 
individual user.  If you do it as part of a company, that company will probably 
be issued a cease and desist…  And if they don’t comply they’ll get IP blocked, 
and possibly sued.  But once again, I suspect that would be civil, and maybe 
not criminal?  I’m not sure… 

But IMDB can’t do anything to prevent someone from scraping the web site, as a 
individual, as long as you don’t draw attention to yourself.

- Benjamin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/914A19F5-E2B4-41B8-9E3F-73C3A272FAF5%40schollnick.net.


Re: Need help Scraping a couple of websites

2022-12-23 Thread Raj Mandaviya
I can scrap for you. I just created an IMDB scrapper(which is illegal, so 
not going to post the code anywhere but mailed IMDb about it) in the flask.
Also, have experience in Django and web scrapping using bs4.

My GitHub: https://github.com/Rajm1505

Drop an email for your requirement at rajm150...@gmail.com

Thank you

On Friday, December 16, 2022 at 10:41:39 PM UTC+5:30 jmccla...@gmail.com 
wrote:

> Hello,
>
> I need help scraping a couple of commercial websites to collect product 
> data for use in e-commerce store.
>
> Willing to pay modest fee for the help.
>
> Get in touch if interested...
>

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


Re: Need help Scraping a couple of websites

2022-12-16 Thread Paul Kudla (SCOM.CA Internet Services Inc.)



please contact me directly

i am familiar with all sorts of databases and have had to migrate data 
across multiple platforms.


Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email p...@scom.ca


Happy Friday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services 
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email p...@scom.ca

On 2022-12-16 12:11 p.m., John McClain wrote:

Hello,

I need help scraping a couple of commercial websites to collect product 
data for use in e-commerce store.


Willing to pay modest fee for the help.

Get in touch if interested...

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


--
This message has been scanned for viruses and
dangerous content by *MailScanner* , and is
believed to be clean.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a6a61786-87a3-cd36-80df-27a36bcc66cb%40scom.ca.


Re: Need help on reducing cognitive complexity

2022-07-21 Thread Michael Thomas
Personally I think the code has a very weird "smell"... Assuming you don't
have any way of rewriting the calling code and are stuck with editing this
single method, I'd suggest something along the lines of:

@staticmethod
def in_circle_check(obj_type, item, uuid):
if obj_type not in ['trees', 'flowers']:
return None

# trim the trailing 's', so this can be used elsewhere...
obj_type = obj_type[:-1]

if not (plant := get_plant_with_circles(uuid)):
return None

if plant[f'in_all_{obj_type}_types']:
return True

circle_objects = plant[f'{obj_type}_circle']['items']

if isinstance(circle_objects, list):
if not isinstance(item, (list, tuple)):
items = item
else:
items = [item]

if all([i in circle_objects for i in items]):
return True

return -1


On Thu, Jul 21, 2022 at 1:19 PM Shaheed Haque 
wrote:

> The first step is to ensure you have a precise and accurate understanding
> of the code before optimization. Right now, I am suspicious of at least 2
> things in the code.
>
> First, the function returns any of {None, -1, True}. While this is
> certainly allowed, is this correct? If not, please correct the code. If so,
> then can you explain the rule that governs the return type (assuming it is
> not literally what is written).
>
> Second, as your previous respond ant hinted, the first 2 lines look like
> an optimisation attempt, except for the return type issue. Can you clarify
> if the purpose of these lines is optimisation, or not?
>
>
>
>
> On Thu, 21 Jul 2022, 06:53 Sencer Hamarat, 
> wrote:
>
>> Hi everyone,
>>
>> I have a code block with high cognitive complexity below:
>>
>> @staticmethod
>> def in_circle_check(obj_type, item, uuid, item_is_array=False):
>>
>> if obj_type not in ['trees', 'flowers']:
>> return None
>>
>> plant = get_plant_with_circles(uuid)
>> if not plant:
>> return None
>>
>> if obj_type == 'trees':
>> if plant['in_all_tree_types']:
>> return True
>> circle_objects = plant['tree_circle']['items']
>> else:
>> if plant['in_all_flower_types']:
>> return True
>> circle_objects = plant['flower_circle']['items']
>>
>> if isinstance(circle_objects, list):
>> if item_is_array:
>> for item in item:
>> if item not in circle_objects:
>> return -1
>> return True
>> else:
>> if item in circle_objects:
>> return True
>> else:
>> return -1
>>
>> return -1
>>
>>
>> I try to move the first 3 if statements on the beginning of the block
>> into new methods but that maneuver ends up with raising complexity.
>>
>> Can anybody help me to learn how to reduce cognitive complexity in code
>> blocks like this?
>>
>> Kind regards,
>> Sencer HAMARAT
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CACp8TZhBa9EbekcT1ApmzdDRVk2vCb64%3DvvXHrSawO2RJSySpQ%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/CAHAc2jewMaP41PJZN8OVFqZ2hw41A9r8c8DDjRJc0VG%3DqP9X5g%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/CAEdx1fpaLC4C4Lo%3DXW6-vqb4_Mk7RLOh5qa9254cKkmMEZ5obw%40mail.gmail.com.


Re: Need help on reducing cognitive complexity

2022-07-21 Thread Shaheed Haque
The first step is to ensure you have a precise and accurate understanding
of the code before optimization. Right now, I am suspicious of at least 2
things in the code.

First, the function returns any of {None, -1, True}. While this is
certainly allowed, is this correct? If not, please correct the code. If so,
then can you explain the rule that governs the return type (assuming it is
not literally what is written).

Second, as your previous respond ant hinted, the first 2 lines look like an
optimisation attempt, except for the return type issue. Can you clarify if
the purpose of these lines is optimisation, or not?




On Thu, 21 Jul 2022, 06:53 Sencer Hamarat,  wrote:

> Hi everyone,
>
> I have a code block with high cognitive complexity below:
>
> @staticmethod
> def in_circle_check(obj_type, item, uuid, item_is_array=False):
>
> if obj_type not in ['trees', 'flowers']:
> return None
>
> plant = get_plant_with_circles(uuid)
> if not plant:
> return None
>
> if obj_type == 'trees':
> if plant['in_all_tree_types']:
> return True
> circle_objects = plant['tree_circle']['items']
> else:
> if plant['in_all_flower_types']:
> return True
> circle_objects = plant['flower_circle']['items']
>
> if isinstance(circle_objects, list):
> if item_is_array:
> for item in item:
> if item not in circle_objects:
> return -1
> return True
> else:
> if item in circle_objects:
> return True
> else:
> return -1
>
> return -1
>
>
> I try to move the first 3 if statements on the beginning of the block into
> new methods but that maneuver ends up with raising complexity.
>
> Can anybody help me to learn how to reduce cognitive complexity in code
> blocks like this?
>
> Kind regards,
> Sencer HAMARAT
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACp8TZhBa9EbekcT1ApmzdDRVk2vCb64%3DvvXHrSawO2RJSySpQ%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/CAHAc2jewMaP41PJZN8OVFqZ2hw41A9r8c8DDjRJc0VG%3DqP9X5g%40mail.gmail.com.


Re: Need help on reducing cognitive complexity

2022-07-21 Thread Mike Dewhirst

On 21/07/2022 3:52 pm, Sencer Hamarat wrote:

Hi everyone,

I have a code block with high cognitive complexity below:

    @staticmethod
    def in_circle_check(obj_type, item, uuid, item_is_array=False):


Partly because the args seem weird.

Try writing a docstring which says what the method needs to do. Then 
rewrite the code as nested if statements, bearing in mind that if 
nothing fits, it will fall through to the end and return either None or 
whatever you want to return, perhaps -1.




        if obj_type not in ['trees', 'flowers']:
            return None

        plant = get_plant_with_circles(uuid)
        if not plant:
            return None

        if obj_type == 'trees':
            if plant['in_all_tree_types']:
                return True
            circle_objects = plant['tree_circle']['items']
        else:
            if plant['in_all_flower_types']:
                return True
            circle_objects = plant['flower_circle']['items']

        if isinstance(circle_objects, list):
            if item_is_array:
                for item in item:
                    if item not in circle_objects:
                        return -1
                return True
            else:
                if item in circle_objects:
                    return True
        else:
            return -1

        return -1


I try to move the first 3 if statements on the beginning of the block 
into new methods but that maneuver ends up with raising complexity.


Can anybody help me to learn how to reduce cognitive complexity in 
code blocks like this?


Kind regards,
Sencer HAMARAT

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



--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fbbd1ba9-47ac-64de-88cc-5a784e151db3%40dewhirst.com.au.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need help on reducing cognitive complexity

2022-07-21 Thread Agnese Camellini
The only things that comes into my mind is taking away that first if which
is redundant with the third block.
An other way might be to include all the if in a big switch...
My 2 cents
Agnese

On Thu, 21 Jul 2022 at 07:53, Sencer Hamarat 
wrote:

> Hi everyone,
>
> I have a code block with high cognitive complexity below:
>
> @staticmethod
> def in_circle_check(obj_type, item, uuid, item_is_array=False):
>
> if obj_type not in ['trees', 'flowers']:
> return None
>
> plant = get_plant_with_circles(uuid)
> if not plant:
> return None
>
> if obj_type == 'trees':
> if plant['in_all_tree_types']:
> return True
> circle_objects = plant['tree_circle']['items']
> else:
> if plant['in_all_flower_types']:
> return True
> circle_objects = plant['flower_circle']['items']
>
> if isinstance(circle_objects, list):
> if item_is_array:
> for item in item:
> if item not in circle_objects:
> return -1
> return True
> else:
> if item in circle_objects:
> return True
> else:
> return -1
>
> return -1
>
>
> I try to move the first 3 if statements on the beginning of the block into
> new methods but that maneuver ends up with raising complexity.
>
> Can anybody help me to learn how to reduce cognitive complexity in code
> blocks like this?
>
> Kind regards,
> Sencer HAMARAT
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACp8TZhBa9EbekcT1ApmzdDRVk2vCb64%3DvvXHrSawO2RJSySpQ%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/CACXuh-RWFoxAk1zrtzgH0FAHD-XXMwRiDLGyiUr8ZRkhgnihfg%40mail.gmail.com.


Re: Need help

2022-07-04 Thread K Wong
I've implemented this sort of thing in the past. Without knowing your 
specific case, I guess that you have a parent model (ie. Pizza) and 1-n 
related child models (ie. Topping).

My advice is to redesign your flow to create a Pizza first then attach 1-n 
Topping entities to it. This would require two views and two forms.

If you want it all in one go, then write an API in REST Framework that does 
what I just said but via two calls from a single HTML page. You can write 
the HTML DOM manipulation in jQuery or ReactJS or whatever you are 
comfortable with. You will still end up with two calls: one to create your 
Pizza parent entity then subsequent calls to make Topping instances.

-k

On Wednesday, June 22, 2022 at 7:56:39 AM UTC-7 loharroh...@gmail.com wrote:

> The below image consists of a form layout the main form has it's model 
> defined and the subform has it's own model defined but I am getting problem 
> that how should I implement and also the subform is dynamic so how can I 
> implement it using htmx. Your help is appreciated. Thank you

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


Re: Need help

2022-06-01 Thread Lalit Suthar
thanks for sharing @Antonis Christofides I was looking for a resource like
this for some time :D

On Thu, 2 Jun 2022 at 10:57, Antonis Christofides <
anto...@antonischristofides.com> wrote:

> Hello,
>
> If, as I understand, you don't know anything about deployment, a possible
> starting point is the book at https://djangodeployment.com (disclaimer: I
> am the author). It doesn't cover docker, and it also doesn't cover
> continuous development with gitlab. But you can start with the basics and
> then move forward.
>
> Regards,
>
> Antonis
>
>
> On 01/06/2022 19.16, Théodore KOSSI wrote:
>
> Hello everyone,
> I want your help to deploy my django app.
> I have a ubuntu server.
> My django project is pushing to gitlab.
> So I want to deploy my app django to my ubuntu server using Gitlab and
> docker
> Any help enjoy me
> Thanks.
>
> --
> theodoros17@python-developer
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKiMjQEYVje02k1dSeYACdocH%2B2vD5BgCQZ%2BEAYhF28%3DSy0%2BjA%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/164d1c9b-4483-34cb-9cb5-0fb822694d9a%40antonischristofides.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/CAGp2JVF-nG%3D0Z6Qz4pEMKZE8sVY8W-89O_0TCLcwQ%2BZ%2BjmvGmQ%40mail.gmail.com.


Re: Need help

2022-06-01 Thread Antonis Christofides

Hello,

If, as I understand, you don't know anything about deployment, a possible 
starting point is the book at https://djangodeployment.com (disclaimer: I am the 
author). It doesn't cover docker, and it also doesn't cover continuous 
development with gitlab. But you can start with the basics and then move forward.


Regards,

Antonis



On 01/06/2022 19.16, Théodore KOSSI wrote:


Hello everyone,
I want your help to deploy my django app.
I have a ubuntu server.
My django project is pushing to gitlab.
So I want to deploy my app django to my ubuntu server using Gitlab and docker
Any help enjoy me
Thanks.

--
theodoros17@python-developer
--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKiMjQEYVje02k1dSeYACdocH%2B2vD5BgCQZ%2BEAYhF28%3DSy0%2BjA%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/164d1c9b-4483-34cb-9cb5-0fb822694d9a%40antonischristofides.com.


Re: need help

2022-03-02 Thread shubham goyal

Can help you make one. 
On Tuesday, 1 March 2022 at 22:13:06 UTC+5:30 ngounou...@gmail.com wrote:

> Please i need a management medical record app of patients built in django 
> using REST API

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


Re: Need help in User log in, someone please help

2022-02-23 Thread Raj
Hi, 
Thanks for the response, I have tried to print the username before creating 
the user, but it did not work. I have also tried to use pdb that also 
didn't work.

How to do it can give proper instructions??
I have searched about it on google but have not received any relevant 
answer.

On Wednesday, 23 February 2022 at 12:26:42 UTC+5:30 jitendra...@gmail.com 
wrote:

> 7008080545 DM .
>
> On Wed, 23 Feb 2022, 12:22 pm Antonis Christofides, <
> ant...@antonischristofides.com> wrote:
>
>> You have this statement:
>> user = User.objects.create_user(username=username, email=email, 
>> password = password)
>>
>> Just before this statement, you need to insert a statement that will 
>> enable you to examine the value of the "username" statement. Something like 
>> this:
>>
>> print(username)
>> user = User.objects.create_user(username=username, email=email, 
>> password = password)
>>
>> This might or not might work properly with Django. What most Python 
>> programmers would do instead is this:
>>
>> import pdb; pdb.set_trace()
>> user = User.objects.create_user(username=username, email=email, 
>> password = password)
>>
>> but for that you need to know how to use pdb. It's quite simple though 
>> tricky at first. Eventually you will need to learn it, however, so now 
>> would be a good time. Search the web.
>>
>> Regards,
>>
>> Antonis
>>
>> Antonis Christofides+30-6979924665 <+30%20697%20992%204665> (mobile)
>>
>>
>>
>> On 22/02/2022 19.01, Raj wrote:
>>
>> I am trying to create register form access in django, but i am getting 
>> this
>> * " ValueError at /registerThe given username must be set" error. * 
>> Kindly help me how can I fix this bug.
>> please.
>> *here is the code of the views.py file.--->*
>> from msilib.schema import Feature
>> from pyexpat.errors import messages
>> from django.shortcuts import render, redirect
>> from django.contrib.auth.models import User, auth
>> from django.contrib import messages
>> from django.http import HttpResponse
>> from .models import Feature
>> # Create your views here.
>> def index(request):
>> return render(request,'index.html',{'features': features})
>> #=---register function---
>> def register(request):
>> if request.method == 'POST':
>> username = request.POST.get('username')
>> email = request.POST.get('email')
>> password = request.POST.get('password')
>> password2 = request.POST.get('password2')
>> # username = request.POST['username']
>> # email = request.POST['email']
>> # password = request.POST['password']
>> # password2 = request.POST['password2']
>> if password == password2:
>> if User.objects.filter(email = email).exists():
>> messages.info(request, 'Email already has been used!')
>> return redirect('register')
>> elif User.objects.filter(username= username).exists():
>> messages.info(request, 'Username already exist')
>> return redirect('register') 
>> else:
>> user = User.objects.create_user(username=username, 
>> email=email, password = password)
>> user.save();
>> print("User created")
>> return redirect('login')  #check
>> else:
>> messages.info(request, 'Incorrect password')
>> return redirect('register')
>> else:
>> return render(request, 'register.html')
>> def login(request):
>> if request.method == 'POST':
>> # username = request.POST['username']
>> # password = request.POST['password']
>> username = request.POST.get('username')
>> password = request.POST.get('password')
>> user = auth.authenticate(username = username, password = password)
>> if user is not None:
>> auth.login(request, user)
>> return redirect('/')
>> else:
>> messages.info(request,'Credential Invalid')
>> return redirect('login')
>> else:
>> return render(request, 'login.html')
>> *here is the SS of the error*[image: Screenshot (75).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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/c7bcf4b5-f8e7-4f84-97df-02e4655e42f1n%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 

Re: Need help in User log in, someone please help

2022-02-23 Thread waqar khan
share screen shot

On Wed, Feb 23, 2022 at 12:24 PM Antonis Christofides <
anto...@antonischristofides.com> wrote:

> You have this statement:
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> Just before this statement, you need to insert a statement that will
> enable you to examine the value of the "username" statement. Something like
> this:
>
> print(username)
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> This might or not might work properly with Django. What most Python
> programmers would do instead is this:
>
> import pdb; pdb.set_trace()
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> but for that you need to know how to use pdb. It's quite simple though
> tricky at first. Eventually you will need to learn it, however, so now
> would be a good time. Search the web.
>
> Regards,
>
> Antonis
>
> Antonis Christofides
> +30-6979924665 (mobile)
>
>
>
> On 22/02/2022 19.01, Raj wrote:
>
> I am trying to create register form access in django, but i am getting this
> * " ValueError at /registerThe given username must be set" error. *
> Kindly help me how can I fix this bug.
> please.
> *here is the code of the views.py file.--->*
> from msilib.schema import Feature
> from pyexpat.errors import messages
> from django.shortcuts import render, redirect
> from django.contrib.auth.models import User, auth
> from django.contrib import messages
> from django.http import HttpResponse
> from .models import Feature
> # Create your views here.
> def index(request):
> return render(request,'index.html',{'features': features})
> #=---register function---
> def register(request):
> if request.method == 'POST':
> username = request.POST.get('username')
> email = request.POST.get('email')
> password = request.POST.get('password')
> password2 = request.POST.get('password2')
> # username = request.POST['username']
> # email = request.POST['email']
> # password = request.POST['password']
> # password2 = request.POST['password2']
> if password == password2:
> if User.objects.filter(email = email).exists():
> messages.info(request, 'Email already has been used!')
> return redirect('register')
> elif User.objects.filter(username= username).exists():
> messages.info(request, 'Username already exist')
> return redirect('register')
> else:
> user = User.objects.create_user(username=username,
> email=email, password = password)
> user.save();
> print("User created")
> return redirect('login')  #check
> else:
> messages.info(request, 'Incorrect password')
> return redirect('register')
> else:
> return render(request, 'register.html')
> def login(request):
> if request.method == 'POST':
> # username = request.POST['username']
> # password = request.POST['password']
> username = request.POST.get('username')
> password = request.POST.get('password')
> user = auth.authenticate(username = username, password = password)
> if user is not None:
> auth.login(request, user)
> return redirect('/')
> else:
> messages.info(request,'Credential Invalid')
> return redirect('login')
> else:
> return render(request, 'login.html')
> *here is the SS of the error*[image: Screenshot (75).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/c7bcf4b5-f8e7-4f84-97df-02e4655e42f1n%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/cdfef3b3-37b4-801d-c53c-85d8176e3025%40antonischristofides.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 

Re: Need help in User log in, someone please help

2022-02-22 Thread vijay chourey
Hi Raj,

Error is showing due to the blank value in user name, please try to print
username before registration if it's blank please check form fields.

Once done you can directly login your account with

"auth.login(request,user)


On Wed, 23 Feb, 2022, 12:22 pm Antonis Christofides, <
anto...@antonischristofides.com> wrote:

> You have this statement:
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> Just before this statement, you need to insert a statement that will
> enable you to examine the value of the "username" statement. Something like
> this:
>
> print(username)
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> This might or not might work properly with Django. What most Python
> programmers would do instead is this:
>
> import pdb; pdb.set_trace()
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> but for that you need to know how to use pdb. It's quite simple though
> tricky at first. Eventually you will need to learn it, however, so now
> would be a good time. Search the web.
>
> Regards,
>
> Antonis
>
> Antonis Christofides
> +30-6979924665 (mobile)
>
>
>
> On 22/02/2022 19.01, Raj wrote:
>
> I am trying to create register form access in django, but i am getting this
> * " ValueError at /registerThe given username must be set" error. *
> Kindly help me how can I fix this bug.
> please.
> *here is the code of the views.py file.--->*
> from msilib.schema import Feature
> from pyexpat.errors import messages
> from django.shortcuts import render, redirect
> from django.contrib.auth.models import User, auth
> from django.contrib import messages
> from django.http import HttpResponse
> from .models import Feature
> # Create your views here.
> def index(request):
> return render(request,'index.html',{'features': features})
> #=---register function---
> def register(request):
> if request.method == 'POST':
> username = request.POST.get('username')
> email = request.POST.get('email')
> password = request.POST.get('password')
> password2 = request.POST.get('password2')
> # username = request.POST['username']
> # email = request.POST['email']
> # password = request.POST['password']
> # password2 = request.POST['password2']
> if password == password2:
> if User.objects.filter(email = email).exists():
> messages.info(request, 'Email already has been used!')
> return redirect('register')
> elif User.objects.filter(username= username).exists():
> messages.info(request, 'Username already exist')
> return redirect('register')
> else:
> user = User.objects.create_user(username=username,
> email=email, password = password)
> user.save();
> print("User created")
> return redirect('login')  #check
> else:
> messages.info(request, 'Incorrect password')
> return redirect('register')
> else:
> return render(request, 'register.html')
> def login(request):
> if request.method == 'POST':
> # username = request.POST['username']
> # password = request.POST['password']
> username = request.POST.get('username')
> password = request.POST.get('password')
> user = auth.authenticate(username = username, password = password)
> if user is not None:
> auth.login(request, user)
> return redirect('/')
> else:
> messages.info(request,'Credential Invalid')
> return redirect('login')
> else:
> return render(request, 'login.html')
> *here is the SS of the error*[image: Screenshot (75).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/c7bcf4b5-f8e7-4f84-97df-02e4655e42f1n%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/cdfef3b3-37b4-801d-c53c-85d8176e3025%40antonischristofides.com
> 
> .
>

-- 
You received this message because 

Re: Need help in User log in, someone please help

2022-02-22 Thread Jitendra kumar Patra
7008080545 DM .

On Wed, 23 Feb 2022, 12:22 pm Antonis Christofides, <
anto...@antonischristofides.com> wrote:

> You have this statement:
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> Just before this statement, you need to insert a statement that will
> enable you to examine the value of the "username" statement. Something like
> this:
>
> print(username)
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> This might or not might work properly with Django. What most Python
> programmers would do instead is this:
>
> import pdb; pdb.set_trace()
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> but for that you need to know how to use pdb. It's quite simple though
> tricky at first. Eventually you will need to learn it, however, so now
> would be a good time. Search the web.
>
> Regards,
>
> Antonis
>
> Antonis Christofides
> +30-6979924665 (mobile)
>
>
>
> On 22/02/2022 19.01, Raj wrote:
>
> I am trying to create register form access in django, but i am getting this
> * " ValueError at /registerThe given username must be set" error. *
> Kindly help me how can I fix this bug.
> please.
> *here is the code of the views.py file.--->*
> from msilib.schema import Feature
> from pyexpat.errors import messages
> from django.shortcuts import render, redirect
> from django.contrib.auth.models import User, auth
> from django.contrib import messages
> from django.http import HttpResponse
> from .models import Feature
> # Create your views here.
> def index(request):
> return render(request,'index.html',{'features': features})
> #=---register function---
> def register(request):
> if request.method == 'POST':
> username = request.POST.get('username')
> email = request.POST.get('email')
> password = request.POST.get('password')
> password2 = request.POST.get('password2')
> # username = request.POST['username']
> # email = request.POST['email']
> # password = request.POST['password']
> # password2 = request.POST['password2']
> if password == password2:
> if User.objects.filter(email = email).exists():
> messages.info(request, 'Email already has been used!')
> return redirect('register')
> elif User.objects.filter(username= username).exists():
> messages.info(request, 'Username already exist')
> return redirect('register')
> else:
> user = User.objects.create_user(username=username,
> email=email, password = password)
> user.save();
> print("User created")
> return redirect('login')  #check
> else:
> messages.info(request, 'Incorrect password')
> return redirect('register')
> else:
> return render(request, 'register.html')
> def login(request):
> if request.method == 'POST':
> # username = request.POST['username']
> # password = request.POST['password']
> username = request.POST.get('username')
> password = request.POST.get('password')
> user = auth.authenticate(username = username, password = password)
> if user is not None:
> auth.login(request, user)
> return redirect('/')
> else:
> messages.info(request,'Credential Invalid')
> return redirect('login')
> else:
> return render(request, 'login.html')
> *here is the SS of the error*[image: Screenshot (75).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/c7bcf4b5-f8e7-4f84-97df-02e4655e42f1n%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/cdfef3b3-37b4-801d-c53c-85d8176e3025%40antonischristofides.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 

Re: Need help in User log in, someone please help

2022-02-22 Thread Antonis Christofides

You have this statement:

    user = User.objects.create_user(username=username, email=email, password = 
password)


Just before this statement, you need to insert a statement that will enable you 
to examine the value of the "username" statement. Something like this:


    print(username)
    user = User.objects.create_user(username=username, email=email, password = 
password)


This might or not might work properly with Django. What most Python programmers 
would do instead is this:


    import pdb; pdb.set_trace()
    user = User.objects.create_user(username=username, email=email, password = 
password)


but for that you need to know how to use pdb. It's quite simple though tricky at 
first. Eventually you will need to learn it, however, so now would be a good 
time. Search the web.


Regards,

Antonis

Antonis Christofides
+30-6979924665 (mobile)



On 22/02/2022 19.01, Raj wrote:
I am trying to create register form access in django, but i am getting this*" 
ValueError at /registerThe given username must be set" error.

*
Kindly help me how can I fix this bug.
please.
*here is the code of the views.py file.--->*
from msilib.schema import Feature
from pyexpat.errors import messages
from django.shortcuts import render, redirect
from django.contrib.auth.models import User, auth
from django.contrib import messages
from django.http import HttpResponse
from .models import Feature
# Create your views here.
def index(request):
    return render(request,'index.html',{'features': features})
#=---register function---
def register(request):
    if request.method == 'POST':
        username = request.POST.get('username')
        email = request.POST.get('email')
        password = request.POST.get('password')
        password2 = request.POST.get('password2')
        # username = request.POST['username']
        # email = request.POST['email']
        # password = request.POST['password']
        # password2 = request.POST['password2']
        if password == password2:
            if User.objects.filter(email = email).exists():
                messages.info(request, 'Email already has been used!')
                return redirect('register')
            elif User.objects.filter(username= username).exists():
                messages.info(request, 'Username already exist')
                return redirect('register')
            else:
                user = User.objects.create_user(username=username, 
email=email, password = password)

                user.save();
                print("User created")
                return redirect('login')  #check
        else:
            messages.info(request, 'Incorrect password')
            return redirect('register')
    else:
        return render(request, 'register.html')
def login(request):
    if request.method == 'POST':
        # username = request.POST['username']
        # password = request.POST['password']
        username = request.POST.get('username')
        password = request.POST.get('password')
        user = auth.authenticate(username = username, password = password)
        if user is not None:
            auth.login(request, user)
            return redirect('/')
        else:
            messages.info(request,'Credential Invalid')
            return redirect('login')
    else:
        return render(request, 'login.html')
*here is the SS of the error*Screenshot (75).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/c7bcf4b5-f8e7-4f84-97df-02e4655e42f1n%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/cdfef3b3-37b4-801d-c53c-85d8176e3025%40antonischristofides.com.


Re: Re : Need help in django database related

2021-10-14 Thread Richard Dushime
i Think using Django  u will create models then register  them in admin,
 for saving data /registration  u will create a form that will be posting
data  in database  may be u can add in an email scripts if u want to always
be aware of who has registered for an event

On Wed, Oct 13, 2021 at 8:37 PM Avi shah  wrote:

> I want to build an platform where admin can add events and I want end
> users to register for that event , so how do I save the
> data/registration of the user for that particular event , how can i create
> dynamic tables like 1 table for 1 event or is there some other logic behind
> it?
>
> Thanks 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/CALa7AFPNK_KTJvDERYXmi_RG9_xq58EjiBAH7PsOcL0gCFHDYg%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/CAJCm56JivJajSaa-KihmRA1VYajHmVN5vbTZKp6e%3D_bUx%2BONtQ%40mail.gmail.com.


Re: Re : Need help in django database related

2021-10-14 Thread MR INDIA
Maybe you need to learn db relationships in django models and forms, 
Learn about db :

https://www.webforefront.com/django/setuprelationshipsdjangomodels.html 

And inspect source code of this project:

https://github.com/sajib1066/django-event-management


Hope this helps, 

A fellow django developer
On Wednesday, 13 October 2021 at 23:08:46 UTC+5:30 get...@gmail.com wrote:

> I want to build an platform where admin can add events and I want end 
> users to register for that event , so how do I save the 
> data/registration of the user for that particular event , how can i create 
> dynamic tables like 1 table for 1 event or is there some other logic behind 
> it?
>
> Thanks 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/6622e73e-29bf-4e6c-b418-2518db8b357an%40googlegroups.com.


Re : Need help in django database related

2021-10-13 Thread Avi shah
I want to build an platform where admin can add events and I want end users
to register for that event , so how do I save the data/registration of the
user for that particular event , how can i create dynamic tables like 1
table for 1 event or is there some other logic behind it?

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


Re: need help integrating SSL with react/django web app

2021-09-21 Thread hey there
hi

I don't want to deep analysis of how can Cloudflare bring more preferred
than normal cartbot but most likely it is the way it is built. it proxied
connections offer tls /mtls edge certificate etc. which is known to us all
but it is also there that it maintains its own CA and CA record underneath
to maintain transparency. hope I am clear now. so why not?

let me know if you have any good solution with Cloudflare that helps.

On Tue, Sep 21, 2021 at 4:23 AM David Nugent  wrote:

> On Tue, Sep 21, 2021 at 2:11 AM hey there  wrote:
>
> 1. oracle autonomous linux's epl dont have certbot
>>
>
> pip install certbot
>
> You already have pip installed if you're running Django. This takes all of
> 10-15 seconds...
>
> and
>> 2.  I mostly like Cloudflare than certbot because Cloudflare has some own
>> methods to maintain ssl certificate
>>
>
> In your crontab:
>
> 30 03 01 * * /path/to/certbot renew
>
> Change time and/or date as appropriate - zero cost, fully automated SSL
> certificate updates. Certbot is pretty cool when it comes to detecting
> certs that require updating.
>
> Not too difficult, right?
>
> Regards, David
>
> --
> 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/4WtsxZ6FUJo/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/CAE5VhgUUtrW%2BdduS8aDURT-7odWcGk768QPtPfnLhQ9N%3D704WQ%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%2BiAj8hF7J%3DAJuT0x7t0SL5uZ-r8A2_-7mJYQ0v5TmGU44WLkQ%40mail.gmail.com.


Re: need help integrating SSL with react/django web app

2021-09-20 Thread David Nugent
On Tue, Sep 21, 2021 at 2:11 AM hey there  wrote:

1. oracle autonomous linux's epl dont have certbot
>

pip install certbot

You already have pip installed if you're running Django. This takes all of
10-15 seconds...

and
> 2.  I mostly like Cloudflare than certbot because Cloudflare has some own
> methods to maintain ssl certificate
>

In your crontab:

30 03 01 * * /path/to/certbot renew

Change time and/or date as appropriate - zero cost, fully automated SSL
certificate updates. Certbot is pretty cool when it comes to detecting
certs that require updating.

Not too difficult, right?

Regards, David

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


Re: need help integrating SSL with react/django web app

2021-09-20 Thread hey there
1. oracle autonomous linux's epl dont have certbot
and
2.  I mostly like Cloudflare than certbot because Cloudflare has some own
methods to maintain ssl certificate

On Mon, Sep 20, 2021 at 2:37 PM FIRDOUS BHAT  wrote:

> Why don't you explore certbot?
>
> On Sun, Sep 19, 2021, 8:14 PM MR INDIA  wrote:
>
>> Select os and server and it will show the docs, you have to first
>> shutdown the server then after following the docs restart the server.
>>
>>
>> On Saturday, 18 September 2021 at 19:33:31 UTC+5:30 hey there wrote:
>>
>>> hey
>>>
>>> I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi.
>>> foe Django you need mod_wsgi with all which is tricky.
>>>
>>> On Sat, Sep 18, 2021 at 7:18 PM MR INDIA  wrote:
>>>
 See this
 https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt
 if you have shell access
 On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:

>
> python 3.2.6
> django 3.2.7
> cx_oracle 8
>
>
>
> On Sat, 18 Sep 2021, 2:25 am hey there,  wrote:
>
>> hi
>>
>> i am also stuck
>>
>> On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com
>> wrote:
>>
>>> Hello Ammar,
>>>
>>> we're stuck, have been for days
>>>
>>> We have nginx set in ec2 instance but cannot get the ssl to slip in.
>>>
>>> I copied in Divy who is also working to get this solved
>>>
>>> any help would be appreciated
>>>
>>>
>>> can you help me with this or provide any documentation
>>>
>>> On Sat, 8 May 2021 at 10:16, Ammar Mohammed 
>>> wrote:
>>>
 I am using Nginx as a proxy for my Django app and this method is
 working just fine.

 On Sat, May 8, 2021, 11:14 Ammar Mohammed 
 wrote:

> I think you're supposed to install the certificate in your web
> server (Nginx, Apache).
> Follow the manual to install it to your server and everything will
> be fine.
>
> On Sat, May 8, 2021, 10:35 John McClain 
> wrote:
>
>> Hello,
>>
>> I am having difficulties connecting SSL to my React/Python webapp
>>
>> I am trying to integrate the PWA and am having difficulties
>> getting the SSL to adopt to the app.
>>
>> Does anyone have experience with this?
>>
>> Cheers
>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmccla...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
 
 .

>>>
>>>
>>> --
>>> John McClain
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmccla...@gmail.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/4WtsxZ6FUJo/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> django-users...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%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/4WtsxZ6FUJo/unsubscribe.
 To 

Re: need help integrating SSL with react/django web app

2021-09-20 Thread FIRDOUS BHAT
Why don't you explore certbot?

On Sun, Sep 19, 2021, 8:14 PM MR INDIA  wrote:

> Select os and server and it will show the docs, you have to first shutdown
> the server then after following the docs restart the server.
>
>
> On Saturday, 18 September 2021 at 19:33:31 UTC+5:30 hey there wrote:
>
>> hey
>>
>> I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi.
>> foe Django you need mod_wsgi with all which is tricky.
>>
>> On Sat, Sep 18, 2021 at 7:18 PM MR INDIA  wrote:
>>
>>> See this
>>> https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt
>>> if you have shell access
>>> On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:
>>>

 python 3.2.6
 django 3.2.7
 cx_oracle 8



 On Sat, 18 Sep 2021, 2:25 am hey there,  wrote:

> hi
>
> i am also stuck
>
> On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com
> wrote:
>
>> Hello Ammar,
>>
>> we're stuck, have been for days
>>
>> We have nginx set in ec2 instance but cannot get the ssl to slip in.
>>
>> I copied in Divy who is also working to get this solved
>>
>> any help would be appreciated
>>
>>
>> can you help me with this or provide any documentation
>>
>> On Sat, 8 May 2021 at 10:16, Ammar Mohammed 
>> wrote:
>>
>>> I am using Nginx as a proxy for my Django app and this method is
>>> working just fine.
>>>
>>> On Sat, May 8, 2021, 11:14 Ammar Mohammed 
>>> wrote:
>>>
 I think you're supposed to install the certificate in your web
 server (Nginx, Apache).
 Follow the manual to install it to your server and everything will
 be fine.

 On Sat, May 8, 2021, 10:35 John McClain 
 wrote:

> Hello,
>
> I am having difficulties connecting SSL to my React/Python webapp
>
> I am trying to integrate the PWA and am having difficulties
> getting the SSL to adopt to the app.
>
> Does anyone have experience with this?
>
> Cheers
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmccla...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmccla...@gmail.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/4WtsxZ6FUJo/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> django-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%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/4WtsxZ6FUJo/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/fc47fc8f-2894-4869-b275-4ebe7211c2bbn%40googlegroups.com
>>> 

Re: need help integrating SSL with react/django web app

2021-09-19 Thread MR INDIA
Select os and server and it will show the docs, you have to first shutdown 
the server then after following the docs restart the server.


On Saturday, 18 September 2021 at 19:33:31 UTC+5:30 hey there wrote:

> hey
>
> I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi. 
> foe Django you need mod_wsgi with all which is tricky. 
>
> On Sat, Sep 18, 2021 at 7:18 PM MR INDIA  wrote:
>
>> See this 
>> https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt 
>> if you have shell access
>> On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:
>>
>>>
>>> python 3.2.6
>>> django 3.2.7
>>> cx_oracle 8
>>>
>>>
>>>
>>> On Sat, 18 Sep 2021, 2:25 am hey there,  wrote:
>>>
 hi 

 i am also stuck 

 On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com 
 wrote:

> Hello Ammar,
>
> we're stuck, have been for days
>
> We have nginx set in ec2 instance but cannot get the ssl to slip in.
>
> I copied in Divy who is also working to get this solved
>
> any help would be appreciated
>
>
> can you help me with this or provide any documentation
>
> On Sat, 8 May 2021 at 10:16, Ammar Mohammed  
> wrote:
>
>> I am using Nginx as a proxy for my Django app and this method is 
>> working just fine.
>>
>> On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:
>>
>>> I think you're supposed to install the certificate in your web 
>>> server (Nginx, Apache).
>>> Follow the manual to install it to your server and everything will 
>>> be fine.
>>>
>>> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>>>
 Hello,

 I am having difficulties connecting SSL to my React/Python webapp

 I am trying to integrate the PWA and am having difficulties getting 
 the SSL to adopt to the app.

 Does anyone have experience with this?

 Cheers

 -- 
 John McClain

 Cell: 085-1977-823
 Skype: jmcclain0129
 Email: jmccla...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmccla...@gmail.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/4WtsxZ6FUJo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 django-users...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%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/4WtsxZ6FUJo/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/fc47fc8f-2894-4869-b275-4ebe7211c2bbn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from 

Re: need help integrating SSL with react/django web app

2021-09-18 Thread hey there
hey

I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi.
foe Django you need mod_wsgi with all which is tricky.

On Sat, Sep 18, 2021 at 7:18 PM MR INDIA  wrote:

> See this
> https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt if
> you have shell access
> On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:
>
>>
>> python 3.2.6
>> django 3.2.7
>> cx_oracle 8
>>
>>
>>
>> On Sat, 18 Sep 2021, 2:25 am hey there,  wrote:
>>
>>> hi
>>>
>>> i am also stuck
>>>
>>> On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com
>>> wrote:
>>>
 Hello Ammar,

 we're stuck, have been for days

 We have nginx set in ec2 instance but cannot get the ssl to slip in.

 I copied in Divy who is also working to get this solved

 any help would be appreciated


 can you help me with this or provide any documentation

 On Sat, 8 May 2021 at 10:16, Ammar Mohammed  wrote:

> I am using Nginx as a proxy for my Django app and this method is
> working just fine.
>
> On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:
>
>> I think you're supposed to install the certificate in your web server
>> (Nginx, Apache).
>> Follow the manual to install it to your server and everything will be
>> fine.
>>
>> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>>
>>> Hello,
>>>
>>> I am having difficulties connecting SSL to my React/Python webapp
>>>
>>> I am trying to integrate the PWA and am having difficulties getting
>>> the SSL to adopt to the app.
>>>
>>> Does anyone have experience with this?
>>>
>>> Cheers
>>>
>>> --
>>> John McClain
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmccla...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
> 
> .
>


 --
 John McClain

 Cell: 085-1977-823
 Skype: jmcclain0129
 Email: jmccla...@gmail.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/4WtsxZ6FUJo/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%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/4WtsxZ6FUJo/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/fc47fc8f-2894-4869-b275-4ebe7211c2bbn%40googlegroups.com
> 
> .
>

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


Re: need help integrating SSL with react/django web app

2021-09-18 Thread MR INDIA
See this 
https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt if 
you have shell access
On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:

>
> python 3.2.6
> django 3.2.7
> cx_oracle 8
>
>
>
> On Sat, 18 Sep 2021, 2:25 am hey there,  wrote:
>
>> hi 
>>
>> i am also stuck 
>>
>> On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com 
>> wrote:
>>
>>> Hello Ammar,
>>>
>>> we're stuck, have been for days
>>>
>>> We have nginx set in ec2 instance but cannot get the ssl to slip in.
>>>
>>> I copied in Divy who is also working to get this solved
>>>
>>> any help would be appreciated
>>>
>>>
>>> can you help me with this or provide any documentation
>>>
>>> On Sat, 8 May 2021 at 10:16, Ammar Mohammed  wrote:
>>>
 I am using Nginx as a proxy for my Django app and this method is 
 working just fine.

 On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:

> I think you're supposed to install the certificate in your web server 
> (Nginx, Apache).
> Follow the manual to install it to your server and everything will be 
> fine.
>
> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>
>> Hello,
>>
>> I am having difficulties connecting SSL to my React/Python webapp
>>
>> I am trying to integrate the PWA and am having difficulties getting 
>> the SSL to adopt to the app.
>>
>> Does anyone have experience with this?
>>
>> Cheers
>>
>> -- 
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmccla...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
  
 
 .

>>>
>>>
>>> -- 
>>> John McClain
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmccla...@gmail.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/4WtsxZ6FUJo/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%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/fc47fc8f-2894-4869-b275-4ebe7211c2bbn%40googlegroups.com.


Re: need help integrating SSL with react/django web app

2021-09-17 Thread hey there
python 3.2.6
django 3.2.7
cx_oracle 8



On Sat, 18 Sep 2021, 2:25 am hey there,  wrote:

> hi
>
> i am also stuck
>
> On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com wrote:
>
>> Hello Ammar,
>>
>> we're stuck, have been for days
>>
>> We have nginx set in ec2 instance but cannot get the ssl to slip in.
>>
>> I copied in Divy who is also working to get this solved
>>
>> any help would be appreciated
>>
>>
>> can you help me with this or provide any documentation
>>
>> On Sat, 8 May 2021 at 10:16, Ammar Mohammed  wrote:
>>
>>> I am using Nginx as a proxy for my Django app and this method is working
>>> just fine.
>>>
>>> On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:
>>>
 I think you're supposed to install the certificate in your web server
 (Nginx, Apache).
 Follow the manual to install it to your server and everything will be
 fine.

 On Sat, May 8, 2021, 10:35 John McClain  wrote:

> Hello,
>
> I am having difficulties connecting SSL to my React/Python webapp
>
> I am trying to integrate the PWA and am having difficulties getting
> the SSL to adopt to the app.
>
> Does anyone have experience with this?
>
> Cheers
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmccla...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmccla...@gmail.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/4WtsxZ6FUJo/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/1c48904e-41b0-4959-8daf-6926f7b95652n%40googlegroups.com
> 
> .
>

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


Re: need help integrating SSL with react/django web app

2021-09-17 Thread hey there
hi 

i am also stuck 

On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com wrote:

> Hello Ammar,
>
> we're stuck, have been for days
>
> We have nginx set in ec2 instance but cannot get the ssl to slip in.
>
> I copied in Divy who is also working to get this solved
>
> any help would be appreciated
>
>
> can you help me with this or provide any documentation
>
> On Sat, 8 May 2021 at 10:16, Ammar Mohammed  wrote:
>
>> I am using Nginx as a proxy for my Django app and this method is working 
>> just fine.
>>
>> On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:
>>
>>> I think you're supposed to install the certificate in your web server 
>>> (Nginx, Apache).
>>> Follow the manual to install it to your server and everything will be 
>>> fine.
>>>
>>> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>>>
 Hello,

 I am having difficulties connecting SSL to my React/Python webapp

 I am trying to integrate the PWA and am having difficulties getting the 
 SSL to adopt to the app.

 Does anyone have experience with this?

 Cheers

 -- 
 John McClain

 Cell: 085-1977-823
 Skype: jmcclain0129
 Email: jmccla...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmccla...@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/1c48904e-41b0-4959-8daf-6926f7b95652n%40googlegroups.com.


Re: Need help in converting the key value pairs of JSON data into data types.

2021-08-11 Thread Kasper Laudrup
On 11/08/2021 21.20, Franck Tchouanga wrote:
> I can help you.
>

Help me with what?

Kind regards,

Kasper Laudrup

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/90dcdc26-d694-e3e0-1a1e-76178f953c40%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need help in converting the key value pairs of JSON data into data types.

2021-08-11 Thread Franck Tchouanga
I can help you.

On Wed, Aug 11, 2021, 6:00 PM Kasper Laudrup  wrote:

> On 11/08/2021 15.54, chinna wrote:
> > Hi All,
> >
> > I am actually working on a use case where I have to convert the JSON
> > data into a dictionary and from that  I will have to replace all the
> > keys and values to the data types.
>
> The data type is returned as a string with the builtin type() function.
>
> > For example:
> >
> > input_dict  = {'segment_idenifier': 'Segment 2',
> > 'exposed_pipe_outside_diam': 4, 'exposed_pipe_length': 2}
> >
> > output_dict = {string : string, string : integer, string : integer }
> >
> > in some cases the dictionary will have nested dictionaries or lists as
> > well. If it has, we will have to replace the key-values inside those
> > nested objects.
> >
>
> The JSON library included with the Python standard supports nested
> objects (converting them into Python dictionaries) just fine, so that
> shouldn't be an issue:
>
> https://docs.python.org/3/library/json.html
>
> > I am including the json file here.
> >
> > I was struck by this a while ago. Please help me to resolve this.
> >
>
> What have you done so far and where exactly are you facing issues?
>
> Also, how is this related to Django?
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a473aa95-8366-0834-1900-03946506b9bb%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/CANRJ%3D3kqR8DdkBANwNuRCCeT6j8jubsia-N-WjXHdbSj_-dSBA%40mail.gmail.com.


Re: Need help in converting the key value pairs of JSON data into data types.

2021-08-11 Thread Kasper Laudrup
On 11/08/2021 15.54, chinna wrote:
> Hi All,
> 
> I am actually working on a use case where I have to convert the JSON
> data into a dictionary and from that  I will have to replace all the
> keys and values to the data types. 

The data type is returned as a string with the builtin type() function.

> For example:
> 
> input_dict  = {'segment_idenifier': 'Segment 2',
> 'exposed_pipe_outside_diam': 4, 'exposed_pipe_length': 2}
> 
> output_dict = {string : string, string : integer, string : integer } 
> 
> in some cases the dictionary will have nested dictionaries or lists as
> well. If it has, we will have to replace the key-values inside those
> nested objects.
> 

The JSON library included with the Python standard supports nested
objects (converting them into Python dictionaries) just fine, so that
shouldn't be an issue:

https://docs.python.org/3/library/json.html

> I am including the json file here.
> 
> I was struck by this a while ago. Please help me to resolve this.
> 

What have you done so far and where exactly are you facing issues?

Also, how is this related to Django?

Kind regards,

Kasper Laudrup

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


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need help on RedirectView

2021-06-20 Thread Hello Singh
Thanks, David Sir
It help me a lot.

On Sun, 20 Jun 2021, 18:21 David Nugent,  wrote:

> It is just a method on the Article model. Don't copy-paste what is there,
> understand what it is doing.
>
> In this *example*, update_counter() will be defined in
> Article(models.Model), probably in models.py in the app. You obliged to use
> anything like this in your redirect.
>
> HTH,
>
> On Sun, Jun 20, 2021 at 10:21 PM Hello Singh 
> wrote:
>
>> Now I am trying Django class based view through Django documentation it
>> going well, but I a problem in RedirectView.
>>
>> There is `update_counter()` method I don't understand what it is doing
>> and where it come from. I highlight it in the given image.
>>
>> Please help me
>> Thanks developers
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAEoS0z44Zkf2TJNuay6AU1imCdu5ALmuHSzxJxLtgKS_R69wfQ%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/CAE5VhgX4s-oqRqg%2B9zw2UBE-tmLEz0jnJDUDSXcXqtO976rhYA%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/CAEoS0z6G5i2K8u-p%2BjFJf6WzPV2SGVpP_gjuFY9oiqb-2m4-DA%40mail.gmail.com.


Re: Need help on RedirectView

2021-06-20 Thread David Nugent
It is just a method on the Article model. Don't copy-paste what is there,
understand what it is doing.

In this *example*, update_counter() will be defined in
Article(models.Model), probably in models.py in the app. You obliged to use
anything like this in your redirect.

HTH,

On Sun, Jun 20, 2021 at 10:21 PM Hello Singh  wrote:

> Now I am trying Django class based view through Django documentation it
> going well, but I a problem in RedirectView.
>
> There is `update_counter()` method I don't understand what it is doing and
> where it come from. I highlight it in the given image.
>
> Please help me
> Thanks developers
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEoS0z44Zkf2TJNuay6AU1imCdu5ALmuHSzxJxLtgKS_R69wfQ%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/CAE5VhgX4s-oqRqg%2B9zw2UBE-tmLEz0jnJDUDSXcXqtO976rhYA%40mail.gmail.com.


Re: need help integrating SSL with react/django web app

2021-05-09 Thread John McClain
Hello Ammar,

we're stuck, have been for days

We have nginx set in ec2 instance but cannot get the ssl to slip in.

I copied in Divy who is also working to get this solved

any help would be appreciated


can you help me with this or provide any documentation

On Sat, 8 May 2021 at 10:16, Ammar Mohammed  wrote:

> I am using Nginx as a proxy for my Django app and this method is working
> just fine.
>
> On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:
>
>> I think you're supposed to install the certificate in your web server
>> (Nginx, Apache).
>> Follow the manual to install it to your server and everything will be
>> fine.
>>
>> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>>
>>> Hello,
>>>
>>> I am having difficulties connecting SSL to my React/Python webapp
>>>
>>> I am trying to integrate the PWA and am having difficulties getting the
>>> SSL to adopt to the app.
>>>
>>> Does anyone have experience with this?
>>>
>>> Cheers
>>>
>>> --
>>> John McClain
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmcclain0...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
> 
> .
>


-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@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/CAN-hv_q65qzyrnC6BTxsm8p%3DLtbjz8iVx11WsFA5higpFKJpfA%40mail.gmail.com.


Re: need help integrating SSL with react/django web app

2021-05-08 Thread John McClain
i recently configured nginx, it wasn't part of the stack initially. I will 
try and work through it. I broke down and actually bought a cert so 
hopefully, it will solve the problems

thanks for your feedback

On Saturday 8 May 2021 at 10:17:27 UTC+1 amarb...@gmail.com wrote:

> I am using Nginx as a proxy for my Django app and this method is working 
> just fine.
>
> On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:
>
>> I think you're supposed to install the certificate in your web server 
>> (Nginx, Apache).
>> Follow the manual to install it to your server and everything will be 
>> fine.
>>
>> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>>
>>> Hello,
>>>
>>> I am having difficulties connecting SSL to my React/Python webapp
>>>
>>> I am trying to integrate the PWA and am having difficulties getting the 
>>> SSL to adopt to the app.
>>>
>>> Does anyone have experience with this?
>>>
>>> Cheers
>>>
>>> -- 
>>> John McClain
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmccla...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/af701aab-5c6f-4f3d-94cf-93b8ab454984n%40googlegroups.com.


Re: need help integrating SSL with react/django web app

2021-05-08 Thread Ammar Mohammed
I am using Nginx as a proxy for my Django app and this method is working
just fine.

On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:

> I think you're supposed to install the certificate in your web server
> (Nginx, Apache).
> Follow the manual to install it to your server and everything will be fine.
>
> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>
>> Hello,
>>
>> I am having difficulties connecting SSL to my React/Python webapp
>>
>> I am trying to integrate the PWA and am having difficulties getting the
>> SSL to adopt to the app.
>>
>> Does anyone have experience with this?
>>
>> Cheers
>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmcclain0...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com.


Re: need help integrating SSL with react/django web app

2021-05-08 Thread Ammar Mohammed
I think you're supposed to install the certificate in your web server
(Nginx, Apache).
Follow the manual to install it to your server and everything will be fine.

On Sat, May 8, 2021, 10:35 John McClain  wrote:

> Hello,
>
> I am having difficulties connecting SSL to my React/Python webapp
>
> I am trying to integrate the PWA and am having difficulties getting the
> SSL to adopt to the app.
>
> Does anyone have experience with this?
>
> Cheers
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7uEcZpRjUrPawkchg1ACS-2OR2R7t2OW8FG9jPdF0B-hg%40mail.gmail.com.


Re: Need help in django ecommerce website to simply read a variable from different apps

2021-04-13 Thread Satyajit Barik
Show me your cart item code

On Tue, 13 Apr, 2021, 5:32 am Nijo Joseph,  wrote:

> Dear all,
>
>  Seems interesting, reading from different tables is not a big deal just
> use whatever models from any app and import into the views and run your
> query. I have my own full fledged app not very good in design but it really
> works and have used in some supermarkets and still continuing in some
> offices of course with some changes, it has working paytm integration also,
> even I tried PayPal integration. It is there on
> www.kttraders.pythonanywhere.com. Glad to help if you require some help.
>
> With regards
>
> Nijo Joseph
>
> On Sun, 4 Apr 2021, 4:12 am Kasper Laudrup,  wrote:
>
>> On 03/04/2021 01.15, ANSHIT RANSINGH wrote:
>> > I am unable to do so. Please help me with the issue.
>> >
>>
>> If you want someone to help you, learn how to ask a question. Something
>> like this might be a good start:
>>
>>
>> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
>>
>> How do you really expect people to be able to help you with the
>> information you've given so far?
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/f6d267f6-fec8-f4bc-5611-ffec005a8775%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/CAFFcXKL4mhQF1zEGUP80gZ%3Dh-QUmNuqwSc9MQSh0Y5BoLrEFzQ%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/CANd-%2BoBX6%2BAPpq6E%2BMTVP%2B9EdGaq3F%3DuS8_tB5DbypL02S4ZrQ%40mail.gmail.com.


Re: Need help in django ecommerce website to simply read a variable from different apps

2021-04-12 Thread Nijo Joseph
Dear all,

 Seems interesting, reading from different tables is not a big deal just
use whatever models from any app and import into the views and run your
query. I have my own full fledged app not very good in design but it really
works and have used in some supermarkets and still continuing in some
offices of course with some changes, it has working paytm integration also,
even I tried PayPal integration. It is there on
www.kttraders.pythonanywhere.com. Glad to help if you require some help.

With regards

Nijo Joseph

On Sun, 4 Apr 2021, 4:12 am Kasper Laudrup,  wrote:

> On 03/04/2021 01.15, ANSHIT RANSINGH wrote:
> > I am unable to do so. Please help me with the issue.
> >
>
> If you want someone to help you, learn how to ask a question. Something
> like this might be a good start:
>
>
> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
>
> How do you really expect people to be able to help you with the
> information you've given so far?
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f6d267f6-fec8-f4bc-5611-ffec005a8775%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/CAFFcXKL4mhQF1zEGUP80gZ%3Dh-QUmNuqwSc9MQSh0Y5BoLrEFzQ%40mail.gmail.com.


Re: Need help in django ecommerce website to simply read a variable from different apps

2021-04-03 Thread Kasper Laudrup
On 03/04/2021 01.15, ANSHIT RANSINGH wrote:
> I am unable to do so. Please help me with the issue. 
>

If you want someone to help you, learn how to ask a question. Something
like this might be a good start:

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

How do you really expect people to be able to help you with the
information you've given so far?

Kind regards,

Kasper Laudrup

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


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need help about display machine state?

2020-11-22 Thread Derek
I am not sure the Django mailing list is the best place to get advice on 
Flask?

I did have a quick look - my advice would be to create a Docker deployment 
(ideally with a pre-built image on DockerHub) to allow quick/fast testing.

On Sunday, 22 November 2020 at 02:43:38 UTC+2 graves@gmail.com wrote:

> I built a display machine state using Python3 with Flask. 
> It can monitoring indicators: CPU, Memory, Disk usage, LoadAVG, Boot time. 
> Would anyone can give some advices? Thanks~
> Flask State Github 
>

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


Re: Need Help From Senior Django-Angular Dev

2020-11-20 Thread Kasper Laudrup

Hi Nouman,

On 20/11/2020 20.03, Nouman Mehmood wrote:
I'm having trouble finding answers to the errors mainly when i am trying to integrate my 
login api (django-restframe work i.e. token authentication) to angular 
Login components. Main errors I've got is forbidden error 403. Can anyone help?


If you try write a more detailed question with the relevant code 
snippets, error output etc. then I'm sure someone will be wiling to do 
their best to help. Consider reading this first:


https://stackoverflow.com/help/how-to-ask

or can share their simple projects mainly on Django and 
angular.


I found this with a quick search on one of those popular internet search 
engines out there:


https://bezkoder.com/django-angular-crud-rest-framework/

Maybe that could be helpful?

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/a28fb854-c6af-969e-396e-d9fc15d3d615%40stacktrace.dk.


Re: Need help with inlineformset

2020-10-11 Thread Marco Paradisi
up

Il giorno domenica 11 ottobre 2020 alle 17:37:15 UTC+2 Marco Paradisi ha 
scritto:

> Hi everyone,
>
> I have the following instruction:
>
> forms.models.inlineformset_factory(Covata, Bird, fields=('rna_ucc', 
> 'sesso', 'nascita', 'anella', 'razza', 'mutazione', 'portatore',), 
> can_delete=True, extra=1)
>
> I want to initialize two fields of the model "Bird" to values taken from 
> the form of the model "Covata".
>
> anyone has any hint?
>
> Thanks 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/ebcd6c75-9529-4d3d-b479-ad854ee0792cn%40googlegroups.com.


Re: Need help to create web API for the listing of news.

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer?
 We can help you in this and related tasks at fair prices
Best Regards,
Divyesh Khamele,
Pythonmate

On Sun, 11 Oct 2020, 4:39 pm Kasper Laudrup,  wrote:

> Hi Viplay,
>
> On 10/10/2020 17.31, Viplav Dube wrote:
> > Hi Kasper Laudrup,
> > Thanks for your reply, I have done scraper part for a single site and
> > performing well. But
> > Few points I want to share with you ,for that I need help.
>
> Glad to hear you are making progress and hope my input was helpful.
>
> To be honest, I don't really have the time to help you with the more
> specific parts at the moment, but maybe someone else can?
>
> Seems like you're moving in the right direction though so I'm sure
> you'll figure it out.
>
> Thank you for your understanding.
>
> 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/f6da2e9a-68af-812c-3c07-87328fe8bc93%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/CAH9mneVgJ8xTn%3D6xK2FzrR%3DARgdJmP6wtr7z9zRbvZHMTdnrFA%40mail.gmail.com.


Re: Need help with inlineformset

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer?
 We can help you in this and related tasks at fair prices
Best Regards,
Divyesh Khamele

On Sun, 11 Oct 2020, 9:08 pm Marco Paradisi,  wrote:

> Hi everyone,
>
> I have the following instruction:
>
> forms.models.inlineformset_factory(Covata, Bird, fields=('rna_ucc',
> 'sesso', 'nascita', 'anella', 'razza', 'mutazione', 'portatore',),
> can_delete=True, extra=1)
>
> I want to initialize two fields of the model "Bird" to values taken from
> the form of the model "Covata".
>
> anyone has any hint?
>
> Thanks 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/32896b20-0570-4d8f-b7e0-ab7b023d6d7fn%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/CAH9mneWOrn_7RZGGfKGzofF3ksFXu0ydFazJ24ia4K5PMw3DoA%40mail.gmail.com.


Re: Need help to create web API for the listing of news.

2020-10-11 Thread Kasper Laudrup

Hi Viplay,

On 10/10/2020 17.31, Viplav Dube wrote:

Hi Kasper Laudrup,
Thanks for your reply, I have done scraper part for a single site and 
performing well. But

Few points I want to share with you ,for that I need help.


Glad to hear you are making progress and hope my input was helpful.

To be honest, I don't really have the time to help you with the more 
specific parts at the moment, but maybe someone else can?


Seems like you're moving in the right direction though so I'm sure 
you'll figure it out.


Thank you for your understanding.

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/f6da2e9a-68af-812c-3c07-87328fe8bc93%40stacktrace.dk.


Re: Need help to create web API for the listing of news.

2020-10-10 Thread Viplav Dube
Hi Kasper Laudrup,
Thanks for your reply, I have done scraper part for a single site and
performing well. But
Few points I want to share with you ,for that I need help.
1. Need to create web API for the listing of news and searching news with
keywords
2. Need to write a small scraper for below JSON links and get the news on
one API call for current
date and store it in the table in this format (Id, Date, Title, Details,
New From (CNN, Times,
etc.) and URL of News)
3. You need to ensure that no duplicate news gets entered in the table via
scraper
4. News can be searched via any keyword in title or in detail field
5. Also, we will need API to delete any news by passing ID and we need
separate API to update
the news details

{
"Washington Post": {
"link": "washingtonpost.com"
},
"CNN": {
"link": "http://edition.cnn.com/;
},
"Time": {
"link": "http://time.com/;
},
"QZ": {
"link": "https://qz.com/;
},
"Slashdot": {
"link": "https://slashdot.org/;
}
}




On Fri, Oct 9, 2020 at 11:48 PM Kasper Laudrup 
wrote:

> Hi Viplay
>
> On 09/10/2020 16.26, Viplav Dube wrote:
> > Dear all,
> > Need to write a small scraper for JSON links and get the news on one API
> > call for current date and store it in the table in this format (Id,
> > Date, Title, Details, New From (CNN, Times, etc.) and URL of News).
> > News can be searched via any keyword in title or in detail field.
> >
>
> You can probably use the requests library
> (https://requests.readthedocs.io/en/master/) for the scraping.
>
> Not really sure if you mean you want to call an existing API, in which
> case just using requests should be fine, or you actually need to parse
> HTML and find links ("scraping") in which case you probably need to
> combine it with beatiful soup
> (https://www.crummy.com/software/BeautifulSoup/bs4/doc/).
>
> Shouldn't be a problem to create a database model for storing that
> information using standard Django models and searching shouldn't be much
> of a problem either:
>
> https://docs.djangoproject.com/en/3.1/topics/db/search/
>
> Hope that helps a bit.
>
> 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/bb232ec7-672e-633f-1fb6-79c608693870%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/CAGVfOwNVgaY4Spyugkb_jEPkcK%2Bd6N1zcHdb0rJjbQh48wtY1Q%40mail.gmail.com.


Re: Need help to create web API for the listing of news.

2020-10-09 Thread Kasper Laudrup

Hi Viplay

On 09/10/2020 16.26, Viplav Dube wrote:

Dear all,
Need to write a small scraper for JSON links and get the news on one API 
call for current date and store it in the table in this format (Id, 
Date, Title, Details, New From (CNN, Times, etc.) and URL of News).

News can be searched via any keyword in title or in detail field.



You can probably use the requests library 
(https://requests.readthedocs.io/en/master/) for the scraping.


Not really sure if you mean you want to call an existing API, in which 
case just using requests should be fine, or you actually need to parse 
HTML and find links ("scraping") in which case you probably need to 
combine it with beatiful soup 
(https://www.crummy.com/software/BeautifulSoup/bs4/doc/).


Shouldn't be a problem to create a database model for storing that 
information using standard Django models and searching shouldn't be much 
of a problem either:


https://docs.djangoproject.com/en/3.1/topics/db/search/

Hope that helps a bit.

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/bb232ec7-672e-633f-1fb6-79c608693870%40stacktrace.dk.


Re: Need help in Linode server setup.

2020-08-31 Thread RANGA BHARATH JINKA
Hi,

   Please check this.

https://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server

On Mon, Aug 31, 2020 at 12:15 PM Vikas Sri  wrote:

> We have pushed the codes on a Linode server. But the project is not
> getting Live.
> Sharing screenshots on the Linode console and the Home page error(it says
> access forbidden).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANOk8kJ0XadfB4mw5786LED7fU04r4y2j2M-pUqGmRcp_LPSww%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/CAK5m317OW2enWMzPfyET%3Dr4V3TQ8tCC_2oTu0i%2BFvO3T39h5zQ%40mail.gmail.com.


Re: Need Help : Custom User Model

2020-07-22 Thread Exactly musty
Reach me I would give you my github repo to copy it from

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


Re: Need Help : Custom User Model

2020-07-22 Thread Exactly musty
Months ago I was looking for those same thing, I read the doc but wasnt 
clear enough I had to follow tutorials not until I learnt it, now I use it 
on all my project, which i added django allauth but i recommend reading 
this and following this tutorial, if you a newbie custom user model can be 
a pain in the ass 
https://testdriven.io/blog/django-custom-user-model/ read and follow this 
tutorial,if you dont understand I can give you a github repo which I do 
copy from to start other project 
On Wednesday, July 22, 2020 at 8:31:41 PM UTC+1, Joel T wrote:
>
> I'm a newbie to web development and more so with the use of django. How do 
> I create a custom user model that has additional fields for other users of 
> my web app while keeping the default django user model for myself - 
> mid-project. I appreciate the 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/d871ea15-457e-47d3-8127-4f3326660b05o%40googlegroups.com.


Re: Need help

2020-06-15 Thread Kelvin Sajere
On Sun, Jun 14, 2020 at 19:38 Deborah  wrote:

> good evening
> the tags that I use in the html file, appear on browsers when I launch the
> server, what to do ???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fca60c53-040e-4f39-ab00-04bb61cc8444o%40googlegroups.com
> 
> .
>
Here is the thing. In django, you should first make sure your HTML files
are in their related app folders, and then load them via a view before
using that view to construct a urlparttern as you’d like. Another thing I
noticed is that the {% load static %} was after a line of code on your HTML
file. This should always be the very first line here except you are
extending a base HTML, then that comes first before you load static.
-- 
KeLLs

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


Re: Need help

2020-06-15 Thread Kumar Shantanu
My best guess you are trying to open the HTML file from your storage and
not trying to access it by putting the server on
Try using :::  py manage.py runserver   to run the server and then try
to access your page using your browser
cheers :)


On Mon, Jun 15, 2020 at 9:39 AM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
> You should not load html file directly. You have to include html file
> inside a view, and call the url linked to that view in urls.py file. You
> have to use the url to access the view. All the best.
>
> On Mon, Jun 15, 2020 at 3:33 AM Yannick Kiki  wrote:
>
>> {% load static %} should be the first line in the template
>>
>> On Sun, Jun 14, 2020 at 20:27 Julio Cojom 
>> wrote:
>>
>>> Based on the url of the browser, seems like python isn't interpreting
>>> the HTML file. This url isn't friendly, django not shows ".html" when you
>>> browse inside your app. Are you running with py manage.py runserver?
>>>
>>> Why the port is 63342? Usualy the port is 8000 unless you explicit
>>> changed it.
>>>
>>> Try with the first steps in the django tutorial, that will be config
>>> template spaces, urls, views and models.
>>>
>>>
>>> https://docs.djangoproject.com/en/3.0/intro/tutorial01/
>>>
>>>
>>> El dom., 14 de junio de 2020 1:15 p. m., Ragnar Örn Ólafsson Ólafsson <
>>> ragnar@gmail.com> escribió:
>>>
 Category:{%category%} is being parsed as normal text inside of the
 HTML.

 On Sun, 14 Jun 2020 at 19:04, Deborah  wrote:

>
>
> Le dimanche 14 juin 2020 20:38:43 UTC+2, Deborah a écrit :
>>
>> good evening
>> the tags that I use in the html file, appear on browsers when I
>> launch the server, what to do ???
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/50e03cdf-2aae-4f20-a19a-ed06e1ac4148o%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/CAL1UQP3ECFwL6tLByftURPGA5m2odRjk38%3DouY2jv6zWQ%2BiS-g%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/CAHRQUHmbCtY64OYpX8u-%3DuvbXOhKv%2BQwTCvm3%2BNUQuP-2vCq0w%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/CACVVTn0HcYG2QxywD_K9uksSDeSnBFwN3Y%3DZDQYjXhHE%2BQ_Qug%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/CAK5m316qaR4LeMcZ1bevpD%2BnN0Ur7m5_d-DmFq_TgppkJNLUdA%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 

Re: Need help

2020-06-14 Thread RANGA BHARATH JINKA
Hi,
You should not load html file directly. You have to include html file
inside a view, and call the url linked to that view in urls.py file. You
have to use the url to access the view. All the best.

On Mon, Jun 15, 2020 at 3:33 AM Yannick Kiki  wrote:

> {% load static %} should be the first line in the template
>
> On Sun, Jun 14, 2020 at 20:27 Julio Cojom 
> wrote:
>
>> Based on the url of the browser, seems like python isn't interpreting the
>> HTML file. This url isn't friendly, django not shows ".html" when you
>> browse inside your app. Are you running with py manage.py runserver?
>>
>> Why the port is 63342? Usualy the port is 8000 unless you explicit
>> changed it.
>>
>> Try with the first steps in the django tutorial, that will be config
>> template spaces, urls, views and models.
>>
>>
>> https://docs.djangoproject.com/en/3.0/intro/tutorial01/
>>
>>
>> El dom., 14 de junio de 2020 1:15 p. m., Ragnar Örn Ólafsson Ólafsson <
>> ragnar@gmail.com> escribió:
>>
>>> Category:{%category%} is being parsed as normal text inside of the HTML.
>>>
>>> On Sun, 14 Jun 2020 at 19:04, Deborah  wrote:
>>>


 Le dimanche 14 juin 2020 20:38:43 UTC+2, Deborah a écrit :
>
> good evening
> the tags that I use in the html file, appear on browsers when I launch
> the server, what to do ???
>
 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/50e03cdf-2aae-4f20-a19a-ed06e1ac4148o%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/CAL1UQP3ECFwL6tLByftURPGA5m2odRjk38%3DouY2jv6zWQ%2BiS-g%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/CAHRQUHmbCtY64OYpX8u-%3DuvbXOhKv%2BQwTCvm3%2BNUQuP-2vCq0w%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/CACVVTn0HcYG2QxywD_K9uksSDeSnBFwN3Y%3DZDQYjXhHE%2BQ_Qug%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/CAK5m316qaR4LeMcZ1bevpD%2BnN0Ur7m5_d-DmFq_TgppkJNLUdA%40mail.gmail.com.


Re: Need help

2020-06-14 Thread Yannick Kiki
{% load static %} should be the first line in the template

On Sun, Jun 14, 2020 at 20:27 Julio Cojom  wrote:

> Based on the url of the browser, seems like python isn't interpreting the
> HTML file. This url isn't friendly, django not shows ".html" when you
> browse inside your app. Are you running with py manage.py runserver?
>
> Why the port is 63342? Usualy the port is 8000 unless you explicit changed
> it.
>
> Try with the first steps in the django tutorial, that will be config
> template spaces, urls, views and models.
>
>
> https://docs.djangoproject.com/en/3.0/intro/tutorial01/
>
>
> El dom., 14 de junio de 2020 1:15 p. m., Ragnar Örn Ólafsson Ólafsson <
> ragnar@gmail.com> escribió:
>
>> Category:{%category%} is being parsed as normal text inside of the HTML.
>>
>> On Sun, 14 Jun 2020 at 19:04, Deborah  wrote:
>>
>>>
>>>
>>> Le dimanche 14 juin 2020 20:38:43 UTC+2, Deborah a écrit :

 good evening
 the tags that I use in the html file, appear on browsers when I launch
 the server, what to do ???

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/50e03cdf-2aae-4f20-a19a-ed06e1ac4148o%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/CAL1UQP3ECFwL6tLByftURPGA5m2odRjk38%3DouY2jv6zWQ%2BiS-g%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/CAHRQUHmbCtY64OYpX8u-%3DuvbXOhKv%2BQwTCvm3%2BNUQuP-2vCq0w%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/CACVVTn0HcYG2QxywD_K9uksSDeSnBFwN3Y%3DZDQYjXhHE%2BQ_Qug%40mail.gmail.com.


Re: Need help

2020-06-14 Thread Julio Cojom
Based on the url of the browser, seems like python isn't interpreting the
HTML file. This url isn't friendly, django not shows ".html" when you
browse inside your app. Are you running with py manage.py runserver?

Why the port is 63342? Usualy the port is 8000 unless you explicit changed
it.

Try with the first steps in the django tutorial, that will be config
template spaces, urls, views and models.


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


El dom., 14 de junio de 2020 1:15 p. m., Ragnar Örn Ólafsson Ólafsson <
ragnar@gmail.com> escribió:

> Category:{%category%} is being parsed as normal text inside of the HTML.
>
> On Sun, 14 Jun 2020 at 19:04, Deborah  wrote:
>
>>
>>
>> Le dimanche 14 juin 2020 20:38:43 UTC+2, Deborah a écrit :
>>>
>>> good evening
>>> the tags that I use in the html file, appear on browsers when I launch
>>> the server, what to do ???
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/50e03cdf-2aae-4f20-a19a-ed06e1ac4148o%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/CAL1UQP3ECFwL6tLByftURPGA5m2odRjk38%3DouY2jv6zWQ%2BiS-g%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/CAHRQUHmbCtY64OYpX8u-%3DuvbXOhKv%2BQwTCvm3%2BNUQuP-2vCq0w%40mail.gmail.com.


Re: Need help

2020-06-14 Thread Ragnar Örn Ólafsson Ólafsson
Category:{%category%} is being parsed as normal text inside of the HTML.

On Sun, 14 Jun 2020 at 19:04, Deborah  wrote:

>
>
> Le dimanche 14 juin 2020 20:38:43 UTC+2, Deborah a écrit :
>>
>> good evening
>> the tags that I use in the html file, appear on browsers when I launch
>> the server, what to do ???
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/50e03cdf-2aae-4f20-a19a-ed06e1ac4148o%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/CAL1UQP3ECFwL6tLByftURPGA5m2odRjk38%3DouY2jv6zWQ%2BiS-g%40mail.gmail.com.


Re: Need help

2020-06-14 Thread Deborah


Le dimanche 14 juin 2020 20:38:43 UTC+2, Deborah a écrit :
>
> good evening 
> the tags that I use in the html file, appear on browsers when I launch the 
> server, what to do ???
>

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


Re: Need help

2020-06-14 Thread Julio Cojom
Show your file please

El dom., 14 de junio de 2020 12:38 p. m., Deborah 
escribió:

> good evening
> the tags that I use in the html file, appear on browsers when I launch the
> server, what to do ???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fca60c53-040e-4f39-ab00-04bb61cc8444o%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/CAHRQUHnzX1zKv32jGV4%2BpjnkddYj9KQ9RThWpNCTtPfmqAxabA%40mail.gmail.com.


Re: Need help whit DJANGO_SETTINGS_MODULE

2020-05-03 Thread Sunday Iyanu Ajayi
Hi Ilie Ioana,
Please check if
1. You are in your current directory ( or virtual evironment)
2. Is django installed on yur pc?

*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Sun, Apr 19, 2020 at 2:22 PM Ilie Ioana  wrote:

> Hi,I'm new with django and python.
> I just strated a new django project in a venv using django 3.0 and seems
> that DJANGO_SETTINGS_MODULE is not set when running django-admin runserver
>
> Enter code here.(test1) 
> ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
>> django-admin runserver
>> Traceback (most recent call last):
>>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line 8, in
>> 
>> sys.exit(execute_from_command_line())
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 401, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 395, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 328, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 369, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 67, in handle
>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 76, in __getattr__
>> self._setup(name)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 61, in _setup
>> % (desc, ENVIRONMENT_VARIABLE))
>> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but
>> settings are not configured. You must either define the environment
>> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
>> accessing settings.
>> ..
>>
>>
>>
> I tried to set it myself with export DJANGO_SETTINGS_MODULE=test1.settings
> but i receive  ModuleNotFoundError: No module named 'test1'
> Seems like test1 module is not in the path, shouldn't be automatically
> added there?
>
> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
> django-admin shell
> Python 3.6.9 (default, Nov  7 2019, 10:44:02)
> [GCC 8.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> import sys
> >>> sys.path
> ['/home/ioana.i/Workspace/Ioana/test1/bin', '/usr/lib/python36.zip',
> '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload',
> '/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages']
> >>>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/07386bda-38a4-4897-b428-c8a39e52c487%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/CAKYSAw1XvpP4om4XJ-vbNqikum2b9soEcSre3rxAcMwGxqcy7w%40mail.gmail.com.


Re: Need Help In My Project (URGENT)

2020-04-25 Thread Desh Deepak
Share your code

On Thu, 23 Apr 2020, 5:36 am 'raghav' via Django users, <
django-users@googlegroups.com> wrote:

>
> My name is Raghav and I am a final year student.
> I want a project for my final semester, the subject of which is the *"Courier
> Management System"*,
> I am not able to complete my project on time due to any problem. The
> problem is that I can no longer go to the institution where I was training.
> Due to lockdown.
> My computer is too old which is causing the problem.
> This community is a family that keeps on helping each other
> I hope someone helps me.
>
> Contact - shubhamnagariya1...@gmail.com()
> Email me if anyone wants to help me
>
> If anyone has a project that works like a courier management service,
> contact me its urgent.
>
> - Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/da6ec428-ceee-4a12-bd86-3354b63f035b%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/CAJ0m4xiCRkPUXOC4A8E%3DU6QegywdJxPE1yLkhAjqRpR3Kqc_Gg%40mail.gmail.com.


Re: Need Help In My Project (URGENT)

2020-04-25 Thread maninder singh Kumar
The lockdown has affected all of us. I find it hard to believe that, Raghav, 
you haven't found a way out.  We must all work hard to get to something 
valuable.every day.  The way around this problem you face is to talk on the 
phone.  Remember isolation can lead to depression and we must still communicate.
The way if I may suggest is to call a call centre of your old computer and talk 
to them about its utility and you will find all of us are indispensable to our 
god.  Imagine that coming from a call centre, call dell if you must, they 
always wanna help you through your bad times.

Regs
Willy

Sent from my iPad

> On 25-Apr-2020, at 3:38 PM, Madhav Nandan  wrote:
> 
> Can you please elaborate raghav where you need help? Where you are stuck. I'm 
> willing to help you. We can share code on github and make changes but for 
> that I atleast need to know where you are stuck.
> 
> 
> 
>> On Fri, Apr 24, 2020 at 9:24 PM Shivansh Sen  wrote:
>> I think what he wants to say is if anybody got a complete project, share 
>> with him
>> 
>>> On Thursday, April 23, 2020 at 5:36:35 AM UTC+5:30, raghav wrote:
>>> 
>>> My name is Raghav and I am a final year student.
>>> I want a project for my final semester, the subject of which is the 
>>> "Courier Management System", 
>>> I am not able to complete my project on time due to any problem. The 
>>> problem is that I can no longer go to the institution where I was training. 
>>> Due to lockdown.
>>> My computer is too old which is causing the problem.
>>> This community is a family that keeps on helping each other
>>> I hope someone helps me.
>>> 
>>> Contact - shubhamna...@gmail.com()
>>> Email me if anyone wants to help me
>>> 
>>> If anyone has a project that works like a courier management service, 
>>> contact me its urgent.
>>> 
>>> - Thank you
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/05a52998-c5f1-4328-8f03-eb8815e0a950%40googlegroups.com.
> 
> 
> -- 
> Madhav Nandan
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAGXYL6Ld%3D5Cnc5YfnCqrzq94bCE-5yte12OPVPWWJNN5SaqOPg%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/8E40B060-C863-44A4-A33B-FDF55E3C9E80%40gmail.com.


Re: Need Help In My Project (URGENT)

2020-04-25 Thread Madhav Nandan
Can you please elaborate raghav where you need help? Where you are stuck.
I'm willing to help you. We can share code on github and make changes but
for that I atleast need to know where you are stuck.



On Fri, Apr 24, 2020 at 9:24 PM Shivansh Sen  wrote:

> I think what he wants to say is if anybody got a complete project, share
> with him
>
> On Thursday, April 23, 2020 at 5:36:35 AM UTC+5:30, raghav wrote:
>>
>>
>> My name is Raghav and I am a final year student.
>> I want a project for my final semester, the subject of which is the *"Courier
>> Management System"*,
>> I am not able to complete my project on time due to any problem. The
>> problem is that I can no longer go to the institution where I was training.
>> Due to lockdown.
>> My computer is too old which is causing the problem.
>> This community is a family that keeps on helping each other
>> I hope someone helps me.
>>
>> Contact - shubhamna...@gmail.com()
>> Email me if anyone wants to help me
>>
>> If anyone has a project that works like a courier management service,
>> contact me its urgent.
>>
>> - Thank you
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/05a52998-c5f1-4328-8f03-eb8815e0a950%40googlegroups.com
> 
> .
>


-- 
Madhav Nandan

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


Re: Need Help In My Project (URGENT)

2020-04-24 Thread Shivansh Sen
I think what he wants to say is if anybody got a complete project, share 
with him

On Thursday, April 23, 2020 at 5:36:35 AM UTC+5:30, raghav wrote:
>
>
> My name is Raghav and I am a final year student.
> I want a project for my final semester, the subject of which is the *"Courier 
> Management System"*, 
> I am not able to complete my project on time due to any problem. The 
> problem is that I can no longer go to the institution where I was training. 
> Due to lockdown.
> My computer is too old which is causing the problem.
> This community is a family that keeps on helping each other
> I hope someone helps me.
>
> Contact - shubhamna...@gmail.com ()
> Email me if anyone wants to help me
>
> If anyone has a project that works like a courier management service, 
> contact me its urgent.
>
> - Thank you
>

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


Re: Need Help In My Project (URGENT)

2020-04-24 Thread Shivansh Sen
I thinks what Raghav wants is to get a complete project as help
---
Shivansh Sen
Call:+91-6375-967-908
India


On Fri, Apr 24, 2020 at 8:07 PM AM  wrote:

> Hello Raghav. You need to be more specific about your problem and the help
> you need. Not many would like to help you flout the lockdown rules and get
> you to your training institution.
>
> On Thursday, April 23, 2020 at 12:06:35 PM UTC+12, raghav wrote:
>>
>>
>> My name is Raghav and I am a final year student.
>> I want a project for my final semester, the subject of which is the *"Courier
>> Management System"*,
>> I am not able to complete my project on time due to any problem. The
>> problem is that I can no longer go to the institution where I was training.
>> Due to lockdown.
>> My computer is too old which is causing the problem.
>> This community is a family that keeps on helping each other
>> I hope someone helps me.
>>
>> Contact - shubhamnagariya1...@gmail.com()
>> Email me if anyone wants to help me
>>
>> If anyone has a project that works like a courier management service,
>> contact me its urgent.
>>
>> - Thank you
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/061ee102-6b04-44c9-8431-8eac9b35199e%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/CAOAmnBfPgp5pnpygwd%2BmihxA9%3DWwRv4McW3LWK5ieRAOx9TNMg%40mail.gmail.com.


Re: Need Help In My Project (URGENT)

2020-04-24 Thread AM
Hello Raghav. You need to be more specific about your problem and the help 
you need. Not many would like to help you flout the lockdown rules and get 
you to your training institution.

On Thursday, April 23, 2020 at 12:06:35 PM UTC+12, raghav wrote:
>
>
> My name is Raghav and I am a final year student.
> I want a project for my final semester, the subject of which is the *"Courier 
> Management System"*, 
> I am not able to complete my project on time due to any problem. The 
> problem is that I can no longer go to the institution where I was training. 
> Due to lockdown.
> My computer is too old which is causing the problem.
> This community is a family that keeps on helping each other
> I hope someone helps me.
>
> Contact - shubhamnagariya1...@gmail.com()
> Email me if anyone wants to help me
>
> If anyone has a project that works like a courier management service, 
> contact me its urgent.
>
> - Thank you
>

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


Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread 'Amitesh Sahay' via Django users
DJANGO_SETTINGS_MODULE is not the problem I guess, as its not there even in my 
settings.py. Did you define your app in apps settings? 



Regards,
Amitesh 

On Friday, 24 April, 2020, 06:45:43 pm IST, Raja Sekar Sambath 
 wrote:  
 
 Yes I'm
On Fri, 24 Apr 2020 at 18:30, DANIEL URBANO DE LA RUA 
 wrote:

are you using virtual environment?
El vie., 24 abr. 2020 a las 14:33, Raja Sekar Sambath () 
escribió:

could you share the solution hereresetting PC didn't making any sense to 
me
On Sun, 19 Apr 2020 at 19:19, Ilie Ioana  wrote:

After resetting the pc it worked.Thanks.

On Sunday, April 19, 2020 at 4:39:50 PM UTC+3, Ilie Ioana wrote:
The project structure:


(test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ tree.├── 
manage.py└── test1    ├── asgi.py    ├── __init__.py    ├── settings.py    ├── 
urls.py    └── wsgi.py


:~/Workspace/Ioana/test1/test1$ python manage.py runserverTraceback (most 
recent call last):  File "manage.py", line 21, in     main()  File 
"manage.py", line 17, in main    execute_from_command_line(sys.argv)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
 line 401, in execute_from_command_line    utility.execute()  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
 line 395, in execute    
self.fetch_command(subcommand).run_from_argv(self.argv)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
 line 328, in run_from_argv    self.execute(*args, **cmd_options)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 line 60, in execute    super().execute(*args, **options)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
 line 369, in execute    output = self.handle(*args, **options)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 line 67, in handle    if not settings.DEBUG and not settings.ALLOWED_HOSTS:  
File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
 line 76, in __getattr__    self._setup(name)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
 line 61, in _setup    % (desc, 
ENVIRONMENT_VARIABLE))django.core.exceptions.ImproperlyConfigured: Requested 
setting DEBUG, but settings are not configured. You must either define the 
environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before 
accessing settings.



On Sunday, April 19, 2020 at 4:35:11 PM UTC+3, Ayser shuhaib wrote:
to run the server use:Python manage.py runserver
It would be better if you send a picture of the project files structure.
On Sun, 19 Apr 2020 at 15:22, Ilie Ioana  wrote:

Hi,I'm new with django and python.I just strated a new django project in a venv 
using django 3.0 and seems that DJANGO_SETTINGS_MODULE is not set when running 
django-admin runserver

Enter code here.(test1) 
ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ django-admin 
runserverTraceback (most recent call last):  File 
"/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line 8, in     
sys.exit(execute_from_command_line())  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
 line 401, in execute_from_command_line    utility.execute()  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
 line 395, in execute    
self.fetch_command(subcommand).run_from_argv(self.argv)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
 line 328, in run_from_argv    self.execute(*args, **cmd_options)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 line 60, in execute    super().execute(*args, **options)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
 line 369, in execute    output = self.handle(*args, **options)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 line 67, in handle    if not settings.DEBUG and not settings.ALLOWED_HOSTS:  
File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
 line 76, in __getattr__    self._setup(name)  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
 line 61, in _setup    % (desc, 
ENVIRONMENT_VARIABLE))django.core.exceptions.ImproperlyConfigured: Requested 
setting DEBUG, but settings are not configured. You must either define the 
environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before 
accessing settings...


 I tried to set it myself 

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread Raja Sekar Sambath
Yes I'm

On Fri, 24 Apr 2020 at 18:30, DANIEL URBANO DE LA RUA <
dannybombas...@gmail.com> wrote:

> are you using virtual environment?
>
> El vie., 24 abr. 2020 a las 14:33, Raja Sekar Sambath ()
> escribió:
>
>> could you share the solution here
>> resetting PC didn't making any sense to me
>>
>> On Sun, 19 Apr 2020 at 19:19, Ilie Ioana  wrote:
>>
>>> After resetting the pc it worked.
>>> Thanks.
>>>
>>> On Sunday, April 19, 2020 at 4:39:50 PM UTC+3, Ilie Ioana wrote:

 The project structure:


 (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ tree
 .
 ├── manage.py
 └── test1
 ├── asgi.py
 ├── __init__.py
 ├── settings.py
 ├── urls.py
 └── wsgi.py



 :~/Workspace/Ioana/test1/test1$ python manage.py runserver
 Traceback (most recent call last):
   File "manage.py", line 21, in 
 main()
   File "manage.py", line 17, in main
 execute_from_command_line(sys.argv)
   File
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
 line 401, in execute_from_command_line
 utility.execute()
   File
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
 line 395, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
 line 328, in run_from_argv
 self.execute(*args, **cmd_options)
   File
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 line 60, in execute
 super().execute(*args, **options)
   File
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
 line 369, in execute
 output = self.handle(*args, **options)
   File
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 line 67, in handle
 if not settings.DEBUG and not settings.ALLOWED_HOSTS:
   File
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
 line 76, in __getattr__
 self._setup(name)
   File
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
 line 61, in _setup
 % (desc, ENVIRONMENT_VARIABLE))
 django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG,
 but settings are not configured. You must either define the environment
 variable DJANGO_SETTINGS_MODULE or call settings.configure() before
 accessing settings.




 On Sunday, April 19, 2020 at 4:35:11 PM UTC+3, Ayser shuhaib wrote:
>
> to run the server use:
> Python manage.py runserver
>
> It would be better if you send a picture of the project files
> structure.
>
> On Sun, 19 Apr 2020 at 15:22, Ilie Ioana  wrote:
>
>> Hi,I'm new with django and python.
>> I just strated a new django project in a venv using django 3.0 and
>> seems that DJANGO_SETTINGS_MODULE is not set when running django-admin
>> runserver
>>
>> Enter code here.(test1) 
>> ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
>>> django-admin runserver
>>> Traceback (most recent call last):
>>>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line
>>> 8, in 
>>> sys.exit(execute_from_command_line())
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>>> line 401, in execute_from_command_line
>>> utility.execute()
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>>> line 395, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>>> line 328, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 60, in execute
>>> super().execute(*args, **options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>>> line 369, in execute
>>> output = self.handle(*args, **options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 67, in handle
>>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>>   File
>>> 

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread DANIEL URBANO DE LA RUA
are you using virtual environment?

El vie., 24 abr. 2020 a las 14:33, Raja Sekar Sambath ()
escribió:

> could you share the solution here
> resetting PC didn't making any sense to me
>
> On Sun, 19 Apr 2020 at 19:19, Ilie Ioana  wrote:
>
>> After resetting the pc it worked.
>> Thanks.
>>
>> On Sunday, April 19, 2020 at 4:39:50 PM UTC+3, Ilie Ioana wrote:
>>>
>>> The project structure:
>>>
>>>
>>> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ tree
>>> .
>>> ├── manage.py
>>> └── test1
>>> ├── asgi.py
>>> ├── __init__.py
>>> ├── settings.py
>>> ├── urls.py
>>> └── wsgi.py
>>>
>>>
>>>
>>> :~/Workspace/Ioana/test1/test1$ python manage.py runserver
>>> Traceback (most recent call last):
>>>   File "manage.py", line 21, in 
>>> main()
>>>   File "manage.py", line 17, in main
>>> execute_from_command_line(sys.argv)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>>> line 401, in execute_from_command_line
>>> utility.execute()
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>>> line 395, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>>> line 328, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 60, in execute
>>> super().execute(*args, **options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>>> line 369, in execute
>>> output = self.handle(*args, **options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 67, in handle
>>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>>> line 76, in __getattr__
>>> self._setup(name)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>>> line 61, in _setup
>>> % (desc, ENVIRONMENT_VARIABLE))
>>> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG,
>>> but settings are not configured. You must either define the environment
>>> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
>>> accessing settings.
>>>
>>>
>>>
>>>
>>> On Sunday, April 19, 2020 at 4:35:11 PM UTC+3, Ayser shuhaib wrote:

 to run the server use:
 Python manage.py runserver

 It would be better if you send a picture of the project files structure.

 On Sun, 19 Apr 2020 at 15:22, Ilie Ioana  wrote:

> Hi,I'm new with django and python.
> I just strated a new django project in a venv using django 3.0 and
> seems that DJANGO_SETTINGS_MODULE is not set when running django-admin
> runserver
>
> Enter code here.(test1) 
> ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
>> django-admin runserver
>> Traceback (most recent call last):
>>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line
>> 8, in 
>> sys.exit(execute_from_command_line())
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 401, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 395, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 328, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 369, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 67, in handle
>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 76, in __getattr__
>> self._setup(name)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 61, in _setup
>>

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread Raja Sekar Sambath
could you share the solution here
resetting PC didn't making any sense to me

On Sun, 19 Apr 2020 at 19:19, Ilie Ioana  wrote:

> After resetting the pc it worked.
> Thanks.
>
> On Sunday, April 19, 2020 at 4:39:50 PM UTC+3, Ilie Ioana wrote:
>>
>> The project structure:
>>
>>
>> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ tree
>> .
>> ├── manage.py
>> └── test1
>> ├── asgi.py
>> ├── __init__.py
>> ├── settings.py
>> ├── urls.py
>> └── wsgi.py
>>
>>
>>
>> :~/Workspace/Ioana/test1/test1$ python manage.py runserver
>> Traceback (most recent call last):
>>   File "manage.py", line 21, in 
>> main()
>>   File "manage.py", line 17, in main
>> execute_from_command_line(sys.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 401, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 395, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 328, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 369, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 67, in handle
>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 76, in __getattr__
>> self._setup(name)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 61, in _setup
>> % (desc, ENVIRONMENT_VARIABLE))
>> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but
>> settings are not configured. You must either define the environment
>> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
>> accessing settings.
>>
>>
>>
>>
>> On Sunday, April 19, 2020 at 4:35:11 PM UTC+3, Ayser shuhaib wrote:
>>>
>>> to run the server use:
>>> Python manage.py runserver
>>>
>>> It would be better if you send a picture of the project files structure.
>>>
>>> On Sun, 19 Apr 2020 at 15:22, Ilie Ioana  wrote:
>>>
 Hi,I'm new with django and python.
 I just strated a new django project in a venv using django 3.0 and
 seems that DJANGO_SETTINGS_MODULE is not set when running django-admin
 runserver

 Enter code here.(test1) 
 ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
> django-admin runserver
> Traceback (most recent call last):
>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line 8,
> in 
> sys.exit(execute_from_command_line())
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
> line 401, in execute_from_command_line
> utility.execute()
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
> line 395, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
> line 328, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
> line 60, in execute
> super().execute(*args, **options)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
> line 369, in execute
> output = self.handle(*args, **options)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
> line 67, in handle
> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
> line 76, in __getattr__
> self._setup(name)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
> line 61, in _setup
> % (desc, ENVIRONMENT_VARIABLE))
> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG,
> but settings are not configured. You must either define the environment
> variable DJANGO_SETTINGS_MODULE or 

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-20 Thread Ayser shuhaib
Great 

On Sun, 19 Apr 2020 at 15:50, Ilie Ioana  wrote:

> After resetting the pc it worked.
> Thanks.
>
>
> On Sunday, April 19, 2020 at 4:39:50 PM UTC+3, Ilie Ioana wrote:
>>
>> The project structure:
>>
>>
>> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ tree
>> .
>> ├── manage.py
>> └── test1
>> ├── asgi.py
>> ├── __init__.py
>> ├── settings.py
>> ├── urls.py
>> └── wsgi.py
>>
>>
>>
>> :~/Workspace/Ioana/test1/test1$ python manage.py runserver
>> Traceback (most recent call last):
>>   File "manage.py", line 21, in 
>> main()
>>   File "manage.py", line 17, in main
>> execute_from_command_line(sys.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 401, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 395, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 328, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 369, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 67, in handle
>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 76, in __getattr__
>> self._setup(name)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 61, in _setup
>> % (desc, ENVIRONMENT_VARIABLE))
>> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but
>> settings are not configured. You must either define the environment
>> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
>> accessing settings.
>>
>>
>>
>>
>> On Sunday, April 19, 2020 at 4:35:11 PM UTC+3, Ayser shuhaib wrote:
>>>
>>> to run the server use:
>>> Python manage.py runserver
>>>
>>> It would be better if you send a picture of the project files structure.
>>>
>>> On Sun, 19 Apr 2020 at 15:22, Ilie Ioana  wrote:
>>>
 Hi,I'm new with django and python.
 I just strated a new django project in a venv using django 3.0 and
 seems that DJANGO_SETTINGS_MODULE is not set when running django-admin
 runserver

 Enter code here.(test1) 
 ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
> django-admin runserver
> Traceback (most recent call last):
>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line 8,
> in 
> sys.exit(execute_from_command_line())
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
> line 401, in execute_from_command_line
> utility.execute()
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
> line 395, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
> line 328, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
> line 60, in execute
> super().execute(*args, **options)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
> line 369, in execute
> output = self.handle(*args, **options)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
> line 67, in handle
> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
> line 76, in __getattr__
> self._setup(name)
>   File
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
> line 61, in _setup
> % (desc, ENVIRONMENT_VARIABLE))
> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG,
> but settings are not configured. You must either define the environment
> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
> accessing settings.
> ..
>

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ilie Ioana
After resetting the pc it worked.
Thanks.

On Sunday, April 19, 2020 at 4:39:50 PM UTC+3, Ilie Ioana wrote:
>
> The project structure:
>
>
> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ tree
> .
> ├── manage.py
> └── test1
> ├── asgi.py
> ├── __init__.py
> ├── settings.py
> ├── urls.py
> └── wsgi.py
>
>
>
> :~/Workspace/Ioana/test1/test1$ python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 21, in 
> main()
>   File "manage.py", line 17, in main
> execute_from_command_line(sys.argv)
>   File 
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>  
> line 401, in execute_from_command_line
> utility.execute()
>   File 
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>  
> line 395, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>  
> line 328, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 60, in execute
> super().execute(*args, **options)
>   File 
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>  
> line 369, in execute
> output = self.handle(*args, **options)
>   File 
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>  
> line 67, in handle
> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>   File 
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>  
> line 76, in __getattr__
> self._setup(name)
>   File 
> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>  
> line 61, in _setup
> % (desc, ENVIRONMENT_VARIABLE))
> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but 
> settings are not configured. You must either define the environment 
> variable DJANGO_SETTINGS_MODULE or call settings.configure() before 
> accessing settings.
>
>
>
>
> On Sunday, April 19, 2020 at 4:35:11 PM UTC+3, Ayser shuhaib wrote:
>>
>> to run the server use:
>> Python manage.py runserver
>>
>> It would be better if you send a picture of the project files structure.
>>
>> On Sun, 19 Apr 2020 at 15:22, Ilie Ioana  wrote:
>>
>>> Hi,I'm new with django and python.
>>> I just strated a new django project in a venv using django 3.0 and seems 
>>> that DJANGO_SETTINGS_MODULE is not set when running django-admin runserver
>>>
>>> Enter code here.(test1) 
 ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ django-admin 
 runserver
 Traceback (most recent call last):
   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line 8, 
 in 
 sys.exit(execute_from_command_line())
   File 
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
  
 line 401, in execute_from_command_line
 utility.execute()
   File 
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
  
 line 395, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File 
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
  
 line 328, in run_from_argv
 self.execute(*args, **cmd_options)
   File 
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
  
 line 60, in execute
 super().execute(*args, **options)
   File 
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
  
 line 369, in execute
 output = self.handle(*args, **options)
   File 
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
  
 line 67, in handle
 if not settings.DEBUG and not settings.ALLOWED_HOSTS:
   File 
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
  
 line 76, in __getattr__
 self._setup(name)
   File 
 "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
  
 line 61, in _setup
 % (desc, ENVIRONMENT_VARIABLE))
 django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, 
 but settings are not configured. You must either define the environment 
 variable DJANGO_SETTINGS_MODULE or call settings.configure() before 
 accessing settings.
 ..


  
>>> I tried to set it myself with export 
>>> 

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ilie Ioana
The project structure:


(test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ tree
.
├── manage.py
└── test1
├── asgi.py
├── __init__.py
├── settings.py
├── urls.py
└── wsgi.py



:~/Workspace/Ioana/test1/test1$ python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 21, in 
main()
  File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
 
line 401, in execute_from_command_line
utility.execute()
  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
 
line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
 
line 328, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 
line 60, in execute
super().execute(*args, **options)
  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
 
line 369, in execute
output = self.handle(*args, **options)
  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
 
line 67, in handle
if not settings.DEBUG and not settings.ALLOWED_HOSTS:
  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
 
line 76, in __getattr__
self._setup(name)
  File 
"/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
 
line 61, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but 
settings are not configured. You must either define the environment 
variable DJANGO_SETTINGS_MODULE or call settings.configure() before 
accessing settings.




On Sunday, April 19, 2020 at 4:35:11 PM UTC+3, Ayser shuhaib wrote:
>
> to run the server use:
> Python manage.py runserver
>
> It would be better if you send a picture of the project files structure.
>
> On Sun, 19 Apr 2020 at 15:22, Ilie Ioana > 
> wrote:
>
>> Hi,I'm new with django and python.
>> I just strated a new django project in a venv using django 3.0 and seems 
>> that DJANGO_SETTINGS_MODULE is not set when running django-admin runserver
>>
>> Enter code here.(test1) 
>>> ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ django-admin 
>>> runserver
>>> Traceback (most recent call last):
>>>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line 8, 
>>> in 
>>> sys.exit(execute_from_command_line())
>>>   File 
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>>>  
>>> line 401, in execute_from_command_line
>>> utility.execute()
>>>   File 
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>>>  
>>> line 395, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File 
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>>>  
>>> line 328, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File 
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>>  
>>> line 60, in execute
>>> super().execute(*args, **options)
>>>   File 
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>>>  
>>> line 369, in execute
>>> output = self.handle(*args, **options)
>>>   File 
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>>  
>>> line 67, in handle
>>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>>   File 
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>>>  
>>> line 76, in __getattr__
>>> self._setup(name)
>>>   File 
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>>>  
>>> line 61, in _setup
>>> % (desc, ENVIRONMENT_VARIABLE))
>>> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, 
>>> but settings are not configured. You must either define the environment 
>>> variable DJANGO_SETTINGS_MODULE or call settings.configure() before 
>>> accessing settings.
>>> ..
>>>
>>>
>>>  
>> I tried to set it myself with export 
>> DJANGO_SETTINGS_MODULE=test1.settings but i receive  ModuleNotFoundError: 
>> No module named 'test1'
>> Seems like test1 module is not in the path, shouldn't be automatically 
>> added there?
>>
>> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ 
>> django-admin shell
>> Python 3.6.9 (default, Nov  7 2019, 

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ayser shuhaib
to run the server use:
Python manage.py runserver

It would be better if you send a picture of the project files structure.

On Sun, 19 Apr 2020 at 15:22, Ilie Ioana  wrote:

> Hi,I'm new with django and python.
> I just strated a new django project in a venv using django 3.0 and seems
> that DJANGO_SETTINGS_MODULE is not set when running django-admin runserver
>
> Enter code here.(test1) 
> ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
>> django-admin runserver
>> Traceback (most recent call last):
>>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line 8, in
>> 
>> sys.exit(execute_from_command_line())
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 401, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 395, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 328, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 369, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 67, in handle
>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 76, in __getattr__
>> self._setup(name)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 61, in _setup
>> % (desc, ENVIRONMENT_VARIABLE))
>> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but
>> settings are not configured. You must either define the environment
>> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
>> accessing settings.
>> ..
>>
>>
>>
> I tried to set it myself with export DJANGO_SETTINGS_MODULE=test1.settings
> but i receive  ModuleNotFoundError: No module named 'test1'
> Seems like test1 module is not in the path, shouldn't be automatically
> added there?
>
> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
> django-admin shell
> Python 3.6.9 (default, Nov  7 2019, 10:44:02)
> [GCC 8.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> import sys
> >>> sys.path
> ['/home/ioana.i/Workspace/Ioana/test1/bin', '/usr/lib/python36.zip',
> '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload',
> '/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages']
> >>>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/07386bda-38a4-4897-b428-c8a39e52c487%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/CAE0AZGLQQ2ysY4vhFmUhnoJwQ2ZUPO3tTqCqXuL9kaEE5hy%3Diw%40mail.gmail.com.


Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-07-05 Thread sachin thakur
I am also facing the same problem i am using PostgreSQL data  base . please
do share this issue bug

*Thanks and Kind Regards*


*Sachin Thakur*
about.me/sachin.thakur

 *PG Student*
Dept. of Computer Applications,
*Christ ( Deemed to Be university) Main Campus Bangalore, India*
*UG (DSCASC under Bangalore University )* Bangalore, India.
Mob: *+91 8792560572*
*E-mail : sachin.thakur9...@gmail.com *
*E-mail : sachin.tha...@mca.christuniversity.in
*




On Sat, Jun 29, 2019 at 3:38 AM Joe Reitman  wrote:

> The notes say:
>
>- The exact output will vary depending on the database you are using.
>The example above is generated for* PostgreSQL.*
>
> Are you using the default SQLite?
>
> You could try running migrate and then checking the tables to see if the
> constraint was added using a DB admin viewer.
>
> For SQLite I use - https://sqlitebrowser.org/
> For Postgres  - https://www.pgadmin.org/
>
>
>
> On Tuesday, May 28, 2019 at 7:44:44 PM UTC-5, K Tan wrote:
>>
>> Hi, everyone,
>>
>> This is my first time using Django and I think I'm missing something or
>> there is a bug. I am following the instructions on (
>> https://docs.djangoproject.com/en/2.2/intro/tutorial02/) and I've just
>> added the following chunk of code to "polls/models.py". (I copied/pasted so
>> I know it's correct.)
>>
>> 
>> from django.db import models
>>
>>
>> class Question(models.Model):
>> question_text = models.CharField(max_length=200)
>> pub_date = models.DateTimeField('date published')
>>
>>
>> class Choice(models.Model):
>> question = models.ForeignKey(Question, on_delete=models.CASCADE)
>> choice_text = models.CharField(max_length=200)
>> votes = models.IntegerField(default=0)
>> 
>>
>>
>> Then I ran the following command:
>>
>> 
>> LITTLEBLACK:www samktan$ python3 manage.py makemigrations polls
>> Migrations for 'polls':
>>   polls/migrations/0001_initial.py
>> - Create model Question
>> - Create model Choice
>> 
>>
>> Which is missing one line compared to the tutorial:
>>
>> - Add field question to choice
>>
>>
>>
>> Now when I run this command:
>>
>> 
>> LITTLEBLACK:www samktan$ python3 manage.py sqlmigrate polls 0001
>> BEGIN;
>> --
>> -- Create model Question
>> --
>> CREATE TABLE `polls_question` (`id` integer AUTO_INCREMENT NOT NULL
>> PRIMARY KEY, `question_text` varchar(200) NOT NULL, `pub_date` datetime(6)
>> NOT NULL);
>> --
>> -- Create model Choice
>> --
>> CREATE TABLE `polls_choice` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY
>> KEY, `choice_text` varchar(200) NOT NULL, `votes` integer NOT NULL,
>> `question_id` integer NOT NULL);
>> ALTER TABLE `polls_choice` ADD CONSTRAINT
>> `polls_choice_question_id_c5b4b260_fk_polls_question_id` FOREIGN KEY
>> (`question_id`) REFERENCES `polls_question` (`id`);
>> COMMIT;
>> 
>>
>> It is missing the "on delete cascade" clause, which I suspect it caused
>> by the missing line above.
>>
>> I have confirmed in MySQL that the "on delete cascade" clause is
>> definitely missing.
>>
>> 
>> mysql> show create table `polls_choice`;
>>
>> +--+-+
>> | Table| Create Table
>>
>>
>>
>>
>>
>>|
>>
>> +--+-+
>> | polls_choice | CREATE TABLE `polls_choice` (
>>   `id` int(11) NOT NULL AUTO_INCREMENT,
>>   `choice_text` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
>>   `votes` int(11) NOT NULL,
>>   `question_id` int(11) NOT NULL,
>>   PRIMARY KEY (`id`),
>>   KEY `polls_choice_question_id_c5b4b260_fk_polls_question_id`
>> (`question_id`),
>>   CONSTRAINT `polls_choice_question_id_c5b4b260_fk_polls_question_id`
>> FOREIGN KEY (`question_id`) REFERENCES `polls_question` (`id`)
>> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 

Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-06-28 Thread Joe Reitman
The notes say:

   - The exact output will vary depending on the database you are using. 
   The example above is generated for* PostgreSQL.*

Are you using the default SQLite?

You could try running migrate and then checking the tables to see if the 
constraint was added using a DB admin viewer.

For SQLite I use - https://sqlitebrowser.org/
For Postgres  - https://www.pgadmin.org/



On Tuesday, May 28, 2019 at 7:44:44 PM UTC-5, K Tan wrote:
>
> Hi, everyone,
>
> This is my first time using Django and I think I'm missing something or 
> there is a bug. I am following the instructions on (
> https://docs.djangoproject.com/en/2.2/intro/tutorial02/) and I've just 
> added the following chunk of code to "polls/models.py". (I copied/pasted so 
> I know it's correct.)
>
> 
> from django.db import models
>
>
> class Question(models.Model):
> question_text = models.CharField(max_length=200)
> pub_date = models.DateTimeField('date published')
>
>
> class Choice(models.Model):
> question = models.ForeignKey(Question, on_delete=models.CASCADE)
> choice_text = models.CharField(max_length=200)
> votes = models.IntegerField(default=0)
> 
>
>
> Then I ran the following command:
>
> 
> LITTLEBLACK:www samktan$ python3 manage.py makemigrations polls
> Migrations for 'polls':
>   polls/migrations/0001_initial.py
> - Create model Question
> - Create model Choice
> 
>
> Which is missing one line compared to the tutorial:
>
> - Add field question to choice
>
>
>
> Now when I run this command:
>
> 
> LITTLEBLACK:www samktan$ python3 manage.py sqlmigrate polls 0001
> BEGIN;
> --
> -- Create model Question
> --
> CREATE TABLE `polls_question` (`id` integer AUTO_INCREMENT NOT NULL 
> PRIMARY KEY, `question_text` varchar(200) NOT NULL, `pub_date` datetime(6) 
> NOT NULL);
> --
> -- Create model Choice
> --
> CREATE TABLE `polls_choice` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY 
> KEY, `choice_text` varchar(200) NOT NULL, `votes` integer NOT NULL, 
> `question_id` integer NOT NULL);
> ALTER TABLE `polls_choice` ADD CONSTRAINT 
> `polls_choice_question_id_c5b4b260_fk_polls_question_id` FOREIGN KEY 
> (`question_id`) REFERENCES `polls_question` (`id`);
> COMMIT;
> 
>
> It is missing the "on delete cascade" clause, which I suspect it caused by 
> the missing line above.
>
> I have confirmed in MySQL that the "on delete cascade" clause is 
> definitely missing.
>
> 
> mysql> show create table `polls_choice`;
>
> +--+-+
> | Table| Create Table 
> 
> 
> 
> 
> 
>|
>
> +--+-+
> | polls_choice | CREATE TABLE `polls_choice` (
>   `id` int(11) NOT NULL AUTO_INCREMENT,
>   `choice_text` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
>   `votes` int(11) NOT NULL,
>   `question_id` int(11) NOT NULL,
>   PRIMARY KEY (`id`),
>   KEY `polls_choice_question_id_c5b4b260_fk_polls_question_id` 
> (`question_id`),
>   CONSTRAINT `polls_choice_question_id_c5b4b260_fk_polls_question_id` 
> FOREIGN KEY (`question_id`) REFERENCES `polls_question` (`id`)
> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci |
>
> 

Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-06-28 Thread Jasmine Smith
Looking into, will get back to you soon. Thanks.

On Thu, Jun 27, 2019 at 8:15 PM Rudy Quiroga Gamboa 
wrote:

> Hi, I have the same problem, did you find the problem or the solution ?
>
>
> El martes, 28 de mayo de 2019, 20:44:44 (UTC-4), K Tan escribió:
>>
>> Hi, everyone,
>>
>> This is my first time using Django and I think I'm missing something or
>> there is a bug. I am following the instructions on (
>> https://docs.djangoproject.com/en/2.2/intro/tutorial02/) and I've just
>> added the following chunk of code to "polls/models.py". (I copied/pasted so
>> I know it's correct.)
>>
>> 
>> from django.db import models
>>
>>
>> class Question(models.Model):
>> question_text = models.CharField(max_length=200)
>> pub_date = models.DateTimeField('date published')
>>
>>
>> class Choice(models.Model):
>> question = models.ForeignKey(Question, on_delete=models.CASCADE)
>> choice_text = models.CharField(max_length=200)
>> votes = models.IntegerField(default=0)
>> 
>>
>>
>> Then I ran the following command:
>>
>> 
>> LITTLEBLACK:www samktan$ python3 manage.py makemigrations polls
>> Migrations for 'polls':
>>   polls/migrations/0001_initial.py
>> - Create model Question
>> - Create model Choice
>> 
>>
>> Which is missing one line compared to the tutorial:
>>
>> - Add field question to choice
>>
>>
>>
>> Now when I run this command:
>>
>> 
>> LITTLEBLACK:www samktan$ python3 manage.py sqlmigrate polls 0001
>> BEGIN;
>> --
>> -- Create model Question
>> --
>> CREATE TABLE `polls_question` (`id` integer AUTO_INCREMENT NOT NULL
>> PRIMARY KEY, `question_text` varchar(200) NOT NULL, `pub_date` datetime(6)
>> NOT NULL);
>> --
>> -- Create model Choice
>> --
>> CREATE TABLE `polls_choice` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY
>> KEY, `choice_text` varchar(200) NOT NULL, `votes` integer NOT NULL,
>> `question_id` integer NOT NULL);
>> ALTER TABLE `polls_choice` ADD CONSTRAINT
>> `polls_choice_question_id_c5b4b260_fk_polls_question_id` FOREIGN KEY
>> (`question_id`) REFERENCES `polls_question` (`id`);
>> COMMIT;
>> 
>>
>> It is missing the "on delete cascade" clause, which I suspect it caused
>> by the missing line above.
>>
>> I have confirmed in MySQL that the "on delete cascade" clause is
>> definitely missing.
>>
>> 
>> mysql> show create table `polls_choice`;
>>
>> +--+-+
>> | Table| Create Table
>>
>>
>>
>>
>>
>>|
>>
>> +--+-+
>> | polls_choice | CREATE TABLE `polls_choice` (
>>   `id` int(11) NOT NULL AUTO_INCREMENT,
>>   `choice_text` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
>>   `votes` int(11) NOT NULL,
>>   `question_id` int(11) NOT NULL,
>>   PRIMARY KEY (`id`),
>>   KEY `polls_choice_question_id_c5b4b260_fk_polls_question_id`
>> (`question_id`),
>>   CONSTRAINT `polls_choice_question_id_c5b4b260_fk_polls_question_id`
>> FOREIGN KEY (`question_id`) REFERENCES `polls_question` (`id`)
>> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci |
>>
>> +--+-+
>> 1 row in set (0.00 sec)
>> 
>>
>> Can someone tell me what I'm doing wrong?
>>
>>
>> --
>>
>> / per ardua ad astra /
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to 

  1   2   3   4   5   6   7   >