Data dodania Pytanie
2017-01-11 20:01 Why does MySQL treat Japanese alphabets hiragana and katakana the same, and how can you make it compatible with Django? »
This question was partially addressed here, but I wanted to ask more specifically: MySQL difficulties - Hiragana and Katakana are treated as the sam...
(0) odpowiedzi
2017-01-11 20:01 What is the new version of csrf in Django 1.10 »
I'm following a tutorial and getting a TypeError with this line: c.update(csrf(request)) This is the full view from django.shortcuts import render...
(1) odpowiedzi
2017-01-11 11:01 pip install Django on python3.6 »
If I run pip install Django I get Requirement already satisfied: Django in /usr/local/lib/python2.7/dist-packages I'd like to use python3.6 in...
(5) odpowiedzi
2017-01-11 10:01 Ordering dictionary in context Django »
I looked at this thread, with an example of sorting dictionaries. I have a dictionary of programme objects where the key is a programme object and th...
(2) odpowiedzi
2017-01-11 08:01 CSRF Failed: CSRF token missing or incorrect after upgrading to django 1.10 from 1.8 »
I am sending a post request via AJAX to api (both the current page and api are under the same host). I am getting csrf failed: csrf token missing or i...
(1) odpowiedzi
2017-01-11 08:01 add link to Actions in Django Admin »
In Django admin I have a print button that sends information to the template. I want to add to the Action dropdown link where I checkboxes select the...
(1) odpowiedzi
2017-01-10 16:01 Django - Optimize queries with select_related() »
I have the following model. class Car(models.Model): owner = models.ForeignKey('Driver') class Country(models.Model) name = models.CharField...
(1) odpowiedzi
2017-01-10 15:01 Easy way to set on_delete across entire application »
I've been using the -Wd argument for Python and discovered tons of changes I need to make in order to prepare my upgrade to Django 2.0 python -Wd man...
(1) odpowiedzi
2017-01-10 12:01 How can I exclude a view from the API documentation? »
I use django-rest-framework (DRF) to provide the REST API of a site of mine. From what I understand, the automatic generation of API documentation rel...
(1) odpowiedzi
2017-01-10 08:01 How to store data from html form to postgres database using Django 1.10? »
I am new to Django , i just created a simple form to store the user input to database, but the data is not stored while clicking submit button, when i...
(2) odpowiedzi
2017-01-09 19:01 Django login "?next=" only saving one GET parameter »
I'm using Django 1.10 and Python Social Auth 0.1.0. I use Django login view, having only added the template with: <a href="{% url 'social:begin' ...
(2) odpowiedzi
2017-01-09 11:01 Repeat fields in django forms »
I would like to have a form containing three times two related fields (A name, and some ip address as a simple regex field) name1 name1 IPs ...
(2) odpowiedzi
2017-01-09 07:01 Django How to stop the execution of a function »
I am trying to call a python function by Ajax. I want to stop the execution of that function. I have tried to refresh the page but it doesn't stop. Wh...
(1) odpowiedzi
2017-01-08 14:01 Getting message part of serialized._errors when defining a unique constraint for REST »
Based on this post, I put a uniqueness constraint on my serializer like this: class UserSerializer(serializers.ModelSerializer): email = serializ...
(0) odpowiedzi
2017-01-08 13:01 Simplified/PHP/CGI alike django application deployment »
what this is about I am looking for a possibility to simplify the deployment of django applications on my server. Currently I am using one uWSGI inst...
(1) odpowiedzi
2017-01-08 13:01 Dedicated web service for web app (Python/Django) »
Let's assume that I want to create a simple todo list web application. I am thinking about creating RESTful web services which will be used my the web...
(1) odpowiedzi
2017-01-08 01:01 Allocate ranges of primary key integers »
Given RangeA of auto-incrementing primary key integers (1 to 32767) and RangeB (32768 to 2147483647). If a condition is true, save an object with a pr...
(1) odpowiedzi
2017-01-07 22:01 How to show the last message of each user to user conversations to keep a chat history? »
I'm creating a private user to user chat, in order to chat with someone the connected user has to type the username of the user with whom he wants to ...
(2) odpowiedzi
2017-01-07 08:01 How to make a script to insert data in my default sqlite3 database django »
I have defined my model and all in Django and if a user is registering via my application the user is well register in the database. The problem is I ...
(2) odpowiedzi
2017-01-07 08:01 Problems with Newlines using django on a Windows Server in France »
Problem: My Django app is introducing a CR before each CRLF when writing to a file a string which has been read in via render_to_string. In my templat...
(1) odpowiedzi
2017-01-06 22:01 PyCharm is changing the default encoding in my Django app »
I am running into an issue where plyplus is erroring out with: File "/Users/FOO/.virtualenvs/ff/lib/python2.7/site-packages/plyplus/grammars/__init...
(1) odpowiedzi
2017-01-06 13:01 How to automatically change model fields in django »
I have a model and I want to know if it is possible to set a condition that triggers a change in the model field. For example, I have a model class B...
(2) odpowiedzi
2017-01-06 10:01 Migration of Django field with default value to PostgreSQL database »
https://docs.djangoproject.com/en/1.10/topics/migrations/ Here it says: "PostgreSQL is the most capable of all the databases here in terms of schema ...
(2) odpowiedzi
2017-01-06 10:01 Using Single Celery Server For Multi Django Projects »
I have 3 Separate Django Projects sharing same DB running on the same Machine. What I require is to configure Celery For them. Now my question is: 1....
(1) odpowiedzi
2017-01-05 22:01 Django session causes angular with JWT "token missing or incorrect" error »
Setup An angular application (~1.5) and django with django (1.9.9) rest framework (3.5.3) running on a server with nginx serving the client directly ...
(1) odpowiedzi
2017-01-05 13:01 What is the correct way of doing Django imports ? »
I would like to understand if the there is a correct and accepted way of handling imports in Django? I use following patterns > # import views from...
(1) odpowiedzi
2017-01-05 07:01 django admin does not add objects into manytomany fields »
I have a model to save user post: class Tag(models.Model): name = models.CharField(max_length=255, unique=True) class Post(models.Model): us...
(1) odpowiedzi
2017-01-05 05:01 Django inspectdb skips tables with constraints »
I read a few topics on this, but none really seemed to offer a solution in inspectdb, or an alternative, that permits Django to make models for an exi...
(0) odpowiedzi
2017-01-04 16:01 How to override queryset count() method in Django's admin list »
In order to avoid time consuming and costly exact database count queries, I'd like to override the count() method inside a Django admin class like so:...
(2) odpowiedzi
2017-01-04 15:01 How to filter queryset by ForeignKey and ManyToMany using Q properly? »
I got an error message that says: 'User' object does not support indexing I try to filter queryset using Q to get a query that contains objects ...
(1) odpowiedzi
2017-01-04 02:01 How to allow users to dynamically set the scheduled time for email reports within a web framework? »
Right now, I am using crontab to send out scheduled emails. The way I have been doing it is using a web framework like Django, CakePHP, or Laravel, a...
(1) odpowiedzi
2017-01-03 23:01 Database structure and queries for a Twitter-like posts timeline »
I'm posting this question with a Django tag, because I'm working in this environment, but it's actually more or a generic question: I'd like to show s...
(3) odpowiedzi
2017-01-03 20:01 Filter a contenttype with list of content object's field »
I creating an app where users can post with its related tags: class Tag(models.Model): name = models.CharField(max_length=255, unique=True) clas...
(2) odpowiedzi
2017-01-03 19:01 Django url warning urls.W002 »
Sorry in advance if this question look a bit superfluous but is something that is really bothering me. I have a set of API's written in Django defin...
(3) odpowiedzi
2017-01-03 16:01 502 error django + nginx + gunicorn - connect() recv() »
I've set up a Digital Ocean one-click app (django + nginx + gunicorn are installed and setup https://www.digitalocean.com/community/tutorials/how-to-u...
(2) odpowiedzi