Andrej
Hello guys and galls, I've implemented a website in Django which gives you a Rest-Api for sending and receiving sms through your Smartphone. https://www.sms-api-gateway.com I would like to hear your feedback. It would be nice, if you use the contact form on the site for that feedback. I finished it technically, but I think there is little to no audience for which it is useful. What do you think how I could find the right audience or how could I change or extend that project to make it useful for a bigger audience?
h
Hi guys just want to ask that I'm not that much good in frontend but i do work on django...so can any one suggest how i can get some templates that i want because i don't want to get into frontend. Thanks in advance.
Anonymous
from past 3 years im'm working as a full stack developer in django and python
h
Great, thanks all of you.
Anonymous
colorlib.com here you will see a great collection of templates
Muslim
https://paste.ubuntu.com/p/TZJfYzHGVH/ django channels, simple test with sync consumer fails and I've no idea why
Anonymous
Help me for this project work
Anonymous
Sample projects that you can solve Sample project 1: Build your own captcha service Captchas have been used on the websites as protection against bots. Simple captcha An image with distorted text is shown to the user. The user has to input the text value in a textbox and submit. If the text input by the user is correct the service returns a pass else a fail. Recaptcha This is a modern implementation to make things simple for a human user. A user just needs to click on a button to validate themselves in normal circumstances. Only when the system isn’t certain, it throws a challenge that real humans find it easier to solve.
cj
Help me for this project work
how much are you willing to pay someone to do that work for you?
Nadir
Hi, i use annotate with F('field') and field is a foreignkey. I get the pk value of linked model but i would get another fild of that model, is it possible?
Mr
How Use ajax with django
Omar
In my experience all jobs today ask for Swiss navy, even when the job is for a daily web or mobile development, but today recruitment is based on what appear tomorrow, MY RECOMMENDATION, APPLY, GET THE TECHNICAL TEST, evaluate the real environment then deny o take the job.
Holla
Shouldnt this has to give an input https://pastebin.com/wk4tR7N3
Anonymous
Wich django cms you think is eassiest to work with ?
Anonymous
Wagtail ?
Holla
Yes it should.
Tnx for responded but doestn show it only shows login with tha buttom
Anonymous
Tnx for responded but doestn show it only shows login with tha buttom
https://simpleisbetterthancomplex.com/tutorial/2018/11/28/advanced-form-rendering-with-django-crispy-forms.html
Anonymous
Wich django test do you reccomend ?
Ghorz
How Use ajax with django
Use Jquery Ajax. Write your api in pure django or use DRF.
Anonymous
It's my first time using Django. I have a VPS on Contabo, but I'm having difficult to deploy my app. Can anyone help me?
Anonymous
● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-06-21 06:17:48 CEST; 19min ago Docs: man:nginx(8) Process: 26937 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 26938 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Jun 21 06:17:45 xxxxxxx systemd[1]: Starting A high performance web server and a reverse proxy server... Jun 21 06:17:45 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:46 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:46 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:47 xxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:47 xxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:48 xxxxx nginx[26938]: nginx: [emerg] still could not bind() Jun 21 06:17:48 xxxxx systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Jun 21 06:17:48 xxxxx systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 21 06:17:48 xxxx systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Satyakam
● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-06-21 06:17:48 CEST; 19min ago Docs: man:nginx(8) Process: 26937 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 26938 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Jun 21 06:17:45 xxxxxxx systemd[1]: Starting A high performance web server and a reverse proxy server... Jun 21 06:17:45 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:46 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:46 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:47 xxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:47 xxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:48 xxxxx nginx[26938]: nginx: [emerg] still could not bind() Jun 21 06:17:48 xxxxx systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Jun 21 06:17:48 xxxxx systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 21 06:17:48 xxxx systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Check what other service you are running on port 80
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
nginx can be runned with django?
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
and also flask can be?
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-06-21 06:17:48 CEST; 19min ago Docs: man:nginx(8) Process: 26937 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 26938 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Jun 21 06:17:45 xxxxxxx systemd[1]: Starting A high performance web server and a reverse proxy server... Jun 21 06:17:45 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:46 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:46 xxxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:47 xxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:47 xxxxx nginx[26938]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jun 21 06:17:48 xxxxx nginx[26938]: nginx: [emerg] still could not bind() Jun 21 06:17:48 xxxxx systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Jun 21 06:17:48 xxxxx systemd[1]: nginx.service: Failed with result 'exit-code'. Jun 21 06:17:48 xxxx systemd[1]: Failed to start A high performance web server and a reverse proxy server.
can you please give config file in pm message
Anonymous
Which is the best Email sending API in Django? I use API by sendgrid. Can other alternatives?
Geraud Ben David
smartchoice.uz
Great work!
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
Yes
i thinked gunicorn is running flask apps
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
and django to
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
but best is mailgun i think
Anonymous
but best is mailgun i think
Thank you for helping out. I saw the pricing of the mail gun it's a little expensive. Sendgrid is half the price of it. Any specific reason for it?
Momin
Guys i made cusutom registration and login process and worked well now i want display the username on my home page of the usre who is logged in, i tried, but it dispay "hello none "
Anonymous
Can ayone help me
request.user.username
Anonymous
request.user.username
Use this inside your view.
Momin
If you want i can shoe you the picture of my code
Momin
And my model name is Persob
Momin
person*
Anonymous
Use this inside your view.
It will fetch you the username of the current logged in user.
Momin
And it is custom model
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
Momin
It is not related to inbuilt User please help
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
Momin https://www.sendinblue.com/
d̴̮̓a̶͓̅r̷̡͒k̸̰̃s̸̙̆i̵̝̽d̶̠̎é̴͜h̴̡̓ä̷̝s̵̠̅h̵̗̄
try this one
Momin
Momin https://www.sendinblue.com/
Its for digital marketing
Momin
request.user.username
It is printing superuser username
Yatin
Hey guys what would be the concept of login without using django model?
Shihasz
It is showing the superuser name
You need to log out from admin page. A session can handle only one request at a time
Alessio Balderi
is it possible in django model to add a constraint to dates? For example if I only want in the DB future dates
Alessio Balderi
(I did that with triggers in mySQL)
Anonymous
Hey guys what is Django rest framework and where it is used why it is so popular
Tushar
how to apply two validators on single field
Alessio Balderi
I'm getting this error when trying to create either a new project or a new app, what could I do? I've tried to uninstall and install it back but nothing changed
Alessio Balderi
CommandError: C:\Users\uni\Desktop\manage.py already exists. Overlaying a project into an existing directory won't replace conflicting files.
Mindru
Do You have two files manage.py?
Roman
Hi guys, I have got question about DRF. How can I create (or tell me the name to google) this type of Serializer that I don't need to store Model, I just need to validate input and response based on some calculation
Mindru
serializers.Serializer
Mindru
from rest_framework import serializers class CommentSerializer(serializers.Serializer): email = serializers.EmailField() content = serializers.CharField(max_length=200) created = serializers.DateTimeField()
Roman
Okay, so I do this
Roman
But how to I get the response on create ?
Roman
Like where serializer.data is comming from ? What method
Mindru
I don't know If You are asking about it but If you want to access data after serializing object there is drf serializer function to_representation