Anders (izzno / gooood) 🇳🇴
If Nginx was down, what was serving your static dir ?
Leonardo
i'm doing the same question right now...
Anders (izzno / gooood) 🇳🇴
I think it was the whitespace ;)
Leonardo
let's test
Leonardo
i'll rollback and let's see
Leonardo
I think it was the whitespace ;)
whitespace is not the problem...
Leonardo
lemme add that log rows again and we will see
Anders (izzno / gooood) 🇳🇴
hah ;) accoring to the documentation it does not matter. (the whitespace)
Leonardo
i added the rows again and it's working
Leonardo
WTF
Anders (izzno / gooood) 🇳🇴
hehe, dont worry... Learn how to use systemctl and journalctl and some basic linux to get better control over your services / Servers.
Anders (izzno / gooood) 🇳🇴
Next time you can digg deeper.
Rajjix
linux should be core, if your getting into web development specially backend, consider getting rid of windows
Leonardo
sure thing guys! I tried see what was the problem but no lucky... this is awkward
Luis
Guys, I read DJango docs about RunSQL function... but I can't figure out how to use it in migrations file.
Luis
Any idea?
Luis
Ok, I get it! Just using RunSQL in forwards_func...
Luis
Sorry, I'm drunked xD
Luis
Ok, I get it! Just using RunSQL in forwards_func...
Ok, NO! Into operations list use RunSQL.
Luis
It worked!
Belmo NaTazu
Sorry, I'm drunked xD
Lol, Balmer peak?)
Luis
Lol, Balmer peak?)
Hahahahahah it think developers get magical code ability when they're drunked
Belmo NaTazu
Belmo NaTazu
True story
Luis
Hahahahahhaha
Luis
Hey! It works!
Mr. Rude
😂😂
Mr. Rude
Fast forward a month
Luis
I code for beer xD
Mr. Rude
Did I even write that?
Mr. Rude
😂
Luis
Ok, the project manager said we can code quasi-drunked xD
Luis
He will buy a ron bottle
Luis
Hahahahaha
Luis
Sorry, I'm spamming!
Belmo NaTazu
Hey! It works!
Unbelievable)
Leonardo
how can i use masks with django forms?
amit
I am making a social networking site like fb , twitter . I am also using messaging and notifications . I wanted to know which technology/services should i use in order to get best efficency and takes less time to make it working also has less lag .
Bhupesh
Can anyone tell me how can I make a telegram bot using django ??
Adonis
There is a lot of tools out there to help you
Belmo NaTazu
Or yet another async technology.
Belmo NaTazu
Study how to optimize orm queries to database
Belmo NaTazu
Sorry for bad English, I am from Ukraine
Ronald
Can anyone tell me how can I make a telegram bot using django ??
a telegram bot is just a script running as a service on a server. You can hook it up with a Django API to read and retrieve data. 🙂
Bhupesh
Do u have any links to begin with 😊
Ronald
yes
https://github.com/python-telegram-bot/python-telegram-bot
Ronald
thanks 😊👍
here’s a bot I made a few months ago https://www.ronaldlangeveld.com/2018/01/10/oracle-bot.html
Ronald
check the github link for my code 🙂
Anonymous
ok
I think that django is overhead for telegram bot, try something more lightweight, like official sdk from telegram https://core.telegram.org/bots/samples
Ronald
I think that django is overhead for telegram bot, try something more lightweight, like official sdk from telegram https://core.telegram.org/bots/samples
yeap, for the bot itself Django is pointless - but it’s good for if you want to use it combined with a website.
Anonymous
Better if bot will be designed as a standalone service with some api so you can plug it in any project you need
Anonymous
like microservice
Anonymous
How to create interface for particular regular expression
Anonymous
Hello everyone, please I am having problems with django-axes
Anonymous
Need help
Mirco
Explain your problems
Luis
How to create interface for particular regular expression
In urls.py file you can define regex to map with a view that renders a template... this if you are talking about user interface 😂
Anonymous
Explain your problems
Got the answer, thanks. I was importing the django-axes Library. Didn't know importing is not necessary in the current update
Sergei
Hello everyone I have implemented PostgreSQL. Then I have created new app and new models. MIgrated and got this https://dpaste.de/iXG9
Sergei
I am using postgres instead sqlite
inchidi
I am using postgres instead sqlite
so you are using sqlite at first then move to postgre?
Sergei
other apps and models run properly
Sergei
no, from the begining I use postgres
inchidi
no, from the begining I use postgres
then do you think your migration file mixed?
Sergei
What do you mean ?
inchidi
example: you do makemigration, add and push the files to git, and your friend do same thing so your migration files mixed
Sergei
and how to fix it? should I go to the previous version by git?