Data dodania Pytanie
2017-04-22 23:04 Making Django & Vue.js work together with {% verbatim %} »
I'm trying to make django & Vue work together even though they share the same {{ X }} template syntax. I know that from django 1.5 we can use th...
(1) odpowiedzi
2017-04-22 17:04 Django 1.9.13 complains SubfieldBase is deprecated, but I'm not using it. How to resolve? »
I am upgrading an old Django project from Django 1.8.3 to the current Django 1.11, but to be cautious, I am upgrading to each major release of Django ...
(1) odpowiedzi
2017-04-22 04:04 How to pass a function result to a tuple? »
I am working on a Python/Django/Wagtail project, and at some point I have a class like this: class SuperClass(BaseClass): body = StreamField([ ...
(2) odpowiedzi
2017-04-21 16:04 Django Pagination from ?page= to /page/ »
I have this view: class PageView(ListView): # ... code ... paginate_by = 4 In template I have something like: <div class="pagination"&g...
(3) odpowiedzi
2017-04-21 12:04 Do I need to make a migration if I change null and blank values on a Model field? »
I have the following model @python_2_unicode_compatible class Booking(models.Model): session = models.ForeignKey(verbose_name=_('Session'), to=Se...
(4) odpowiedzi
2017-04-21 08:04 Error: object of type 'zip' has no len() after adding extra header by using zip »
I try to follow this link pandas dataframe with 2-rows header and export to csv in order for me to created extra header without remove the original...
(1) odpowiedzi
2017-04-20 19:04 Django rest framework cannot deal with multple objects in model viewset »
I have a very simple model and its related serializer and views: class Page(models.Model): user = models.ForeignKey(User) title = models.Char...
(1) odpowiedzi
2017-04-20 16:04 django many-to-many show human-readable in form »
I have these models: CURSES=(('python','Python'),('django','Django'),...) class Asig(models.Model): ... name = models.CharField(max_length=10...
(1) odpowiedzi
2017-04-20 15:04 Application layer strategies against HTTP floods (web app is a Django forum) »
A Django-based web forum I maintain is seeing application level DDOS attacks daily. Essentially, it seems to be an HTTP flood hitting the home page, c...
(0) odpowiedzi
2017-04-20 13:04 Cumulative (running) sum with django orm and postgresql »
Is it possible to calculate the cumulative (running) sum using django's orm? Consider the following model: class AModel(models.Model): a_number =...
(3) odpowiedzi
2017-04-19 18:04 formset() is not a function, typeerror using jquery.formset.js »
I'm using jquery.formset.js to try and dynamically add and delete rows to my formset. https://github.com/elo80ka/django-dynamic-formset I'm getting...
(1) odpowiedzi
2017-04-19 16:04 How to access pk in views (Django) »
I'm writing a small chat programm in Django but have problems getting any further. Here's the code: models.py from django.db import models from dat...
(2) odpowiedzi
2017-04-19 12:04 Django sum all related objects of a filtered QuerySet »
What I would like to do in psuedo code is: def import_transaction_deposit_crypto(Importer): logger = get_nexchange_logger(__name__, True, True) ...
(2) odpowiedzi
2017-04-18 19:04 Django user registration and authentication to mutiple databases »
I'm looking for a way to register and authenticate custom users accross mutiple databases using Django and postgreSQL. The application will be cross ...
(1) odpowiedzi
2017-04-18 14:04 Django project using python 2.7 even though interpretor points to python version 3.5 »
My project interpretor points to python version 3.5.2: (/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5) However when I go to the py...
(1) odpowiedzi
2017-04-18 09:04 optimized way of passing a form in all view functions django »
I have a form which is needed in all the view functions of my django project. I have a common template for printing the form but for this I have to ...
(2) odpowiedzi
2017-04-17 20:04 Django implementation of default value in database »
I had a field on a model with was: class SomeModel(models.Model): some_field = models.CharField(max_length=10, null=True, blank=True) Then I ch...
(1) odpowiedzi
2017-04-17 16:04 how to cast the output of Count() in django to FloatField in django 1.8 »
I am using django 1.8. I have two models:- class Query(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL) title = models.Tex...
(2) odpowiedzi
2017-04-17 09:04 django: sort rows based on number of column matching »
I have a model:- class Userprofile(models.Model): user=models.OneToOneField(settings.AUTH_USER_MODEL) education=models.models.CharField(max_l...
(1) odpowiedzi
2017-04-16 15:04 Django - HTTP and WebSockets »
We have an existing large Django 1.11 & Django-rest-framework application served by wsgi. We noticed that we might want to use a WebSocker for som...
(0) odpowiedzi
2017-04-16 10:04 Creating multiple objects with one request in Django and Django Rest Framework »
I am using Django as the backend server and Vue.js for the front end Movie app. I have a Ticket model class MovieTicket(models.Model): show = mo...
(3) odpowiedzi
2017-04-16 09:04 How to limit connections to a port and redirect other requests to another port? »
I would like to limit the number of connections to my server to X. This can be done by iptables -A INPUT -p tcp --dport ABCD -m connlimit --connlimit...
(1) odpowiedzi
2017-04-15 19:04 How can I add a facebook user login functionality »
My python version is 3.4.3 and my django version is 1.9.6 . I tried many django facebook registrations apps but almost all the versions are outdated....
(3) odpowiedzi
2017-04-15 17:04 Saving audio from the browser to the backend (Django) »
I went through a lot of answers which have already been given but did not understand. Task : I have to get the audio from the user which should be l...
(1) odpowiedzi
2017-04-15 12:04 How To Pagination Angular2 with Django Rest Framework API »
I am trying to create a simple blog application using Angular2 with Django Rest Framework. I am implementing pagination in Django, but I do not know h...
(0) odpowiedzi
2017-04-14 23:04 Celery beat sometimes stops working »
I'm using latest stable Celery (4) with RabbitMQ within my Django project. RabbitMQ is running on separate server within local network. And beat peri...
(1) odpowiedzi
2017-04-14 20:04 How to set up urls in django when there are multiple apps within the same project? »
I am new to django. I am trying to setup the URLs. I have 2 apps under a project 'mysite'. In the urls.py for mysite, I have included the urls from...
(2) odpowiedzi
2017-04-14 13:04 Django csrf token missing or incorrect error 403 »
When i submit the form i get following error: CSRF verification failed Reason given for failure: CSRF token missing or incorrect. my vie...
(2) odpowiedzi
2017-04-13 13:04 How to set the value of a model field by performing an equation between other model fields »
I want to set the value of a model field by performing an equation between other model fields. Here's my model: class Current(models.Model): time...
(1) odpowiedzi
2017-04-13 09:04 Is it possible run makemigrations with deleted schema? »
My all SQL schema was deleted cause of windows10 initialization. So, I wanna run makemigrations with already existing django project code(with so many...
(1) odpowiedzi
2017-04-13 09:04 how to find file extension in case of file list? »
How can i find extension of list of files .I am currently using os.path.splitext which is not working.Please suggest any other method in case of file ...
(1) odpowiedzi
2017-04-12 23:04 How to filter objects with many to many relationships in django »
I am new at Django and I am trying to discover many to many relationships. I have a word model which has a many to many relationship with the default...
(1) odpowiedzi
2017-04-12 22:04 Heroku-deployed Django webpage doesn't update when DB changes »
I have deployed an app in Heroku using Django. The Django program uses a SQLite database db.sqlite3 on root directory to populate its page. Separately...
(1) odpowiedzi
2017-04-12 13:04 Range query in Elasticsearch_dsl by integer field »
I used elasticsearch-dsl==5.2.0, elasticsearch==5.3.0 and Django==1.8.15. Django model: class Item(models.Model): price = models.DecimalField(de...
(1) odpowiedzi
2017-04-11 22:04 Django pre_save signal has to be saved twice from admin to take affect »
Got Django 1.11 app. Everything is working fine, except a strange issue with a pre_save signal. In my model, I have two many to many fields that I'm...
(1) odpowiedzi