Irteza
I have django project with postgres
I want to send everything to my friend,
Whole django file so he can run it easily in his laptop
How to do it, i tried sending him zip but its not working well,
Can anyone tell me stepby step process
Pranab
I am newbie to django.
The error that i am getting in my terminal is
GET /static/style.css HTTP/1.1" 404 1786
i had even added the
STATIC_URL = '/static/'
STATICFILE_DIRS =[
os.path.join(BASE_DIR, 'static'),]
BASE_DIR = os.path.abspath(os.path.dirname(name))
Mirco
Mukhil
bro i can't open http://127.0.0.1:8000/Desktop%20Printers
already add path in url
path('Desktop%20Printers',views.test,name='test'),
any issue for space ( % )
models.py
your_choices = (
('Desktop Printers', u'Desktop Printers'),
('Industrial Printers', u'Industrial Printers'),
('Direct Thermal Printers', u'Direct Thermal Printers')
)
printer_type = models.CharField(max_length=160, choices=your_choices, null=True, blank=True)
pls replay bro
Anonymous
How to create domain name in django from 127.0.0.1:8000 to another domain name?
Anonymous
sham
how to add and search employee using django python and my sql
Mirco
Rahkmanuly
Not jango
Rahkmanuly
DJANGO
Anonymous
Why am I getting error in windows 7 32 bit after pip install mod_wsgi command?
Anonymous
Set path of python
Mukhil
bro i can't open http://127.0.0.1:8000/Desktop%20Printers
already add path in url
path('Desktop%20Printers',views.test,name='test'),
any issue for space ( % )
models.py
your_choices = (
('Desktop Printers', u'Desktop Printers'),
('Industrial Printers', u'Industrial Printers'),
('Direct Thermal Printers', u'Direct Thermal Printers')
)
printer_type = models.CharField(max_length=160, choices=your_choices, null=True, blank=True)
any one can
DD
Is that any way to prevent automated login as admin in the application while admin logs into admin panel ?
I'm getting logged in as admin in application when in the another tab I log into the admin panel with admin credentials
Mirco
Akhmad Osmanov
Hi. How do you solve the problem of a large number of custom methods in the model?
Njain
Hello all can you please give me suggestions abou invoice number in django how i can give invoice number views and auto increment when a new order is prepare
Yogi
How to create blog website using Django...
Vadym
Wagtail, puput
Yogi
Ohk
am π
data='arvind'
payload1="{\"text\":\"{0}\",\"target_lang\":\"hi\"}".format(data)
print(payload1)
Giving me error
Mukhil
http://127.0.0.1:8000/Desktop%20Printers
how can remove % from url
Mukhil
<a href="{{i.printer_type}}">{{i.printer_type.replace(' ','') }}</a>
William
I think your URL is wrong
William
Check djsngo documentation about urls
Mukhil
in my models Desktop Printers
Mukhil
url not support "space"?
William
What do you want to do?
William
Mukhil
ok
Mukhil
<a href="{{i.printer_type}}">{{i.printer_type.replace(' ','/') }}</a>
pat
How can I send the content of a json file into a sqlite model?
Standalone python script or directly with django?
William
William
Use "/{{}}"
Mukhil
space included in Desktop printer
so i need to replace to "/"
MYIL
Any ERP using Django???
JP
Mysql client ki error aa rahi, uska package install karne ke baad bhi!
To koi solution de sakta he?
Kashif
Hello guys,
I'm getting dates in "1356998400000" this format. How I can convert it into normal date like 1/1/2013.
Mukhil
<a href="{{i.printer_type.distinct()}}">{{i.product_type}}.{{i.printer_type.distinct()}}</a>
Mukhil
Could not parse the remainder: '()' from 'i.printer_type.distinct()'
Kashif
whatsinaname
The data of my user model is being saved under another model, can anyone help me figure out why is that?
William
Anonymous
Anonymous
from datetime import datetime
Njain
Hello all can you please give me suggestions abou invoice number in django how i can give invoice number views and auto increment when a new order is prepare
Kashif
Shreya
Could anyone please tell me how to select all the checkboxes (which are multiselect checkboxes) by default in django???
Shreya
I tried to set initial value as initial=[i[0] for i in choices]
But its not working.
Shreya
can anyone tell me some way to implement it ???
Anonymous
T I T T U
When I deploy digital ocean in Django projects
Postresql occurs error
whatsinaname
I can't add user details into already existing User model
pat
What a wonderful worldwide community.. I want to thanks all the good people here helping others 👌👌 I hope you will make it!
Anonymous
Roger
Hello there!
hi, i would like you to help me with this
I'm using python 2.7 and django 1,11, the project was created with that.
I have to show 10k rows in a table, I can do it with datatables and json, but is to slowly.
How can I improve the response time, the query and the json?
I appreciate your help
Trials
Roger
use backend responses in datatables
i did it a while ago, but the pagination was slow because it use a .count() in the query, besides the hit to database was too much
there is another way?
Pieas
Hello, I've noticed on elementary.io website, on custom pay what you want donation input box, you cannot put anything other than numbers. Any idea how to do that?
Michael ✨
Has anyone tried oxxo-Stripe?
Doragonsureiyā
Has anyone tried oxxo-Stripe?
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Michael ✨
Hello, I need help on oxxo-Stripe
Doragonsureiyā
Hello, I need help on oxxo-Stripe
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Shreya
Shreya
Shreya
Krishna
Hi, I have built a form in dango, and further wants to add new fields dynamically based on the value of one field, and this process may be repeated any number of times, plz suggest something
Saboor
Can anyone guide me about the jwt token in django
Doragonsureiyā
Can anyone guide me about the jwt token 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 first results
Saboor
cj