Re: Django App - Database connection

2019-06-14 Thread Dave Edwards
These are the settings to use in settings.py:

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'DB-NAME',
'USER': 'USER',
'PASSWORD':'PASSWORD',
'HOST':'HOST',
'PORT': 'PORT',
'OPTIONS': {'charset': 'utf8'}

}
}
*Dave Edwards*


Email   > d...@dwedigital.com
Mobile > 07788275564
Online > www.dwedigital.com

DWE Digital Ltd. Registered in Jersey, Channel Islands
Company Registration Number: 116942
---
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
Any dissemination, distribution or copying of this message or any files
transmitted with it by an unauthorised recipient is strictly prohibited.


On Fri, 14 Jun 2019 at 14:08, Sipum Mishra  wrote:

> Hi sapna,
>
> Check your settings.py file and search for DATABASE there you can get a
> link which is commented. Copy n paste that url and that will take you to
> documentation page where you can get what needs to be imported in DATABASE.
>
> On Fri, 14 Jun, 2019, 4:45 PM Sapna Dhage,  wrote:
>
>>
>> Hello,
>>
>> I'm implementing Django application using PostgreSQL. However, I'm not
>> able to configure database connection string.
>>
>> Any idea how do I configure database connection and where should I
>> mention database connection string?
>>
>> Thank you,
>> Sapna
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "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 django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/35a7d002-cf8a-4924-8b8b-9df35419b1f2%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/35a7d002-cf8a-4924-8b8b-9df35419b1f2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGHZBzyK69aoq02n6dLvYpvJLc5aTxH_RZOOCma3kgqY-ZCLBQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGHZBzyK69aoq02n6dLvYpvJLc5aTxH_RZOOCma3kgqY-ZCLBQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP_enV76EDCS9j7ADcaoPmPHyc5FsJ1Ujmvzy3cwbTQPDe5uSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django App - Database connection

2019-06-14 Thread Dave Edwards
Apologies that was from when I used MySQL, please use the following for
postgres:

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'HOST':'HOST',
'PORT':'PORT',
'USER':'USERNAME',
'PASSWORD':'PASSWORD',
'NAME': 'DATABASE NAME',
}
}
*Dave Edwards*


Email   > d...@dwedigital.com
Mobile > 07788275564
Online > www.dwedigital.com

DWE Digital Ltd. Registered in Jersey, Channel Islands
Company Registration Number: 116942
---
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
Any dissemination, distribution or copying of this message or any files
transmitted with it by an unauthorised recipient is strictly prohibited.


On Fri, 14 Jun 2019 at 14:21, Dave Edwards  wrote:

> These are the settings to use in settings.py:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'DB-NAME',
> 'USER': 'USER',
> 'PASSWORD':'PASSWORD',
> 'HOST':'HOST',
> 'PORT': 'PORT',
> 'OPTIONS': {'charset': 'utf8'}
>
> }
> }
> *Dave Edwards*
> 
>
> Email   > d...@dwedigital.com
> Mobile > 07788275564
> Online > www.dwedigital.com
>
> DWE Digital Ltd. Registered in Jersey, Channel Islands
> Company Registration Number: 116942
> ---
> This e-mail and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they are
> addressed. Any dissemination, distribution or copying of this message or
> any files transmitted with it by an unauthorised recipient is strictly
> prohibited.
>
>
> On Fri, 14 Jun 2019 at 14:08, Sipum Mishra  wrote:
>
>> Hi sapna,
>>
>> Check your settings.py file and search for DATABASE there you can get a
>> link which is commented. Copy n paste that url and that will take you to
>> documentation page where you can get what needs to be imported in DATABASE.
>>
>> On Fri, 14 Jun, 2019, 4:45 PM Sapna Dhage,  wrote:
>>
>>>
>>> Hello,
>>>
>>> I'm implementing Django application using PostgreSQL. However, I'm not
>>> able to configure database connection string.
>>>
>>> Any idea how do I configure database connection and where should I
>>> mention database connection string?
>>>
>>> Thank you,
>>> Sapna
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "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 django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/35a7d002-cf8a-4924-8b8b-9df35419b1f2%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/35a7d002-cf8a-4924-8b8b-9df35419b1f2%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "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 django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAGHZBzyK69aoq02n6dLvYpvJLc5aTxH_RZOOCma3kgqY-ZCLBQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAGHZBzyK69aoq02n6dLvYpvJLc5aTxH_RZOOCma3kgqY-ZCLBQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP_enV5KDAVMTpyEsh3ipYBNT7MYTpjXrBvag%2B6oQAA4rpqXrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ValueError at /admin/

