Petr
Not at "production grade docker configuration" level
Anders (izzno / gooood) 🇳🇴
The sad thing here is the serious lack of guides / posts about the "production" side of deploying Django.
Anders (izzno / gooood) 🇳🇴
Not at "production grade docker configuration" level
I agree, this is almost its own "field"... But so neccessary....
Anders (izzno / gooood) 🇳🇴
Yes, but you dont "really" need nginx ....
Anders (izzno / gooood) 🇳🇴
We are going way off topic here but I think we agree that the documentation in this region of django is some what lacking. Meaning there's plenty of topics to get started but the deployment (concurrent) is a very open topic.
Petr
Yes, because there is no single solution 🤷🏼‍♂️
Anders (izzno / gooood) 🇳🇴
bingo ;)
Petr
Someone use containers, someone use conrainers and run postgres inside container also (haha lol, stateless containers they says), someone deploy as-in-pre-docker-era without containers and random crashes
Anders (izzno / gooood) 🇳🇴
I use docker-compose. Its a collection of containers :)
Petr
compose of course, yes
Anders (izzno / gooood) 🇳🇴
This is an axample of a crazy config i threw together ealier this week: https://gist.github.com/izznogooood/338841aec5fc1fe0abca47a45eec87e3
Petr
We use own gitlab instance & gitlab runner
Petr
Live stdout from deploy script in web interface - very usefull
Isaías
Hello
Isaías
How return parameter in redirect django,
Le Createur
How return parameter in redirect django,
i think your string path must accept parameter like that path('path/<int:pk>', foo), then it should work
Le Createur
reverse(foo, (1,)) or something like that
Guillermo
reverse(foo, (1,)) or something like that
Like that but with kwargs: reverse('foo', kwargs={'pk':1})
Krunal
I want to deploy my Django project on iis server. Os is server 2012r2 I have installed python, Django and wfastcgi on server but when I try to (manage.py runserver) i am getting error
Shekhar
Hi team, Can u suggest me some good resource to use celery in django for some heavy bg tasks.?
Miguel
Hi guys, can u help me?. I need nested serialiazers in DRF, for example: { postulation: { . . . . } user: { . . . . } } Something like that, need the postulation info and the user who posted the postulation or the profile.
Perumal
How to fetch the data from mysql and display the python ui
Mirco
How to fetch the data from mysql and display the python ui
Study how Django works and you will get your goal
Alexander
hello) my goal: create python autogenerated client around DRF-based API+OAuth, I should consider packages to use, openapi (for example, drf-yasg+pyswagger) or coreapi... I see openapi is standard for today RESTful API but it require schema generation (and some api code modifications).. openapi is not very active (based on their github activity) but looks like it's possible to create client without any schema generation... coreapi looks better for my case because of it looks simpler but is it okay create new api based on core api in 2019?
Disekurity
hello everyone, I've
Ooha
When does this error appears??? (-215:Assertion failed) s>=0 in function 'cv::setSize'
rahidul
<ul class="navbar-nav ml-auto mt-2 mt-lg-0"> <li class="nav-item"> <a class="nav-link active" href="#home">Home <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="#about">About</a> </li> <li class="nav-item"> <a class="nav-link" href="#service">Service</a> </li> <li class="nav-item"> <a class="nav-link" href="#portfolio">Portfolio</a> </li> <li class="nav-item"> <a class="nav-link" href="#blog">Blog</a> </li> <li class="nav-item"> <a class="nav-link" href="#contact">Contact</a> </li> </ul>
rahidul
How to link with '#id' in django
Disekurity
How to link with '#id' in django
use sometin like this... <li><a href="services/">Services</a></li>
Disekurity
and make sur you set views to point to it
rahidul
use sometin like this... <li><a href="services/">Services</a></li>
it take a new page but i want this link will take in same page like one page portfolio website
Disekurity
in views.py you can use return redirect("main:mainpage")
Disekurity
here main:mainpage is where you want to point your link to
Disekurity
hope you got me right?
rahidul
in views.py you can use return redirect("main:mainpage")
will it work redirect("main":portfolio"). what is indicate main?
rahidul
hope you got me right?
group media share is off. how to understand with you.
Disekurity
first set app_name="main" inside URLConf.(urls.py)
Petr
first set app_name="main" inside URLConf.(urls.py)
this should be done inside apps.py, i think
Disekurity
It's the namespace
https://pythonprogramming.net/views-templates-django-tutorial/
Disekurity
read 👆
rahidul
<ul class="navbar-nav ml-auto mt-2 mt-lg-0"> <li class="nav-item"> <a class="nav-link active" href="#home">Home <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="{% url '#about' %}">About</a> </li> <li class="nav-item"> <a class="nav-link" href="{% url '#service' %}">Service</a> </li> <li class="nav-item"> <a class="nav-link" href="{% url '#portfolio' %}">Portfolio</a> </li> <li class="nav-item"> <a class="nav-link" href="{% url '#blog' %}">Blog</a> </li> <li class="nav-item"> <a class="nav-link" href="{% url '#contact' %}">Contact</a> </li> </ul>
Disekurity
I had this error when trying to execute $python manage.py runserver with cookiecutters-django project 👇 ModuleNotFoundError: No module named 'environ'
rahidul
does not work
rahidul
NoReverseMatch at / Reverse for '#about' not found. '#about' is not a valid view function or pattern name.
Disekurity
does not work
https://pythonprogramming.net/views-templates-django-tutorial/
Disekurity
with pip install??
Mirco
Yup
Disekurity
Yup
alrigt
Mirco
alrigt
Did you install requirements.txt ?
Disekurity
yess
Mirco
Because django-environ is into base.txt
Disekurity
Because django-environ is into base.txt
after installing I still need to install django-environ, right?
Disekurity
Disekurity
another issue after installing django-environ👇 django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable
Mirco
Study how cookie cutter works before using it
Mirco
Especially 12-factor
Disekurity
okay
Shekhar
Have you already checked DRF official docs ?
ya I have checked.But nothing useful for background task
Shekhar
Background ?
asynchronous task
Mirco
What's your goal ?
inchidi
english only
Miguel
Have you already checked DRF official docs ?
Yes, in the docs say I declare for example my ProfileSerializer inside of my PostulationSerializer and put this in fields
Miguel
But not works for me
Renita
Hiii
Renita
Please let me know what I should be doing I have two users a. Teacher. b. Admin both admin and teacher have specific activities
Renita
How should I go about creating user
Guillermo
How should I go about creating user
Groups: https://docs.djangoproject.com/en/2.1/topics/auth/default/#groups