Questions tagged [django-1.11]

Django 1.11 is a version of the Django framework, released April 2017. It is a Long Term Support (LTS) release, and will be supported until at least April 2020. Please only use this tag if your question relates specifically to this version.

Django 1.11 requires Python 3.4, 3.5, or 3.6. It is the last version of Django to support Python 2.

Here are some of the salient features of Django 1.11:

Django-1.11 was released in April 2017 as a long-term support release and will be supported until April 2020.

324 questions
0
votes
0 answers

Get 500 error on rhel 7 django apache mod_wsgi configuration

I know something similar to this has been answered but I do not wish to put my django project in my /var/www/html directory as it is not considered best practices My error logs read [Sun Aug 06 07:57:16.772735 2017] [mime_magic:error] [pid 13686]…
Don Davis
  • 105
  • 6
0
votes
1 answer

Django 1.11 - How to use height_field and width_field with ImageField

I've the defined the following model which it's used in my Django application for storing the images with different dimensions. class Image(models.Model): def _img_path(instance, filename): # file will be uploaded to…
Fabio
  • 1,272
  • 3
  • 21
  • 41
0
votes
1 answer

Django1.11 - Show media on localhost

I'm having hard time to display media on local system.. the problem is that: {{ producer.img.url }} gives me a url path relative to the page I'm browsing, so it always fails to locate the file. It actually prints something…
davideghz
  • 3,596
  • 5
  • 26
  • 50
0
votes
1 answer

Custom "authentication_form" does not apply bootstrap CSS

I'm attempting to apply bootstrap to a django login form. I have scoured google for hours and pretty much everyone is saying the same thing, which is to set the custom authentication_form in urls.py, override the username and password fields in…
0
votes
2 answers

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fkyx6m64/misaka/

I am using django 1.11 on fedora25. I am using virtual environment and while trying to install misaka: pip install misaka I got the following error: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fkyx6m64/misaka/ Here…
myk
  • 11
  • 4
0
votes
0 answers

Internal Server Error when upgrading from django 1.9 to django 1.11

I have upgraded from django 1.9 to django 1.11. As I run python manage.py runserver after the upgrade I got an error due to the import of patterns. I realised it made sense, since patterns is depracted. So I changed my urls.py from if…
J0ANMM
  • 7,849
  • 10
  • 56
  • 90
0
votes
3 answers

Django: calling objects from db returns

I'm trying to get a very simple blogging application up, with all of the posts in my db displayed at once. However, my four posts are presented on the page as , ,
Adam Silver
  • 93
  • 2
  • 10
0
votes
2 answers

Pass a list from a view to a form

I have a view in my views.py and a form in my forms.py. I need to pass my list[] of my view to my MultipleChoiceField of my form. This is my code, I certainly miss something ... Many Thanks views.py def view_favorite(request): media =…
user6089877
0
votes
1 answer

aggregate value following relationships

I have the following models: class Client(models.Model): ... class Document(models.Model): client = models.ForeignKey(Client, related_name='clients') ... class MainVoiceActual(models.Model): doc = models.ForeignKey(Document,…
davideghz
  • 3,596
  • 5
  • 26
  • 50
0
votes
2 answers

Get ManyToMany objects

I'm building a simple application to learn Django. Basicly a portfolio can have multiple companies in it. I want to display the companies of a certain portfolio of the logged in user. Models.py class UserPortfolio(models.Model): name =…
Sharpless512
  • 3,062
  • 5
  • 35
  • 60
0
votes
1 answer

Django-admin creates a django 1.8 project, but I installed django 1.11.2

I'm a beginner in django.. I am trying to build an application using django 1.11.2 and python 3.5.2, both are installed. I have python 2.7 installed too. I have executed this command: django-admin startproject Application1 to create a new…
Angel Pineda
  • 177
  • 2
  • 13
0
votes
1 answer

Dynamic checkbox checked

I have a form. It displays for the user a checkbox list. So the user can check any checkbox according to his choice. This system is working. However, I would like to indicate to the user what is the selection that he did before. The simpliest…
user6089877
0
votes
1 answer

Should I put the gmap geocode to calculate the lat/lng from an address in the view.py or in the model.py?

My goal is to: take an address submitted by a user using generic python forms take the address data and calculate the lat/lng for the address store the address data and the lat/lng data in the same row of a database I've been told that the geocode…
ClydeCup
  • 13
  • 6
0
votes
1 answer

Django 1.11 - python 3.4 // not able to createsuperuser

**(geoenv) C:\Users\Nitish\Desktop\Mtech Project\Stage 8 database start\geosite>python manage.py createsuperuser You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth,…
Nitish Kumar Pal
  • 2,738
  • 3
  • 18
  • 23
0
votes
1 answer

Django 1.11 - Password reset

I have an issue with a password modification form. I don't want to use the password reset function from Django. def view_password(request): if request.user.is_authenticated(): if request.method == 'POST': form =…
user6089877