Overriding settings in Django when used by the models

2018-12-30 Thread אורי
https://stackoverflow.com/questions/53953444/overriding-settings-in-django-when-used-by-the-models We are using Django for Speedy Net and Speedy Match (currently Django 1.11.17, we can't upgrade to a newer version of Django because of one of our

Re: STATIC FILES not working for admin site, projects and apps on DJANGO

2018-12-30 Thread Joel Mathew
Your site has more wrong with it than just static css. Your html is appearing as html. You need to unescape them in template or check your tags On Mon, 31 Dec, 2018, 1:10 AM abel otugeme I have done all that i used the docs first and it did not work. Then i > tired this video

Re: STATIC FILES not working for admin site, projects and apps on DJANGO

2018-12-30 Thread Okware Aldo
I can have a look if you give me access to the code, we could do teamviewer, or repo. Let me know. On Sun, 30 Dec 2018, 22:40 abel otugeme, wrote: > I have done all that i used the docs first and it did not work. Then i > tired this video https://www.youtube.com/watch?v=YH-ipgxlJzs > > On

Re: django admin site change_related_template_url problem

2018-12-30 Thread Ryan Nowakowski
You're better off not using the HTML rewriting features of your reverse proxy. Instead configure Django to use the reverse proxied url prefix for all it's URLs. On December 29, 2018 9:03:39 AM CST, Zhe Li wrote: >Hi, > >I am having issues with django installed on a server reversed proxied >to

Re: STATIC FILES not working for admin site, projects and apps on DJANGO

2018-12-30 Thread abel otugeme
I have done all that i used the docs first and it did not work. Then i tired this video https://www.youtube.com/watch?v=YH-ipgxlJzs On Sun, Dec 30, 2018 at 5:09 PM Lunga Baliwe wrote: > Please have a look at this link > https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/modwsgi/ on >

Re: template location for django-registration framework

2018-12-30 Thread Yuval Bachrach
First: thank you! Yes I did search before asking I was trying to place the templates under my project tree (rather than under "Python37-32\Lib\site-packages\django\contrib\admin\templates\registration" and could not make it work. Per you advice I also tried putting the template file at the above

Re: STATIC FILES not working for admin site, projects and apps on DJANGO

2018-12-30 Thread Lunga Baliwe
Please have a look at this link https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/modwsgi/ on how to setup static files. You may also want to run python manage.py collectstatic On Sun, Dec 30, 2018 at 4:31 AM abel otugeme wrote: > This is how a site looks when i open it up in my

Re: MySQL accepts 0 for a primary key but Django does not

2018-12-30 Thread Simon Charette
Hello Derek, Not sure of your custom module structure but you'll want to point ENGINE to 'custom' and not 'custom.base' just like you were pointing to 'django.db.backends.mysql' and not 'django.db.backends.mysql.base'. Cheers, Simon Le dimanche 30 décembre 2018 04:01:59 UTC-5, Derek a écrit :

Re: MySQL accepts 0 for a primary key but Django does not

2018-12-30 Thread Derek
Hi Simon Much appreciated. However, I am obviously doing something wrong. If I save that code into a file called "base.py" stored in my 'custom' app, and then change my settings file to have: DATABASES = { 'default': { 'ENGINE': 'custom.base', # WAS: 'django.db.backends.mysql',