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.
Petr
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
reverse(foo, (1,)) or something like that
Le Createur
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
Mirco
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
and make sur you set views to point to it
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?
Disekurity
first set app_name="main" inside URLConf.(urls.py)
Petr
Mirco
Mirco
Disekurity
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
Mirco
Disekurity
with pip install??
Mirco
Yup
Disekurity
Mirco
alrigt
Did you install requirements.txt ?
Disekurity
yess
Mirco
Because django-environ is into base.txt
Disekurity
Disekurity
another issue after installing django-environ👇 django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable
Mirco
Mirco
Study how cookie cutter works before using it
Mirco
Especially 12-factor
Disekurity
okay
Mirco
Mirco
What's your goal ?
inchidi
english only
Alexander
Miguel
But not works for me
007
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
Renita