Data dodania Pytanie
2017-08-05 12:08 Is django-channels suitable for real time game? »
I want to make a real time game, I wanted to use NodeJS-SocketIO or aiohttp, Until I met django-channels, then i read its documentation. This is a go...
(0) odpowiedzi
2017-08-05 09:08 Django ORM, how to use values() and still work with choicefield? »
I am using django v1.10.2 I am trying to create dynamic reports whereby I store fields and conditions and the main ORM model information into databas...
(4) odpowiedzi
2017-08-04 23:08 Unit tests fail after a Django upgrade »
I am trying to bring a Django project from version 1.8 to 1.11. Pretty much everything seems to work fine except unit tests. We have a base test class...
(0) odpowiedzi
2017-08-04 22:08 Override accepted renderer in django-rest-framework on exception »
I'm using django-rest-framework to create an endpoint which returns a PDF. However, when there is an error rendering the PDF, I want to return a JSON ...
(1) odpowiedzi
2017-08-04 20:08 Getting Error On First Run With Buildbot »
I'm following the docs trying to get Buildbot working for the first time and I keep getting the same error: 2017-08-04 13:58:45-0400 [-] while starti...
(1) odpowiedzi
2017-08-04 18:08 Django won't use postgres schema properly »
I have a problem with using schema while running tests with django. All tables in my postgres database are in schema, let's name it 'schema'. In my se...
(0) odpowiedzi
2017-08-03 19:08 RuntimeError: Never call result.get() within a task Celery »
I am using celery to send a task to remote server and trying to get the result back. The state of task is constantly updated using update_state method...
(2) odpowiedzi
2017-08-03 18:08 Why am I having this database issue? »
I am working on a Python/Django project, and we need to use two databases. Following the documentation I added a second database like this: DATABASE_...
(2) odpowiedzi
2017-08-03 13:08 how to skip empty get parameter in django »
I have URL like www.example.com/search?param1=abc&param2=xyz&param3=, currently what I'm doing in views is something like this. if ((reque...
(5) odpowiedzi
2017-08-03 09:08 Can not create a post request include crsf in angularjs »
I want to post data to django app, I use angularjs http to post. When I post data, I get a 403 forbidden. So, I changed MY angular script to this: va...
(2) odpowiedzi
2017-08-03 06:08 Python regex search and replace all ocurrences »
I hope you can help me with this. I'm writing a code in python to replace all occurrences on a string that includes: @[username](user: id) I tried w...
(2) odpowiedzi
2017-08-02 15:08 Postgres 8 support with Django 1.8 »
I am upgrading Django from 1.5 to 1.8. My production server is running postgres 8.4.20 but Django 1.8 says it dropped support for Postgres <= 9.0....
(0) odpowiedzi
2017-08-02 15:08 Django datatime field »
I'm reading the PostgreSQL documentation and I see that Postgres does not have a datatime data type but when I run ./manage.py sqlmigrate myapp 0001_i...
(1) odpowiedzi
2017-08-02 12:08 Keeping count of clicks of <a> tag (non-JS) »
In a Django mobile web app I'm building, I'm using the sms html tag in one particular template. I.e. the typical <a href="sms:/* phone number here ...
(1) odpowiedzi
2017-08-02 09:08 Isomorphic fetch and Django view »
I'm sending a POST request to Django view using isomorphic fetch. body : "{"email":"admin@example.com","password":"11"}" credentials : "same-origin" ...
(1) odpowiedzi
2017-08-02 01:08 is there a way to add in more dict after inside an append? django »
Apologize if the title is a bit hard to understand. Not too sure how to explain it within a line. What I want to do is... actually I have this code ...
(2) odpowiedzi
2017-08-01 21:08 Not required many-to-many relationship giving ValueError »
I'm having an issue where I have a non required self many-to-many relationship that when saving a new object to an empty psql db gives me: Edit: This...
(0) odpowiedzi
2017-08-01 19:08 NoReverseMatch Error Django »
I have the following model: class UserPlaceReview(models.Model): place = models.ForeignKey(PlaceReview) review = models.TextField() def ...
(2) odpowiedzi
2017-08-01 12:08 AJAX gets access to Django HttpResponse variables »
I am writing a small test app for a bigger project. I would like to use asynchronously FileReader() to read a txt file from client side and pass the t...
(2) odpowiedzi
2017-07-31 17:07 Django create with calculated field »
Say I have such Django model: class Item(model): category = CharField(...) weight = IntegerField(...) and I want to create new Item with w...
(0) odpowiedzi
2017-07-31 14:07 How to extract hashtag form a user post/string? »
i want to parse a string from a user input that has #hashtag and print out the result together with other words too just the way facebook and twitter...
(1) odpowiedzi
2017-07-31 00:07 How do I get the k nearest neighbors for geodjango? »
Assume that I have the following model: class Person: id = models.BigAutoField(primary_key=True) name = models.CharField(max_leng...
(1) odpowiedzi
2017-07-30 18:07 Django Supervisor FATAl Exited too quickly how to improve? »
I am using supervisor in django my supervisor got error. my server on Ubuntu 16.04.2 x64 i use, nginx, gunicortn, supervisor, postgresql. FATAl...
(1) odpowiedzi
2017-07-30 15:07 select value from jsonfield in queryset »
I have the following situation class MyModel(models.Model): my_field = JSONField(null=True, blank=True) my_field is a JSON field with the follo...
(1) odpowiedzi
2017-07-30 08:07 Django writing a custom decorator »
I am building a forum. When processing urls there is a board id and a board name. The name is for readability and the id is what fetches the board. Th...
(1) odpowiedzi
2017-07-29 20:07 How to get scrambled image file name from models to views django »
I'm trying to get scrambled name of image that will be uploaded and send it to views. In views I know how to get real name of image but how do I get s...
(1) odpowiedzi
2017-07-29 18:07 How to convert Django app to RoR? »
I just found out I can't deploy Django on cPanel so I'm converting it to Ruby on Rails. It's a small app where users can sign up for a bronze, silver ...
(1) odpowiedzi
2017-07-29 11:07 Django 1.11 not recognising Foreign Key model assignments »
I am having an issue with 2 Foreign Key assignments in my django model. See models.py below: from django.db import models from django.contrib.auth.mo...
(1) odpowiedzi
2017-07-29 11:07 Ajax Post Request Error using django 1.10.5 »
Over the last week or so I have been struggling to successfully implement a jQuery ajax request to pass data from a javascript function within my annu...
(1) odpowiedzi
2017-07-28 13:07 Form initial data does not display in template »
I have a form with some fields that have initial values. After run my application, the form appears but its fields initial values don't display, just ...
(1) odpowiedzi
2017-07-28 11:07 Django form test fails »
I'm trying to perform a simple test on my form to confirm that it's not valid when there is no data given and is valid when data is given. When runni...
(1) odpowiedzi
2017-07-28 08:07 Error while displaying image from admin panel in django »
I was trying to upload image from django admin panel and i made the following changes.However, I am getting this error when I tried to load the image...
(2) odpowiedzi
2017-07-27 20:07 Direct file upload in django without caching the file »
I was trying to build a django powered file uploader which will upload and store the file directly to the destination location, without caching the fi...
(0) odpowiedzi
2017-07-27 15:07 Tracking unique users hitting certain urls in Django project »
In a Django project of mine, I want to log all unique user IDs visiting a certain section of the web application. Currently, the only distinguishing f...
(1) odpowiedzi
2017-07-27 11:07 Unusual request activity log found in django server »
Following is the screenshot of the server activity log.I can see that many requests are automatically raised in the server.How can I avoid this.? ...
(1) odpowiedzi