Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
have issue with foundation dropdown menu in top-bar
I install foundation-sites with yarn or npm. So i have sources in node_modules/foundation-sites. I use django but i have the same issue without it Here is my index.html: {% load static %} {% load sass_tags %} <!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8"> <title>short url</title> {% load compress %} {% compress css %} <link href="{% sass_src 'scss/style.scss' %}" rel="stylesheet" type="text/css" /> {% endcompress %} </head> <body> <div class="top-bar"> <div class="top-bar-left"> <ul class="dropdown menu" data-dropdown-menu> <li class="menu-text">shorturl</li> <li><a href="/shorturl">Racine</a></li> <li><a href="/shorturl/url_list">url list</a></li> <li> <a href="http://www.perdu.com">perdu</a> <ul class="menu vertical"> <li><a href="#">Lien 1</a></li> <li><a href="#">Lien 2</a></li> </ul> </li> </ul> </div> </div> {% block content %} {% endblock %} <script src="{% static "js/jquery/dist/jquery.js" %}"></script> <script src="{% static "js/what-input/dist/what-input.js" %}"></script> <script src="{% static "js/foundation-sites/dist/js/foundation.js" %}"></script> <script src="{% static "js/foundation-sites/dist/js/plugins/foundation.core.js" %}"></script> <script src="{% static "js/foundation-sites/dist/js/plugins/foundation.dropdown.js" %}"></script> <script src="{% static "js/foundation-sites/dist/js/plugins/foundation.dropdownMenu.js" %}"></script> <script src="{% static "js/foundation-sites/dist/js/plugins/foundation.util.keyboard.js" %}"></script> <script src="{% static "js/foundation-sites/dist/js/plugins/foundation.util.box.js" %}"></script> <script src="{% static "js/foundation-sites/dist/js/plugins/foundation.util.nest.js" %}"></script> <script src="{% static "js/app.js" %}"></script> </body> </html> When i load the web-page, i have this:issue with dropdown menu Someone has an idea to solve it ? Thx for your help -
Session.request and 'Decimal' is not JSON serializable
I try to improve my Django knowledge (I'm a beginner) by developing a Django ecommerce website. I'd like to have two types of cart, one named cart and this other one named composed_cart. I have an error with the composed_cart. I came accross the following error when I try to display the cart: Object of type 'Decimal' is not JSON serializable For my add to composed_cart class, I use the following code: composed_cart.py: class ComposedCart(object): def __init__(self, request): self.session = request.session composed_cart = self.session.get('composed_cart') if not composed_cart: composed_cart = self.session['composed_cart'] = {} self.composed_cart = composed_cart def add_composed(self, product, quantity=1): product_id = str(product.id) if product_id not in self.composed_cart: self.composed_cart[product_id] = {'quantity': 1,'price': str(product.prix_unitaire), 'tva': str(product.taux_TVA.taux_applicable)} else: self.composed_cart[product_id]['quantity'] += quantity #Ajoute +1 à la quantité et met à jour le dictionnaire contenant la quantité. += signifie ajoute à la valeur initiale de quantité. self.save() def save(self): self.session['composed_cart'] = self.composed_cart self.session.modified = True def remove(self, product): #Supprimer le produit, quelque soit la quantité. product_id = str(product.id) if product_id in self.composed_cart: del self.composed_cart[product_id] self.save() def remove_one(self, product, quantity=1): #Méthode permettant de supprimer une unité du produit. product_id = str(product.id) if product_id in self.composed_cart: #Si le produit est dans le panier if self.composed_cart[product_id]['quantity'] > 1: … -
How Can I Restrict One Vote For One User?
My models.py is this and I have created the user registration form. I want to restrict one vote for one user. How Can I do so? class Choice(models.Model): choice_text = models.CharField(max_length= 200) votes = models.IntegerField(default= 0) image2 = models.ImageField(upload_to="Question_Image2", blank=True) question = models.ForeignKey(Question, on_delete= models.CASCADE) def __str__(self): return self.choice_text def vote_range(self): return range(0, self.votes) My views.py is this for vote def vote(request, question_id): question = get_object_or_404(Question, pk= question_id) try: selected_choice = question.choice_set.get(pk = request.POST['choice']) except: return render(request, 'polls/detail.html', {'question':question, 'error_message':"Please select a choice"}) else: selected_choice.votes += 1 selected_choice.save() return HttpResponseRedirect(reverse('polls:results',args = (question.id,))) -
Why is my instance in the ModelForm coming through as a NoneType?
I'm trying to obtain a Profile object within a forms.py ModelForm. print(type(self.instance)) will return <class 'user_profile.models.Profile'> as expected, but print(self.instance) will return an error: AttributeError: 'NoneType' object has no attribute 'username' First the form: class PublicToggleForm(ModelForm): class Meta: model = Profile fields = [ "public", ] def clean_public(self): public_toggle = self.cleaned_data.get("public") if public_toggle is True: print(type(self.instance)) print(self.instance) return public_toggle Here is the model: class Profile(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True, blank=True, related_name='is_profile_to') def __str__(self): return self.user.username The AUTH_USER_MODEL: class User(AbstractUser): def __str__(self): return self.username I didn't actually set the username field myself. I used django-allauth, and I assume they have a username field. Returning the Profile object as a string representation of it's User's username hasnt given me problems before. So could it be related to the way that my form is indirectly tied to the view? I have a FormView, and a DetailView into which the form is inserted: This is the extent of the FormView: class PublicToggleFormView(AjaxFormMixin, FormView): form_class = PublicToggleForm success_url = '/form-success/' template_name = 'user_profile/profile_detail.html' And the DetailView: from .forms import PublicToggleForm class ProfileDetailView(DetailView): template_name = 'user_profile/profile_detail.html' def get_context_data(self, **kwargs): context = super(ProfileDetailView, self).get_context_data(**kwargs) profile = Profile.objects.get( user__username=self.request.user) context['public_toggle_form'] = PublicToggleForm(instance=profile) return context -
Not authorized to unlink social account?
I am trying to unlink social (Facebook) account from user: axios.post(`/socialaccounts/${account.id}/disconnect/`, { headers: { 'Authorization': 'Token ' + this.getAuthToken, } }).then(res => { console.log(res.data) this.socialAccounts.splice(index, 1) }).catch(err => { console.log(err.response) }) This is giving me a 401 error: "Authentication credentials were not provided." I'm clearly providing credentials, so not sure at this point whether it is my error or something else going on. -
How do I display an alert /message while rendering to a template page in Django?
I have a views function that needs to render to a certain template page once a condition is satisfied. However I would like to display an alert or a message while rendering to that template. I am a novice in Django. Please bear with me if I using the word render inappropriately. How do I display this alert/message while redirecting to that page ? Thanks in advance -
Why did you choose to use the web framework which you are using now?
Looking for experience, not the theory! nodejs, #spring-mvc, #spring-boot, #angular, #django, #rubyonrails, #Meteor, #react -
Django: column spanning multiple rows in template
How can I have a column span multiple rows when that particular column has same values for every row? Column1--------Column2----Column3-----column4 ...............--------Value21----Value31-------Value41 Value1-----------Value22----Value32-------Value42 .............. This is my template: <div class="row"> <div class="table-responsive row col-md-13"> <table class="table table-hover table-striped table-bordered table-condensed "> <thead> <tr> <th>Doctor</th> <th>Clinic</th> <th>Day</th> <th>Time</th> </tr> </thead> <tbody> {% for vis in docClinic_list %} <tr> <td> {{ vis.0 }} </td> {% for vi in vis.1 %} <td>{{ vi.clinic_name }}</td> {% for v in vi.day_time %} <td>{{ v.day }}</td> <td>{{ v.time }}</td> {% endfor %} {% endfor %} </tr> {% endfor %} </tbody> </table> </div> It shows data in one row. That is because of that <tr>. But I don't know how would I achieve that spanning. May be a table' within that`? But its seems like bad coding standard. Any other options? Thank you -
Error while select_related query
I have Question and QuestionChoices models as below, when I try to retrieve the Question and related Answers from the Questionchoices I get the below error saying that the query is expecting string. What could be wrong model/query? class Question(models.Model): Question_Id = models.AutoField(primary_key=True) Question_Text = models.TextField(max_length=1000) def __str__(self): return self.Question_Text def __int__(self): return self.Question_Id class QuestionChoices(models.Model): Choice_Id = models.AutoField(primary_key=True) Question_Choices_Question_Id = models.ForeignKey("Question", on_delete=models.CASCADE) Choice = models.TextField(max_length=500) Is_Right_Choice = models.BooleanField(default=False) >>> QuestionChoices.objects.select_related().filter(Question_Choices_Question_Id = Question.Question_Id) Traceback (most recent call last): File "<console>", line 1, in <module> File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\query.py", line 836, in filter return self._filter_or_exclude(False, *args, **kwargs) File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\query.py", line 854, in _filter_or_exclude clone.query.add_q(Q(*args, **kwargs)) File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\sql\query.py", line 1253, in add_q clause, _ = self._add_q(q_object, self.used_aliases) File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\sql\query.py", line 1277, in _add_q split_subq=split_subq, File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\sql\query.py", line 1215, in build_filter condition = self.build_lookup(lookups, col, value) File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\sql\query.py", line 1085, in build_lookup lookup = lookup_class(lhs, rhs) File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\lookups.py", line 18, in __init__ self.rhs = self.get_prep_lookup() File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\fields\related_lookups.py", line 115, in get_prep_lookup self.rhs = target_field.get_prep_value(self.rhs) File "C:\Users\adm\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\fields\__init__.py", line 947, in get_prep_value return int(value) TypeError: int() argument must be a string, a bytes-like object or a number, not 'DeferredAttribute' -
pass value from extended template to base template in django
In my project in Django 2+, I have created a base.html template which wraps the other content templates. base.html <html> <head> <title>Example.com</title> </head> <body class="homepage"> {% block content %} {% endblock content %} </body> </html> and in one of content template pages/about.html {% extends 'base.html' %} {% block content %} This is about page of example.com {% endblock content %} Now, I have to change the class of body tag on base.html page to aboutpage How can I pass the value aboutpage from content template to base.html? -
Django's builtin cut filter
I need to remove spaces from a variable: the phone number is (123) 456-7891 I need it to be (123)456-7891 I tried <td><a href="ciscotel:1{{question.Phone|cut:" "}}" target="_self">{{question.Phone|cut:" "}}</a></td> But it's not working. -
Green Coloured Titles are showing in my Django Project Files, Atom Text Editor
My Working project files are showing with green color titles in Atom Text Editor. See the Screenshot of Atom Text Editor: https://drive.google.com/open?id=1yEPig9oO-aHBCqorOAWe_5nlnH9l6-vX EDIT: I have noticed that only the viewed files are showing the color change. -
502 Bad Gateway (nginx/1.10.3 (Ubuntu))
i sent my python3 django files to digital ocean server and getting 502 bad gateway error. I tried all the tips given elsewhere in stackoverflow but none worked. I believe there is something wrong with my settings.py. Specifically below lines, please let me know your suggestions: ALLOWED_HOSTS = ['*'] # Find out what the IP addresses are at run time # This is necessary because otherwise Gunicorn will reject the connections def ip_addresses(): ip_list = [] for interface in netifaces.interfaces(): addrs = netifaces.ifaddresses(interface) for x in (netifaces.AF_INET, netifaces.AF_INET6): if x in addrs: ip_list.append(addrs[x][0]['addr']) return ip_list # Discover our IP address ALLOWED_HOSTS += ip_addresses() -
How to add 2 models at once in Django Admin?
In Django v1.11.10 I have 2 models: Article and Files. In one article there can be many files attached. With scheme below I can create Article in admin panel, and then create File with <select> options to choose what Article it is related. But I want to create Article and at the same page add many File objects pressing "plus" button. Like dynamically. Is it possible? class Article(models.Model): title = models.CharField(max_length=100) description = models.TextField(blank=True) class File(models.Model): article = models.ForeignKey(Article, on_delete=models.CASCADE) name = models.CharField(max_length=100) path = models.FileField(upload_to=file_upload_folder) admin.py: from django.contrib import admin from .models import * admin.site.register(Article) admin.site.register(File) -
how to execute python script in django framework?
I just wanted to execute python script in django 2. The python script will communicates with R305 fingerprint scanner. If i pressed a button in webpage, which executes the python script and initiates the sensor. Need help! -
Inserting hyperlinks into pdf generated with pisa
Currently I am generating a pdf from a html template in django/python. Here is a relevant snipit from my view result = StringIO.StringIO() html = render_to_string(template='some_ref/pdf.html', { dictionary passed to template},) pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result) return HttpResponse(result.getvalue(), content_type='application/pdf') And my template is an html file that I would like to insert a hyperlink into. Something like <td style="padding-left: 5px;"> <a href="/something_here/?referral_type={{ template_variable }}">{{ referral_all.1 }}</a> </td> Actually, the pdf generates fine and the template variables are passed correctly and show in the pdf. What is inside the a tag is highlighted in blue as if you could click on it, but when I try to click on it, the link is not followed. I have seen pdfs before with clickable links, so I believe it can be done. Is there a way I can do this to make clickable hyperlinks on my pdf using pisa? -
Transfer users between Django servers
I have two types of Django servers. One is a central server that contains a master database. There's only one of these. Then there's an arbitrary number of client servers that contain their own databases. These client databases act as a cache for the master database. This is used for users. I a user tries to log in on client server 1, that server looks for the user in its database. If it's not there, it goes out to the central server and asks that server if the user exists in the master database. If so, the central server returns the users info so that the client server can store/cache it in its own database and then log the user in. Each successive time that user tries to log in, the user is found in the client database and it no longer has to go out to the central server. The central server returns the users information as JSON like so: { "username": "joe.bag.o.doughnuts", "id": 143, "password": "fksdfjfldskjf", } My issue here is the password. when I put the value in there as just user.password, it uses the encrypted version of that password. This is good because I don't want … -
How do I run migrations in Dockerized Django?
I followed a Docker + Django tutorial which was great, in that I could successfully build and run the website following the instructions. However, I can't for the life of me figure out how to successfully run a database migration after changing a model. Here are the steps I've taken: Clone the associated git repo Set up a virtual machine called dev with docker-machine create -d virtualbox dev and point to it with eval $(docker-machine env dev) Built and started it up with docker-compose build and docker-compose up -d Run initial migration with docker-compose run web python manage.py migrate. (This is the only time I'm able to run a migration that appears successful) Checked that the website works by navigating to the IP address returned by docker-machine ip dev Make a change to a model. I just added name = models.CharField(default='Unnamed', max_length=50, null=False) to the Item model in web/docker_django/apps/todo/models.py file. Update the image and restart the containers with docker-compose down --volumes, then docker-compose build, then docker-compose up --force-recreate -d Migration attempt number 1: docker-compose run web python manage.py makemigrations todo then docker-compose run web python manage.py migrate. After the makemigrations command it said Migrations for 'todo': 0001_initial.py: - Create model … -
Django Cart and Item Model - getting quantity to update
I am working on a Django cart application. I have two models Cart and Item. I am trying to get the quantity to update when an Item is added to the basket but cant get the views to work properly. I am having problems getting item_obj assignment to work - do I need to do anything with the model manager here? Any help is really appreciated. Models.py class Cart(models.Model): user = models.ForeignKey(User, null=True, blank=True) products = models.ManyToManyField(Product, blank=True) total = models.DecimalField(default=0.00, max_digits=10, decimal_places=2) updated = models.DateTimeField(auto_now=True) timestamp = models.DateTimeField(auto_now_add=True) objects = CartManager() def __str__(self): return str(self.id) class Item(models.Model): item = models.ForeignKey(Product, null=True) cart = models.ForeignKey(Cart, null=True) quantity = models.PositiveIntegerField() Views.py extract def cart_update(request): product_id = request.POST.get('product_id') product_obj = Item.objects.get(id=product_id) print(item_id) item_obj = Item.objects.get(id=product_id) cart_obj, new_obj = Cart.objects.new_or_get(request) if item_obj in cart_obj.products.all(): cart_obj.products.add(product_obj) item_obj.quantity += 1 item_obj.save() else: cart_obj.products.add(product_obj) return redirect("cart:home") -
Keras/TF trained model works as web app once, then value errors
TF community -- So I have trained a TensorFlow model using simple MNIST data. I'm using Keras' load_model in a Python script to pull it up and model.predict() to feed images to the model (once the data is properly transformed) so it can make predictions. This works well when running predict.py from the command line with various examples. But my goal is to web app-ify this prediction script so I can ping it from other apps. It was fairly easy to spin up a Django app and cause predict.py to run whenever a certain URL endpoint was hit. Given a random MNIST image sent in a POST request, the app will (usually correctly) make a prediction the first time, which I can see in the server logs in square brackets: 2018-02-09 17:49:40.639847: I C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY\35\tensorflow\core\common_runtime\gpu\gpu_device.cc:1195] Creating TensorFlow d evice (/device:GPU:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:01:00.0, compute capability: 6.1) [5] [09/Feb/2018 17:49:43] "POST /predict/ HTTP/1.1" 200 1 Then, without fail, all subsequent posts generate errors until I restart the server with python manage.py runserver. I usually get several overlapping exceptions to this where it doesn't like various some placeholder values - but to my knowledge … -
Highlight keyword in Django project
I have a django project which has a 'detail.html' file extended from 'base.html' file.This detail.html contains a search filter form.Here is my question in short "How to highlight the keyword specified in the search filter using jQuery" PS:I have already tried parsing the content of the detail.html and appending <span style="background-color: #FFFF00">Yellow text.</span> using javascript. But what I need is to highlight automatically without submitting the form or reloading the page (similar to command like onKeyUp) base.html {% load staticfiles %} <!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> {% block head %} My Blog {% endblock head %} </title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link href='{% static "css/bootstrap.min.css" %}' rel="stylesheet"> {% comment %} <link href='{% static "css/bootstrap1.min.css" %}' rel="stylesheet"> {% endcomment %} <link rel="stylesheet" href='{% static "css/base.css" %}' /> {% block head_extra %} {% endblock head_extra %} </head> <body style="background-color:white"> {% block navbar %} <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <div class="container"> <a class="navbar-brand" href="#"> Start Bootstrap </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarResponsive"> <ul class="navbar-nav ml-auto"> <li class="nav-item active"> <a class="nav-link" href="{% url 'post:home' %}">Home <span class="sr-only">(current)</span> </a> </li> <li … -
Java Script on Internet information server not working
I have written a django app and am trying to run it through iis on a windows 10 client. The app runs just fine as expected except the java scripts will not execute. I have a parallel installation running on the same machine and the java scripts run just fine using the django web server Any suggestions as to how to get the scripts to run would be appreciated -
gunicorn + django + nginx -- recv() not ready (11: Resource temporarily unavailable)
I am getting this issue. I am trying to setup a server and cannot get it running. I am using django, gunicorn and nginx. here are the logs nginx log 2018/02/09 22:22:32 [debug] 1421#1421: *9 http write filter: l:1 f:0 s:765 2018/02/09 22:22:32 [debug] 1421#1421: *9 http write filter limit 0 2018/02/09 22:22:32 [debug] 1421#1421: *9 writev: 765 of 765 2018/02/09 22:22:32 [debug] 1421#1421: *9 http write filter 0000000000000000 2018/02/09 22:22:32 [debug] 1421#1421: *9 http copy filter: 0 "/?" 2018/02/09 22:22:32 [debug] 1421#1421: *9 http finalize request: 0, "/?" a:1, c:1 2018/02/09 22:22:32 [debug] 1421#1421: *9 set http keepalive handler 2018/02/09 22:22:32 [debug] 1421#1421: *9 http close request 2018/02/09 22:22:32 [debug] 1421#1421: *9 http log handler 2018/02/09 22:22:32 [debug] 1421#1421: *9 free: 000055D4A01ACBE0 2018/02/09 22:22:32 [debug] 1421#1421: *9 free: 000055D4A01C6FB0, unused: 0 2018/02/09 22:22:32 [debug] 1421#1421: *9 free: 000055D4A01B9F80, unused: 214 2018/02/09 22:22:32 [debug] 1421#1421: *9 free: 000055D4A01C9460 2018/02/09 22:22:32 [debug] 1421#1421: *9 hc free: 0000000000000000 0 2018/02/09 22:22:32 [debug] 1421#1421: *9 hc busy: 0000000000000000 0 2018/02/09 22:22:32 [debug] 1421#1421: *9 reusable connection: 1 2018/02/09 22:22:32 [debug] 1421#1421: *9 event timer add: 3: 70000:1518215022208 2018/02/09 22:22:32 [debug] 1421#1421: *9 post event 000055D4A01D8BD0 2018/02/09 22:22:32 [debug] 1421#1421: *9 delete posted event … -
Images in my create view not working django
This is my view and it is saving the data but not the image. How to resolve it? def DoubtCreate(request): if request.method == 'POST': if not request.user.is_authenticated: print(user) return redirect('students:login') else: form = CreateDoubt(request.POST) if form.is_valid(): topic = form.cleaned_data.get("topic") desc = form.cleaned_data.get("desc") links = form.cleaned_data.get("links") Tags = form.cleaned_data.get("Tags") image = form.cleaned_data.get('image') question = form.cleaned_data.get("question") user = request.user Doubt.objects.create( User = request.user, topic=topic, image= image, Tags = Tags, links = links, desc = desc, question = question, ) return redirect('community:allask') else: if not request.user.is_authenticated: return redirect('students:login') else: form = CreateDoubt() return render(request, 'community/AskQuestion.html', {'form': form}) class CreateDoubt(forms.ModelForm): class Meta: model = Doubt fields = [ 'topic','question', 'desc', 'image', 'Tags', 'links'] I have tried most of ways but images stills not saved. Is the image saving not possible or something else. -
Host not found in upstream "web" in /etc/nginx/sites-enabled/django_project:12
I am using Docker Compose to build a multi-container Docker Django app. I have a docker-compose.yml file that sets up 4 containers: web, nginx, postgres, and redis. When I perform docker-compose build it works without error and gives me a key for my image, but when I try to run it, I get this error nginx: [emerg] host not found in upstream "web" in /etc/nginx/sites-enabled/django_project:12 I'm new to Docker and configuration with yml at that so I'm not sure where the problem lies. docker-compose.yml version: '3' services: web: restart: always build: . expose: - "8005" links: - postgres:postgres - redis:redis volumes: - /usr/src/app - /usr/src/app/static env_file: .env command: /usr/local/bin/gunicorn docker_app.wsgi:application -w 2 -b :8005 nginx: restart: always build: ./nginx/ ports: - "80:80" volumes: - /www/static links: - web:web postgres: restart: always image: postgres:latest ports: - "5432:5432" volumes: - ./pgdata:/var/lib/postgresql/data/ redis: restart: always image: redis:latest ports: - "6379:6379" volumes: - ./redisdata:/data - ./redisdata:/data:rw Project Tree ├── Dockerfile ├── Makefile ├── Procfile ├── README.md ├── celerybeat-schedule ├── circle.yml ├── devops ├── docker-compose.yml ├── jwtAuth.py ├── manage.py ├── newrelic.ini ├── nginx │ ├── Dockerfile │ └── sites-enabled │ └── django_project ├── requirements.txt ├── start.sh └── docker_app ├── __init__.py ├── admin.py ├── api ├── …