Doragonsureiyā
plz forgive my ignorance😔😔😔
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Charanjit Singh
I have question to ask.. I am creating a project which includes more then 30 models and their respective forms. In one scenarios I have to display 15 forms but this 15 forms will be segregated into different tabs under same url. For eg : xyz.com/user Under this there will be different tabs like user details Salary If the user clicks on user details then the url will not be changed and he will redirected to that tab
Charanjit Singh
Like wise if he clicks on salary tab salary form and table will be displayed
Dennoh
So how do I do this
Checkout django formtools NamedUrlWizard class https://django-formtools.readthedocs.io/
Driptamine
1. Ensure your app accounts is added in installed_apps in settings.py before you make migrations
If I paste all unnecessary project files wouldn't it distract y'all
Artyom
can someone look and, if possible, suggest? https://stackoverflow.com/questions/66050675/django-import-from-csvupdate-or-create
;)
hi everybody , is there anyone that Build a barbershop website , that users can booking time
;)
who can help me?
;)
i create a model for customer and one model for barbershop and a model for booking time for this create Book model and use barbershop and customer with ForeignKey .
;)
now i create a view for show booking for anyone
;)
but dont show my query
;)
i dont know the reason for this error , if teree someone to help my send mesage ...
;)
thanks
Anonymous
the value of list_display refers to is_staffdate_joined which is not callable thanks in advance
makeover
Suggest me some django projects ?which boosts my career
Beka
Suggest me some django projects ?which boosts my career
Try to make something like Content Management System (CMS) for library, school, cinema, and hospital. You can also cover with API, unit tests, and at the end deploy your project.
Frederic
Suggest me some django projects ?which boosts my career
I would start with an existing project and add new big features.
Anonymous
how can I pass foreign key id in post request?
Anonymous
in django rest
Fuad M.
Hello people
Fuad M.
anybpdy may help me with my exception while running server ?
Doragonsureiyā
anybpdy may help me with my exception while running server ?
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 ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Mirco
how can I pass foreign key id in post request?
Look at Relationship section inside official doc
Fuad M.
anybpdy may help me with my exception while running server ?
https://stackoverflow.com/questions/48074225/modulenotfounderror-no-module-named-rest-framework-i-already-installed-django
Fuad M.
this is my question. Just did not paste here log because it was long.
Khumoyun
Hello, I am using generic CreateView for my view and form_class in my view. in my form I am using ModelForm . I need use request or self.request in ModelForm reason is If i use self.request.user.emploees,all it returns me Query set. I want use it in College.objects.filter(name=Queryset or request result) But I don't know how? P.S: I am making initial data for select field
H
Hello guys in for i have question
H
{%for blog in model %} <P>{{blog.title}}<p> {%endfor%} Blog = model name Model =instance
H
Is it correct guys ?
H
In html
H
I wrote it
kritikos
In html
Yeah it's correct but model variable should be iterable..
H
Model is context
H
But it doesn't work
H
This code must quering database but it doesnt work idont know what to do
H
send your views
Persian django group solved it thanks bro🌷
Riki
halo can i get reference to make a web with Django
Shubham
Hello team
Shubham
is this correct class AdminHODSerializer(serializers.ModelSerializer): class Meta: model = AdminHOD fields = 'all' exclude= ('admin',)
Shubham
syntactically?
Charly
doesn't seem to be wrong, are having an issue?
Charly
fields = '__all__'
thats because of telegram format
Dileep
django.views.static.serve:
Dileep
what i do for resolve this error
Shubham
doesn't seem to be wrong, are having an issue?
there is no iisue as such im asking is it correct
Charly
Charly
halo can i get reference to make a web with Django
the official web has a veryt good tutorial
Charly
yes
then?
Dennoh
SOLVED: with get_form_kwargs()
Mind sharing how you did it on, pastebin.com?
Himalaya
I'm building a tracking panel for an affiliate marketing company. And they want to keep track the data (click/visits and as well as leads) of campaigns running by them. I have done the both parts using pixel tracking like generating a session on visiting the campaign link through our masked URL and generating lead data using pixel placed on client's campaign's next page. Now I require to do the same using through Postback URL as pixel tracking is not that much efficient. And for that Postback Tracking or say Server 2 Server tracking I need help. If anyone can help? For checking how pixel tracking is being done please follow the below link i have mentioned all the information here https://docs.google.com/document/d/1-5VCKpui4bESZIs2FdNr3l1KbdFG8CA6IKXNZMCS-BI/edit?usp=sharing
Dileep
which one?
Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Not Found: /shop [05/Feb/2021 10:05:27] "GET /shop HTTP/1.1" 404 1729 Not Found: /shop [05/Feb/2021 10:05:28] "GET /shop HTTP/1.1" 404 1729
Dileep
Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/shop Raised by: django.views.static.serve Directory indexes are not allowed here.
Dileep
i have been created in settings as well as uls also
Charly
i have been created in settings as well as uls also
one does not create urls in settings
Charly
show your urls.py code
Dileep
STATIC_URL = '/static/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_ULR = '/media/'
Dileep
urlpatterns = [ path('admin/', admin.site.urls), path('shop/', include('shop.urls')), path('blog/', include('blog.urls')) ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Dileep
what can i do
Charly
well forget that, that seems to be the problem
Charly
add a / at the end of the url in your browser
Dileep
http://127.0.0.1:8000/shop/
Dileep