2019-06-16 Thread Dave Edwards
What's in your urls.py at the project level? Do you have a copy of the
urls.py that sit within the deleted app folder?

On Sun, 16 Jun 2019, 09:09 anchal agarwal, 
wrote:

> I recently deleted one of my app from my website directory. For deleting
> app I removed that app name from settings.py also I removed it's folder
> I then applied python manage.py migrate
> But now i am unable to access my admin, it's giving an error
>
> ValueError: invalid literal for int() with base 10: 'admin'
>
> Internal Server Error: /favicon.ico/
> Any help would be greatly appreciated
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMT%3DisX4EEYjRDG0REECdjmKFiYvex8dHHdM9szqqSAyT%3Dd3pg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP_enV6LHhQqgge-2bfyZCyQRmoFKKta0EV8k4DUH-ZJioQvkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying a static website

2019-07-03 Thread Dave Edwards
If you want a simple way that manages all the deployment then use
https://www.zappa.io/

Be warned- the IAM permissions for storage can be a pain (as with using
most of AWS)!

On Thu, 4 Jul 2019, 07:15 Nick Sarbicki,  wrote:

> The best way to deploy a static website is certainly on a bucket like s3.
> Heroku is massive overkill for this.
>
> Django is also unnecessary to host a static website. I do have a CMS that
> generates and uploads static websites built with Django, but not django
> actually hosting the site.
>
> On Thu, 4 Jul 2019, 04:29 Aldian Fazrihady,  wrote:
>
>> I have never used heroku. By the way, I am using 500 MB of S3 space. I am
>> only billed 1 cent per month.
>>
>> On Thu, Jul 4, 2019 at 9:45 AM Django Dojo  wrote:
>>
>>> Thanks, but what do you think about Heroku?
>>>
>>> On Wednesday, July 3, 2019, Aldian Fazrihady  wrote:
>>>
 You can also use Amazon S3 to host static website.

 Regards,

 Aldian Fazrihady
 http://aldianfazrihady.com

 On Thu, 4 Jul 2019, 09:25 Django Dojo,  wrote:

> I’m just learning Django and was trying it out, but is it better to
> deploy just using simple html, css and launch using a ftp
>
> On Wednesday, July 3, 2019, Aldian Fazrihady 
> wrote:
>
>> Why does a static website need help from a Python web app framework
>> such as Django?
>>
>> On Thu, 4 Jul 2019, 08:47 Django Dojo,  wrote:
>>
>>> I’ve created a static website in Django and i would like to know the
>>> cheapest and best way to design ploy 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/c2c4536d-6de9-46c4-9c37-4a233f174803%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "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 django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAN7EoAabcZpKK_fDfaoHsHikdnmjJoLTkoz8cS-Yx%2BAzBRhxvw%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google
> Groups "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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANO9Ro_OJe1ykjVFhZrYr-bSTDzN6rOgY83FRT1LYYMVRAqTXA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 You received this message because you are subscribed to the Google
 Groups "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 django-users@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAN7EoAb9BK-M%2BM1wT5VpQuCQVyHXHzyVg44LyiZmOy39eKOqmw%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "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 django-users@googlegroups.com.
>>> Visit th