Data dodania Pytanie
2017-07-25 17:07 Valid OAuth redirect URIs for facebook - Django Social Auth »
I am referring tutorials to implement django social-auth, I hace successfully implemented it for Twitter and Google+ . But, in case of facebook , I am...
(0) odpowiedzi
2017-07-25 09:07 Django Filter Backend »
I'm working with Django rest framework API, I am trying to make a filter by first_name or by last_name or by both of them. This is my ContactViewSet.p...
(3) odpowiedzi
2017-07-25 07:07 Media optimisation - AWS web app »
I am in the process of building a web based application (Django, Angular on AWS). The application will be media heavy as in users will be uploading lo...
(1) odpowiedzi
2017-07-24 23:07 Unable to connect to ldap using django-python3-ldap »
I am developing django website and I want to use ldap authontation with my application. I am using Django 1.11 to authenticate with the django-python3...
(0) odpowiedzi
2017-07-24 22:07 Django w/ Apache, CSRF Verification Failing »
I have a bit of an issue with CSRF verification in my Django app. I have two other {% csrf_token %} tags in my app, in two different HTML templates. T...
(1) odpowiedzi
2017-07-24 21:07 Django: How to migrate to class-based indexes »
Django 1.11 introduced Class-based model indexes. What was previously defined as class A(models.Model): class Meta: ...
(1) odpowiedzi
2017-07-24 13:07 Write a wrapper to expose existing REST APIs as SOAP web services? »
I have existing REST APIs, written using Django Rest Framework and now due to some client requirements I have to expose some of them as SOAP web servi...
(1) odpowiedzi
2017-07-23 21:07 (Solved) Django: TypeError at /categories/ sequence item 0: expected str instance, Category found »
I'm trying to code an e-phrasebook with Django to help people learn languages. Or actually a new version of an older one with new features. Anyway I'm...
(3) odpowiedzi
2017-07-23 18:07 I am a beginner in Django and facing a syntax error in urls.py »
Here is my personal/urls.py. I have been trying to solve this for quite a few days. I know it must be a really silly error but help would be appreciat...
(1) odpowiedzi
2017-07-23 17:07 TypeError: __init__() takes 2 positional arguments but 3 were given (django-material) »
I'm trying to recreate a form with Inline using django and django-stuff. I already got it once but this one is not being easy! I wish to create a for...
(1) odpowiedzi
2017-07-22 17:07 Django Angular cors error: access-control-allow-origin not allowed »
I have implemented auth in my django app using django-rest-auth. My settings in settings.py: ALLOWED_HOSTS = [] # Application definition INSTALLED_...
(1) odpowiedzi
2017-07-22 13:07 Django filter with OR statement »
I need to write filter that will check situation like: if there are an actors with name "John" than return these actors, otherwise search actors with...
(1) odpowiedzi
2017-07-22 05:07 Storing Config in Environment Python / Django »
I have been wondering about this for awhile. Namely, how does one go about isolating the config from the codebase when doing projects in Python and/or...
(1) odpowiedzi
2017-07-22 00:07 Django table rows are being magically hidden from ORM when I set a 'deleted' flag »
Working in an inherited codebase. I have a table with 2 objects when I look at it from the API or from the admin site, but it has 3 objects when I do...
(1) odpowiedzi
2017-07-21 16:07 Django: How to disable Database status check at startup? »
As far as I know Django apps can't start if any of the databases set in the settings.py are down at the start of the application. Is there anyway to m...
(1) odpowiedzi
2017-07-21 13:07 Decrease the number of elif blocks »
I 'm trying to do a filter based on the following queryparams. How can I decrease the lines of code: if fridge == 'true' and toilet == 'true' and si...
(3) odpowiedzi
2017-07-21 12:07 django-restframework serialize relations as dictionaries rather then arrays »
I'm trying to serialize foreign keys as dictionaries instead of arrays. Right now the json looks the following: { "slug": "en", "children": [{ ...
(2) odpowiedzi
2017-07-20 19:07 CSRF Tag Still Rejecting Twilio Requests »
I'm writing a simple view which takes in a Twilio SMS request and returns a simple SMS, based on this tutorial. For some reason, requests still are m...
(1) odpowiedzi
2017-07-20 17:07 Link a function to a model entry »
I was looking at the result of this question on linking a specific method to a model entry, but not sure the solution used in the end is that elegant....
(1) odpowiedzi
2017-07-20 06:07 when to map http methods to view methods django rest framework »
I have seen viewsets implemented like this: can we expand on this line of code in the django rest frameworks docs: "If we need to, we can bind this ...
(1) odpowiedzi
2017-07-20 01:07 Two virtual environments for a single Django project? »
I have a Django project for which I have created a virtual environment with the packages it requires. Now for development, I was looking for a tool ...
(1) odpowiedzi
2017-07-19 17:07 Maintain SQL operator precedence when constructing Q objects in Django »
I am trying to construct a complex query in Django by adding Q objects based on a list of user inputs: from django.db.models import Q q = Q() expre...
(2) odpowiedzi
2017-07-19 14:07 How do I make a button inactive on radio button click? »
I want to make a submit button inactive (not clickable) until one of form's radio buttons is checked. This is what I have so far: {% for answer in f...
(3) odpowiedzi
2017-07-19 07:07 How to query previous items of a given criteria »
Here is the model class Player(models.Model): name = models.CharField() class ShootingAttempt(models.Model): player = models.ForeignKey(Play...
(3) odpowiedzi
2017-07-18 21:07 How to match Object field with String in in Django template? »
Initially, when I am saving this 'status' field in database it is (=models.CharField(max_length=200)) So, Now When I am trying to get this data in HT...
(0) odpowiedzi
2017-07-18 17:07 Finding common elements based on a condition in django »
I have three models connected through an m2m relationship. Stop represents a bus stop, Route represents a bus route, and RouteStation is an intermedia...
(1) odpowiedzi
2017-07-18 14:07 get null or empty queyset in django »
def get_queryset(self): key = self.request.GET['search_text'] customer_list = customer_info.objects.all() # temp = ...
(1) odpowiedzi
2017-07-18 11:07 Running Django Python Server in AWS »
I have a django running in AWS Ubuntu machine. Through SSH, I start the server at 8000 port. But when i close the ssh window, server stops and I can't...
(3) odpowiedzi
2017-07-17 20:07 Retry celery tasks before their countdown »
we are running Django v1.10 with celery v4.0.2, rabbitMQ v3.5.7 and flower v0.9.1 and are pretty new with celery, rabbitMQ and flower. There is a fun...
(2) odpowiedzi
2017-07-17 14:07 django strange warning for urlconf »
Django behaves as I hoped and expected, but gives me a warning. It seems my use-case was not thought about. Which confuses me, so my question: do I mi...
(1) odpowiedzi
2017-07-17 10:07 django-rest-framerwork serializer how to get user id »
a model like this: class Album(models.Model): artist = models.ForeignKey(Musician, on_delete=models.CASCADE) name = models.CharField(ma...
(3) odpowiedzi
2017-07-16 23:07 Django Admin Model ArrayField Change Delimiter »
My model looks like this: from django.contrib.postgres.fields import ArrayField class Trigger(models.Model): solutions = ArrayField(models.TextF...
(1) odpowiedzi
2017-07-16 11:07 Bulk insert into SQLite DB when ManyToMany and ForeignKey relationships »
I have a database table structure with ManytoMany relationships and ForeignKeys. I am doing a web scraping from the IEEE Xplore website to build a dat...
(0) odpowiedzi
2017-07-16 08:07 How do I specify type of index in django? (btree vs hash, etc) »
Like the title says, how do I specify the type of index I want on a field in a model in django. class Person: ... age = models.IntegerField...
(1) odpowiedzi
2017-07-15 23:07 DDoS protection for Django Channels »
Is there anything specific that can be done to ensure a Django Channels server is not susceptible to DDoS (attack or accident) from websocket clients?...
(1) odpowiedzi