Anonymous
Who knows the rest framework tutorial?
Anonymous
help me
Pedro
help me
...
Ask the concrete doubt. If anyone knows, and want, will answer you.
Anonymous
Opeyemi
good day, i would ask them really good Django developers, at what point did you get really good with Django? was there a particular course, or something you read that made you really understand Django? maybe there is something i am missing? or was working in a team with experienced people the turning point? I need pointers.
Anonymous
How do I link jquery to my django app,have try all method online not working please help
Anonymous
please suggest crypto wallet for use in django
maroong
Wise decision
Anonymous
Anonymous
Am using root method
Anonymous
It is possible to provide web services/systems (like CMS) working alone and not knowing about design/UI/UX?
I got a domain a few months ago to try to provide web services on my own (because it's so hard to get a job here), but I got discouraged when I had to do the landing page UI, because I'm not good with graphic design.
So I searched and found several sites that show many pages ready, so I can just look and code (and modify as I wish). But wouldn't that be a bad idea for the customer? For example, saying something like "I work (or, we work, like it's a company, but it's just me behind it) only with the development part, you can look at these sites and say how you want me to do it, or you can I hire a web designer to create the pages and I develop them. "
Anonymous
Anonymous
Anonymous
Yar
Hello guys! I want to rewrite my flask webshop on django, but I can't choose suitable e-commerce stack, for humans.
Looking for longclaw, django-shoop, wagtail, but I doubt.
Site tasks(all of this already implemented on flask, templates, etc., but tape-less/safe backend is the question):
• Visual seat selection and booking(do not allow to users to buy the same ticket)
• Cart
• Payments with Yandex.Kassa(webhooks)
Yar
Maybe someone before created too specific things, like this. I would be grateful for experience
Anonymous
hi guys ı have problem ı wanna test my project ı try python maange.py test .. after ım see this problem ... ValueError: Related model 'shop.Product' cannot be resolved
Anonymous
anyone see before this problem ??
Anonymous
its shop model
Anonymous
ı see shop in my intal apps
Anonymous
u wanna say this ?
Yar
installed_apps
Anonymous
ı must write shop ? there
Anonymous
yeah allready there same problem mate
JZA
anyone use emacs for django development? familiar with pony-mode?
Anonymous
Am add it offline
Also in the html just link to the file in the django project folder.
maroong
My views.py output isn't showing in my admin. I created a model for it
Anonymous
Anonymous
It's called news your model?
maroong
My app is called news,
model is called headlines
Anonymous
So you need to add headlines in admin.py
maroong
Ok,will do.
Nicolas
Hey guys
Nicolas
class CategoriesList(ListView):
model = Category
context_object_name = 'categories'
if request.user.is_staff:
template_name = 'categories/categories.html'
else:
template_name = 'categories/categories_stuff.html'
Nicolas
I have this code. I wanna show a different template if the user is staff, but i don't know how do it
Mirco
Mirco
Set the default template name to categories.html
Nicolas
class CategoriesList(ListView):
model = Category
context_object_name = 'categories'
def get_template_name(self, request):
if request.user.is_staff:
template_name = 'categories/categories.html'
else:
template_name = 'categories/categories_stuff.html'
return template_name
Nicolas
Mirco
I don't remember if there's that method but you can use the get() method instead of post() for example
JZA
anyone uses emacs with django
Mirco
Nicolas
Show the code
class CategoriesList(ListView):
model = Category
context_object_name = 'categories'
def get(self, request, **kwargs):
if request.user.is_staff:
template_name = 'categories/categories.html'
else:
template_name = 'categories/categories_stuff.html'
return template_name
Mirco
Doragonsureiyā
anyone uses emacs with django
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 50k+ people the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
Nicolas
Not working ? Any error ?
Nop, not working. The error is: the object 'str' does not have the attribute 'get'
Nicolas
I already solve it
Nicolas
Thanks for your help
Mirco
John
I have this line of code for deleting a text file in media folder:
os.remove(settings.MEDIA_ROOT + "/logs/sample.txt")
in localhost it is deleting the file in the media folder when when I deploy the app in heroku its not deleting the text file, anyone encountered this kind of problem? TIA.
Anonymous
John
Anonymous
We define media root, media URL in our settings file
Nikhil
I have two models in models file 1)category 2)product and used category as foreign key in category field of product model.
How should I structure views and template file to show all product category wise separately in homepage
Anonymous
who knows a good rest framework django tutorial
Muslim
Dishant
Hey,
Example for Aysc Method in views django rendering on template.
Thanks.
JZA
hi I am having issues trying to use django from one box to the other through github
JZA
I use virtualenvwrapper, and when I commit the project and pull it on a different box I get an issue when running on the manage.py startapp for example
JZA
https://pastebin.com/RkvGwPPd
JZA
what would I need to have on a new box before running anything from a git environment?
should I also upload the virtualenv with the django code?
Do I need to do a migration as soon as I pull the project?
Adarsh
What should I study first
Django forms or django custom user?
Aswath
hey everyone
Aswath
i wanna use mapbox with django
Aswath
and i wanna implement a location picker for the users to store their locations to the database
Aswath
i also wanna implement a search that can display nearby users on the map .
Aswath
how might i go about doing this thing ?
Aswath
Please help me fellas
Jagadish
Can someone tell the best video tutorial to learn Django.. please help me
Gaurav
Hey guys, i am facing a problem, Whenever I delete a logged in user from the admin panel, user gets deleted and gets logged out automatically but he is still able to acces the homepage of the website which is kind of weird yo see because navbar displays 'login/register' option but body part is still rendered....
P.S. i have used login_required decoration
Aswath
Damian
hello !, does anyone know any library in django for container management?
maroong
Can I use save() twice for two fields in views.py that has two scripts running for one class