Mahesh
But how??
Muflone
Or a postcard
Muflone
Or whatever you prefer
Mahesh
It is possible to send on mobile number
Muflone
Buy a SMS gateway
Near
Guys I have error when modifying models and I get error table already exist and unknown column
Near
AKASH
Delete under all migrations folder file
Muflone
Abrar
How to host django site on a private server
isa
Muflone
How to host django site on a private server
Depends, the simplest but not recommended way is to launch it as you do in your development system, using runserver
Better solutions would be to use a python-mod or a specific web server
isa
AKASH
Darth✧
Abrar
Near
Near
Muflone
migration files should NEVER be deleted or edited after being applied.
you first have to unapply them and later you could safely delete them
thrashing every migration like if it was an unuseful file is the right way to destroy a Django project
Near
Владислав
Is there anyone here who speaks Russian?
Near
Muflone
I just do migrate zero
as you prefer, this is the wrong way to maintain a project and you cannot use such things in production system. learn to use the migrations instead of breaking everything and restart from zero
Анвар
Hi! How to run dynamically multiple bots using django?
Oğuzhan
Oğuzhan
Oğuzhan
If you fake migrations for fields that you already have in database
Near
Oğuzhan
Fake is what you will need
Oğuzhan
Believe me
Oğuzhan
This problem occurs most of the time if you use already filed database
Muflone
schema corruption is not a thing that could randomly happen
it will happen when you change your choices without first applying the migrations or if you delete the migrations, ignoring the previous changes.
django is a powerful framework and it will allow you to change any schema edit without having to touch the database schema by hand. just learn to use the migrations or revert the last if it caused some issue
Muflone
migrations are python sources.
would you delete part of your sources?
Дауран
Guys I have a problem with registration on website and I couldn't save info from member who makes registration
Andrej
Mark
manager = request.POST.get('Manager')
if ',' in manager:
manager = manager.split(',')
for num in manager:
num = get_object_or_none(Contacts, mobile=num.strip(' '))
company[0].manager.add(num)
else:
company[0].manager.add(get_object_or_none(Contacts, mobile=manager))
director = request.POST.get('Director')
if ',' in director:
director = director.split(',')
for num in director:
num = get_object_or_none(Contacts, mobile=num.strip(' '))
company[0].director.add(num)
else:
company[0].director.add(get_object_or_none(Contacts, mobile=director))
how to can I make a general function for both manager and director as both doing the same thing but on different field?
Mark
Andrej
Andrej
Muflone
Rahul
I am creating a site called as hotel booking site. Here how can I filter rooms are available on given check_in and check_out dates.
ASHIL
Is there any ways to build website with django and wordpress
Sojan
Anonymous
anyone has used full calander
Doragonsureiyā
anyone has used full calander
Please don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello I need help on $z"
Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
CJ
Hey plz help me out.
Is giving csrf token in html file using {%csrf_token%} safe
Anonymous
how to add pagniation in django
Doragonsureiyā
how to add pagniation in django
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box write down the same words you asked here
Step 4: Read the firsts results
cj
Anonymous
when i submit check box and radio button value it give me error like this on and off must be either true or fals
Anonymous
e
Enes
Hello guys
Enes
How can i deploy my django project with heroku. I have watch some videos about this but i dont want to use github is this possible?
Mirco
Enes
Can you send me any tutorial link like so please
Enes
Corey Schafer is good but he used github
Florencio
Can anyone point me to a good article about changing the order of rows in a table with Ajax an store the new order in the db?
Shivam
How can I start contributing in Django for Gsoc? Is there anyone who is a Gsoc'er for django org.
Darth✧
Anonymous
Hi i am starting learning django in class views how methods are implemented ?? Usually for methods we class with class name followed by method name..
Where as in class views in url we r giving classviewname.as_view()..
How the methods written are automatically getting called
Anonymous
Can any one explain??
Anonymous
And how to implement custom methods in class view..as i found we can just override dispatch and get methods...wt if more custom methods how we r going overide...
Instead of writing methods models.py and then implementing in views is there any other method to write custom methods in class and write in url to call them??? Can anyone help me with it???
Anonymous
My problem is i want to generate the reports.. but having five filtering options how to filter and generate the reports for any combination of five filters
Anonymous
kancharla
I am new to web,,
Can any one suggest me the configurations I need to have to host my Django application ,database is MYSQL
And suggest me the cheap and best hosting platforms
Rahul
A.M
Rohan
Gunicorn
When did gunicorn become a hosting platform? 🤦♂
A.M
Sorry I thought he asked for configuration, so I mentioned gunicorn