Where did admin CSS file "ie.css" go after Django 1.8?

2019-06-17 Thread Robert F.
I'm in the process of upgrading a large Django project from 1.8 to 2.2. Currently, I'm at 1.9.13. My project has a couple of admin forms that utilize a Django CSS file admin/css/ie.css. In Django 1.8, that file was located here: django/contrib/admin/static/admin/css/ie.css But in Django 1.9

Re: Where did admin CSS file "ie.css" go after Django 1.8?

2019-06-17 Thread Robert F.
I've discovered the problem. The release notes for Django 1.9 say, "The admin no longer supports Internet Explorer 8 and below, as these browsers have reached end-of-life." Thus, this file is no longer included in Django. On Monday, June 17, 2019 at 12:00:08 PM UTC-7, Robert F.

Re: CSRF verification failed when I use smart phone

2019-06-25 Thread Robert F.
Make sure you aren't blocking cookies on whatever device is giving you problems. You'll get this error if you are blocking them. On Tuesday, January 6, 2015 at 1:09:46 AM UTC-8, Sugita Shinsuke wrote: > > Hello. > > When I use Django via my smart phone Android and iOS. > The error sometimes occu

Vim plugin that does Django code completion?

2017-07-07 Thread Robert F.
Is there a Vim plugin that does code completion for Django? I'd like to be able to type something like "foobar = models." and hit Tab and see a list of classes like CharField or Foreign key. Alternately, I'd be OK with entering an abbreviation that would bring up the proper code snippet. The

Re: Vim plugin that does Django code completion?

2017-07-07 Thread Robert F.
n easily become complicated and confusing to a Django noob like me. I'm not really sure what the optimal development environment setup should be. On Friday, July 7, 2017 at 10:46:58 AM UTC-7, James Schneider wrote: > > > > On Jul 7, 2017 8:27 AM, "Robert F." > > wrote: >

Re: Turn off migrations completely in Django 1.7

2017-08-01 Thread Robert F.
I know this is an old topic but I completely agree with Frank. Nothing gives me more headaches and makes me want to move off Django more than migrations. They seldom run smoothly and cause me no end of headaches. I hate them! On Friday, November 20, 2015 at 2:26:59 PM UTC-8, Frank Malina wro

Strategies for Speeding Up Django 1.8 Tests?

2015-09-22 Thread Robert F.
Does anyone have any strategies or techniques for running their unit tests faster in Django 1.8? My project has seven model modules containing twenty-one models (none of which are very complex). I run my tests using the default Django test runner on a 1.86 GHz Mac laptop with 4 GB of RAM agai

Good Django libraries to read to really understand class-based views?

2021-01-11 Thread Robert F.
Are there any Django libraries that make extensive use of class-based views that I might study if I want to gain an in-depth understanding of how to use them? The Django documentation is OK at explaining what they are and how they work but most of the examples are very trivial in nature. I'd lik

Re: Good Django libraries to read to really understand class-based views?

2021-01-12 Thread Robert F.
yond that supports more specific use cases that usually > simplifies handling the request - i.e. templates - and each of those > provides its own set of patterns. > > HTH, > /d > > > On 12 January 2021 at 02:15:11, Robert F. (robert@gmail.com) wrote: > > Are there

How to programmatically set the model when using Django CreateView?

2021-01-29 Thread Robert F.
I am trying to programmatically set the model for a Django class-based view that inherits from CreateView and displays a form for creating a 'member' object. My problem is that my template is not displaying the form itself. Note that I override the 'get' method to determine what model the view

Why is this acting like a permanent redirect?

2021-02-22 Thread Robert F
I have a Django view that I redirect a user to after they login: # settings.py LOGIN_REDIRECT_URL = 'login-redirect' # account/urls.py urlpatterns = [ path('', include('django.contrib.auth.urls')), ... ] # home/views.py from account.models import Member d

Re: Why is this acting like a permanent redirect?

2021-02-23 Thread Robert F
redirect') here after import > django.urls, but - untested. > > Regards, > David > > On 23 February 2021 at 07:07:52, Robert F (robe...@gmail.com) wrote: > > I have a Django view that I redirect a user to after they login: > > # settings.py > LOGIN_REDIRECT_

Why can't Nginx find Django's static files?

2020-02-20 Thread Robert F.
I'm trying to understand how static files are served up by Django using a project I've created on my Mac using Django 3, Gunicorn, and Nginx. The website serves up templates correctly except that the templates can't see my CSS stylesheet. When I go to a page, for example ```127.0.0.1:8000/app

Re: Why can't Nginx find Django's static files?

2020-02-21 Thread Robert F.
Thanks but I'm not interested in using Whitenoise. On Friday, February 21, 2020 at 6:22:40 AM UTC-8, Jody Fitzpatrick wrote: > > Take a look at whitenoise for django, this should help you. > > On Thursday, February 20, 2020 at 11:35:51 AM UTC-5, Robert F. wrote: >> >

Re: Why can't Nginx find Django's static files?

2020-02-21 Thread Robert F.
On Thursday, February 20, 2020 at 8:52:31 AM UTC-8, Stephen J. Butler wrote: > > Django only serves up static files itself when run using runserver. This > is meant for development and not production use. When you run it through > gunicorn the Django framework won't serve up static files. That'