Vitaliy
You should learn both of them.
Siddharth
Which deployment tool should be used for django on windows ?
Jamshid
Bwaks
Hello i have this class ------> class ApproveApplication(View):
def post(self,request,slug,**kwargs):
job = get_object_or_404(Job, slug = self.kwargs['slug'])
application =Application.objects.filter(job=job)
application.status ='Approved'
application.save() --------------> i am trying to write this link to execute the class function -------> <a href="{% url 'approve' job.slug .application.application_uuid %}" class="btn btn-primary btn-sm">Approve</a> and this tis the url ---------->path('<job_slug><application_application_uuid>', ApproveApplication.as_view(),name="approve"), -------what could have done wrong
Suhaib_0.0
Jamshid
Maxim
Vitaliy
Hello i have this class ------> class ApproveApplication(View):
def post(self,request,slug,**kwargs):
job = get_object_or_404(Job, slug = self.kwargs['slug'])
application =Application.objects.filter(job=job)
application.status ='Approved'
application.save() --------------> i am trying to write this link to execute the class function -------> <a href="{% url 'approve' job.slug .application.application_uuid %}" class="btn btn-primary btn-sm">Approve</a> and this tis the url ---------->path('<job_slug><application_application_uuid>', ApproveApplication.as_view(),name="approve"), -------what could have done wrong
Decide whether you want it to be a POST request, as it is declared in your class, or a GET request, as you do it in html. Also, throw a "slug" argument out of your method.
Vitaliy
Kalandhar
Olami
Pls, can anyone help with any material on testing API with drf
Manoj
I am using Celery for asynchronous task, Celery Beat for scheduled task with RabbitMQ as message broker in my Django project.
I need some help regarding error handling and logging. Any code sample or sample repository link will be helpful.
Need help - Celery worker log file is not auto deleting.
hgkr
Hi, Is there anyone to help me in Turkish language in Django? Can you write from private if available? thanks.
Prince
Jitendra Kumar
In model how to relationship between Branch , Semester and Student information ??
Vitaliy
As usual, in any way you consider reasonable.
| Programmer |
i have a question about bookmarklet in django 3 by example written by antonio mele
i searched many times about it but i didn't get right answer
I can't find a way to drag the bookmarklet button to the chrome or firefox toolbar
would you please guide me about it?
Anurag
I have tried both tinymce and ckeditor but in both i am not able to write anything inside django admin panel
Julio
guys do you know why this error is comming out?
Julio
Error: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
Vitaliy
That's because you don't have permission to do what you're trying to do.
Vitaliy
Try to use another port number, for example
Julio
ok thxthx
benshi
anyone worked with multiple image upload in DRF??
Anonymous
anyone give me django rest api tutorial, how to login? register? and all
ARBAAB
how to run django project on windows startup?
Anonymous
ARBAAB
Anonymous
Got yo windows run
Type shell:startup enter
It will open a file
There give
CD project folder
python manage.py runserver
ARBAAB
Anonymous
Rest framework tutorial
SK
I am getting an error .
Relation "table name " does not exist
Anonymous
SK
Already applied
SK
At the time of migration no error showing
Anonymous
Make migrations and migrate both done?
Khasanboy
can anyone tell me about how to change django admin dashboard ui, or is there any existing better ui template which I can easily install
SK
Anonymous
Already did
Check the foreign key, may be you gave wrong model there
SK
Same error
Coders Needed Eth
Coders Needed Eth
or Django Material Admin
Khasanboy
how can I install them instead of default dashboard ui?
Coders Needed Eth
look in the docs
Coders Needed Eth
google'em
Khasanboy
ok I got it
Khasanboy
which one is the fastest, I think like if dashboard expand with modern ui it requires lots of js and css and it causes to slow down reload speed, right?
Coders Needed Eth
if you want sth simple material admin is cool but Jet Django is way better
Coders Needed Eth
Idk maybe there are others keep searchin
Martín
hello, I'm making a Django webapp against a legacy database, I did a
python manage.py inspectdb databaseName
for getting the models, but when running the tests, Django does not create the tables for these models in the temporal test database
Martín
I guess this has something to do with migrations or the way they are applied
Martín
oh, wait, I think I found the solution
Martín
I had managed=False in the model, auto-generated by default, but I didn't even know what was that for
now I'm having
psycopg2.errors.InvalidCursorName: cursor "_django_curs_139899292825408_sync_7" does not exist
Martín
apparently this comes from this?:
psycopg2.errors.UndefinedTable: relation "mySchema.myTable" does not exist
Adie
Can someone share good resource for django logging?
Maxim
Adie
Logging in django service
Hunde
How to create rest api for one to one relationship
Martín
Martín
So you can read that, the official page for logging in Django docs and the same in python docs
Akshay
raise InvalidName("database names cannot contain the " pymongo.errors.InvalidName: database names cannot contain the character ' '
Akshay
Why am i getting this error ?
Maxim
Raj
I tried to run test cases on models on the cmd prompt and ended up getting "Windows fatal exception: access violation" error. Can anyone know what does this means ?
Maxim
Deleted
Hey guys, how to use the column in temporary table for the following update in MSQL?
Deleted
SELECT * FROM(SELECT distinct t.id, t.title as Textbook,
GROUP_CONCAT(concat(ci.discipline_code, ci.code, " (" , ci.type , ")") SEPARATOR ', ') as CourseCode FROM
tms_local.bms_material m,
tms_local.bms_title t,
tms_local.bms_course c,
tms_local.bms_courseinfo ci
where t.id > 1 AND t.id = m.book_id
and c.id = m.course_id
and ci.id = c.id
and isbn != 'NA'
GROUP BY t.id) AS temporary_table;
UPDATE tms_local.bms_title
SET tms_local.bms_title.thumbnail = temporary_table.CourseCode
WHERE tms_local.bms_title.title=temporary_table.Textbook;
Deleted
Now got error, seems temporary_table could be used in the following update
Deleted
https://stackoverflow.com/questions/69516278/how-to-use-the-column-in-temporary-table-for-the-following-update-in-msql
Maxim