King Phyte 🐍
Yeah, it's my company server, we can't install somethings
If your company authorizes you to do that, I'm sure they'll allow you to install Python, no?
Nikhil
Can anyone suggest some good resource for learning design patterns in django
~~~
what all we need to ignore when we deploy project in git?...studying basics😁
Batman
Hi everyone, I'm trying to make use chunks in celery, but the example in the docs is pretty unclear, it says to pass an iterable but doesn't seem to work with a list
Nikhil
what all we need to ignore when we deploy project in git?...studying basics😁
just go to gitignore.io and type the name of framework, you will get all the files to ignore. Just copy paste it in your local gitignore file.
.
I am migrated in my laptop It's working fine But when I am migrating in the heroku it's saying like Relation doesnot exists for accounts_marks
.
Yes
Faisal
Can you show the error
.
It's working fine in laptop ...
.
K
The
https://del.dog/cromorfexi when I try to run this i get AttributeError: type object 'Command' has no attribute 'as_view'
The
https://del.dog/cromorfexi when I try to run this i get AttributeError: type object 'Command' has no attribute 'as_view'
also when I remove the class based view, i get this error : WSGIRequest' object is not subscriptable
The
somebody help me please, im fed up with this for 3 days
The
from django.core.management.base import BaseCommand
Sadra
from django.core.management.base import BaseCommand
Use generics. What is this view supposed to send? A list of objects or a specific object from the database??
Charly
that isnt possible ?
Nope, use views for view commands for commands
The
ooh
The
ok let me try it in that way, thankyou very much brother
Charly
you should read the django tutorial before just triying random things that make no sense
The
do you have a link to share with me for refering?
The
ok
Charly
https://docs.djangoproject.com/en/3.1/
The
thankyou, and also I want to assign these command line stuff to a button, is that possible?
Charly
or you use the button or you use de cli
The
Im rebuilding the project. Right now it is in cli form, and i want the same stuff assigned in a button.
Charly
then put that code insdie the view
Charly
doesn't make sense to call a cli from the view
The
then put that code insdie the view
https://del.dog/penohayfup
The
This is the project
Charly
read the django tutorial
The
Is it possible to convert this to web view
The
?
Charly
yes
Charly
just not copy pasting directly into a django project, you'll need to think very well how to traslade it to a web app
The
ok
The
thanku very much for the guidance
The
if you have a link on the same topic, i requestyou to share me cz i searched a lot and didnt get a solution. Im new to this, hope you would share
The
thankyou very much
Charly
there is no tutorial for your specific case
Charly
you'll need to learn first django then try to adapt your program
The
ok
Anonymous
hi friends best method for create profile user in django?
Doragonsureiyā
Anonymous
i want create profile for any user. but doesn't know what to do? with what method
Anonymous
That should be a regular view
tnx. only use views? not need used of another method?
Doragonsureiyā
tnx. only use views? not need used of another method?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Charly
with mixin ?
mixins in views?
Charly
yes
then is the same method I proposed
Tony
Guys, I want to create users, for example students and teachers using admin page. And I want to give each user admin and password using admin page. Then I want them to log in using a login page where they have options to login as teacher or student by entering username and password. How to do it? Pls help me guys
Krunal
Hi, I am facing problem while using inline jQuery. Can someone help me?
Tony
Do you mean a model for the profile ?
Guys, I want to create users, for example students and teachers using admin page. And I want to give each user admin and password using admin page. Then I want them to log in using a login page where they have options to login as teacher or student by entering username and password. How to do it? Pls help me guys
Anonymous
You can start by creating custom user model
Kr0m
Hello i am new programming in django, i am trying to use django.contrib.auth.urls for user login/logout/change_password functionalities. I have coded login/logout without problems but change password functinality seems not to work correctly, it changes user password but doesnt redirect me to password_change_done template, it tries but the url isnt found: https://del.dog/mopubastip
Kr0m
My project urls: https://del.dog/sesingorin My App urls: https://del.dog/pelymocuck
Kr0m
And i can see in django.contrib.auth.urls the correct urls: cat /usr/home/kr0m/supercoolEnv/lib/python3.7/site-packages/django/contrib/auth/urls.py https://del.dog/pecanadohe
Kr0m
I tested that the url is found correctly from my testing template and i am redirected to password_change_done template: <a class="dropdown-item" href={% url 'supercoolApp:password_change_done'%}>done</a>
Kr0m
The problem seems to be that password_change is not able to see password_change_done url
Kr0m
Any idea?
Prashanth
Django channels not working. What can I do..??
Anonymous
Create user, generate random password, send email via admin?. Help?
Anonymous
Help me out!!!
Anonymous
Is anyone solve my problem??
Anonymous
Is there anyone???
Coding_Lover♥️👩‍💻
Resources for learning Django..i m new here
Anonymous
Create user, generate random password, send email via admin?. Help?
ashkan
Hi Django password reset. Not sending mail what is problem?