Data dodania Pytanie
2017-05-27 18:05 python 3.4 - django 1.11 »
I am new to django, after many tries to find a pip install package for linking mysql to django, I have been able to successfully install it using pip3...
(1) odpowiedzi
2017-05-27 02:05 Proper model relationship for Player and Prizes? »
I seem to have a mental impediment when it comes to abstracting model relationships. I want to have prizes available to players. Not all players have...
(2) odpowiedzi
2017-05-26 19:05 Django save to DB: TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple' »
I have a problem in def that save data into database. @staticmethod def _save(account, proxy, proxy_provider_id, period, ...
(1) odpowiedzi
2017-05-26 15:05 Python regex to match SQL INSERT statements »
I am working on a django website, and I am trying to use the data dumped from a legacy database to create YAML fixtures for django. I am writing a cr...
(3) odpowiedzi
2017-05-26 00:05 Django admin unregister Sites »
I've been trying to unregister the admin for sites in django by doing the following: from django.contrib.sites.models import Site admin.site.unregis...
(1) odpowiedzi
2017-05-25 22:05 How to avoid race condition in updating model field to newest timestamp »
I need to keep track of the most recent time a user was mentioned in a post, and update this field each time a new post is created based on it's post ...
(1) odpowiedzi
2017-05-25 20:05 Django 1.11 Horizontal choice field »
I've just updated from Django 1.10 to 1.11.1. In my template new_house_edit.html I have the following: {{ form.rating }} models.py contain the foll...
(2) odpowiedzi
2017-05-25 19:05 Cannot resolve keyword 'i' into field. Choices are: id, joined_on, user, user_id »
I do not understand what I am doing wrong. I am trying to update a model through the form and I have been following tutorial online they all point in ...
(1) odpowiedzi
2017-05-24 21:05 Django migration 11 million rows, need to break it down »
I have a table which I am working on and it contains 11 million rows there abouts... I need to run a migration on this table but since Django trys to ...
(1) odpowiedzi
2017-05-24 13:05 How can I convert all SMALLINT columns in PostgreSQL database to BOOLEAN? »
I migrated my Django website database from MySQL to PostgreSQL using a third party tool pgloader. But since MySQL stores BOOLEAN data as TINYINT by de...
(1) odpowiedzi
2017-05-24 00:05 Using the Django sites framework in the Django admin »
I'm implementing a solution using the Django sites framework for the first time, and am not sure whether there is a better way of implementing it on t...
(1) odpowiedzi
2017-05-23 16:05 Django Write Authentication Redirect for Blackboxed Route URLs »
I'm using a django library called django-dashing that has a predefined set of urls that render a dashboard. I import them like this urlpatterns = [ ...
(3) odpowiedzi
2017-05-23 14:05 I'm getting error when trying to import reserve from urlresolver »
when i try to import reverse in my models.py file with the following line: from django.core.urlresolvers import reverse i'm getting this error :Import...
(2) odpowiedzi
2017-05-23 10:05 how to write custom command test statement that takes in an argument and then does file editing? »
I have a custom command in my Django 1.10 called upload_pics_for_variants.py What it does is it takes in an argument about a directory path and then ...
(1) odpowiedzi
2017-05-22 06:05 How correctly save multiple files in django? »
I need form where user can create article with several images. I use django-multiupload app for image field. I can select several images but when I tr...
(2) odpowiedzi
2017-05-22 03:05 Applying bootsrap and custom css to {{form}} elements in django »
I am trying to apply CSS to individual {{form}} fields on my html template. I am referencing this solved question: CSS styling in Django forms` usi...
(3) odpowiedzi
2017-05-22 02:05 Charts.js 2.5 does not display in django »
I am trying to get some charts displaying in my main view with Django version 1.11. I did some test to check if the JS libraries were working correctl...
(1) odpowiedzi
2017-05-21 22:05 Diagnosing AttributeError in Django view »
In a Django project of mine, I've written simple webhook logic that pings a url for certain payload if some condition is met. Here's the code: @csrf_...
(1) odpowiedzi
2017-05-21 16:05 Django time convert format »
I am trying to convert time into specific format using following code: datetime.datetime.strptime(timezone.now() + timedelta(days=14), '%Y-%m-%dT%H:%...
(2) odpowiedzi
2017-05-21 14:05 Elasticsearch dsl Term Filter not working with string Field »
I am trying to apply term filter elastic search index data using elasticsearch_dsl python client but it's not working with string field. This is my E...
(1) odpowiedzi
2017-05-21 12:05 Django CSRF Verification failed for admin panel »
I started a fresh Django 1.11 project with one app, one model and one admin panel. Locally, everything works. When I deploy it to Amazon EC2 and try t...
(1) odpowiedzi
2017-05-20 23:05 Somehow import Django object inside a js script »
I would like to access a django object inside a js script. In other words, I want the output of {{ contract.request.customer.fax }} with something lik...
(0) odpowiedzi
2017-05-20 13:05 INNER JOIN with DJANGO framework »
Two weeks I try to make a JOIN with django class Groupe(models.Model): nomgroupe = models.CharField(max_length=50) def __str__(self): re...
(1) odpowiedzi
2017-05-20 05:05 object has no attribute 'get_notification_display' »
I am trying to display human readable label of choicefield. def reminder(request, pk=None): reminder = get_object_or_404(Reminder, pk=pk) pr...
(2) odpowiedzi
2017-05-19 12:05 My django query is very slow in givig me data on terminal »
I have a users table which has 3 types of users Student, Faculty and Club and I have a university table. What I want is how many users are there in th...
(2) odpowiedzi
2017-05-19 11:05 How can I filter by date to get this week vs previous week Counts from a QuerySet? »
I have the following two annotated QuerySets which I have generated separately by extracting this_wk and prev_wk from a data set, then performing the ...
(2) odpowiedzi
2017-05-19 11:05 Django: Logging in manage.py causes misleading exception and traceback »
In manage.py file I want to send an email to admins each time a management command fails. The following code manage.py import logging logger = log...
(1) odpowiedzi
2017-05-18 14:05 Django Noreverse Error for below code »
I'm trying to set search navbar to work on my website but I keep getting this error which I do not to decode. I'm using django 1.8 on Python 2.7 My ...
(2) odpowiedzi
2017-05-18 12:05 Django class based views queryset model isn't defined »
I am producing a web app in Django that stores and sorts courses. The issue I am having is that the query set is not recognizing the model. I have man...
(2) odpowiedzi
2017-05-18 09:05 Django 1.11.1 No SessionID generated on The Project »
I am trying to build a app using django. I created the app using django-admin startproject. On viewing the page in the browser no session cookie is se...
(1) odpowiedzi
2017-05-17 21:05 Python Django Rest Framework UnorderedObjectListWarning »
I upgraded from Django 1.10.4 to 1.11.1 and all of a sudden I'm getting a ton of these messages when I run my tests: lib/python3.5/site-packages/rest...
(1) odpowiedzi
2017-05-17 20:05 Fail to push to Heroku: /app/.heroku/python/bin/pip:No such file or directory »
I am trying to push a Django project to Heroku, but it keeps telling me that the following: /app/.heroku/python/bin/pip: No such file or directory ...
(3) odpowiedzi
2017-05-17 11:05 Has anyone integrated Sage One with django framework? »
I wanted to integrate Sage One with my django application. But, from https://developers.sageone.com/ I got to know that it supports only C#, Java, PHP...
(1) odpowiedzi
2017-05-16 16:05 Is it possible to reload Django application without stopping it? »
I have a Django 1.11 Software as a service (Saas) application with one single postgresql database. When a new User is created, it automatically create...
(0) odpowiedzi
2017-05-16 15:05 django prefetch_related and select_related on parent table »
I have the following db structure: catogory id name parent_id class Category(models.Model) name = models.CharField(max_length=400, blank=...
(1) odpowiedzi