Martín
Google how to deploy with Python and django
Martín
There are many services out there. Heroku and PythonAnywhere are two of them I can think of
Martín
That are also Python-friendly
Martín
DigitalOcean
Martín
Good luck! 🙂
Martín
Glad to help
Mihir
Hello guys , how to install mysqlclient for django in Ubuntu
Martín
nice, just ask for help when you search again and can't progress
that's the attitude, search, try and ask if you get stuck
Mihir
apt install
Martín
but I discourage using mysql with django unless you are forced to, better use postgres
Mihir
I have a error when installing mysqlclient
Martín
Mihir
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Martín
well some times it shows these errors but it is successfully installed
Martín
did you try to run it? did you have any problems?
Charles
hello guys ,please how i can insert datas in nested serialiazers in django rest framework..
Anonymous
I got an error in django when i try to upload image from modelform it's not working
.
I wonder how this site is coded
Anonymous
It's says image file field cannot be empty but i have put image there
Anonymous
Help me
Hardik
I want one help
Hardik
Regarding small project
Roshan
Hardik I'm here
Hardik
I want to create small project
Hardik
Wait I'll send the details
Hardik
Django Python Machine Test:- (with entity framework code first approach ).
Note : - Please do not use scaffolding
Below are the requirements to be developed for machine test :
1. Category Master with CRUD operations
2. Product Master with CRUD operations. A product belongs to a category.
3. The product list should have pagination on the server side, which means extract records
from DB as per the page size on the view.
So if the page size is 10 and the user is on page
9 then pull only records from 90 - 100.
Hardik
Yes
Hardik
I know
Anonymous
OK
Hardik
But let me explain what to for this project
Hardik
Just give me logic for this
Roshan
requirements are pretty clear Hardik . You just have to create basic CRUD API endpoint and for the 3rd requirement you can use a limit variables while requesting the next page.
Roshan
I think this is some kind of assignment
.
I thought you might have an idea.
Thanks you for help
Anonymous
What is the meaning of instance in django
carson
Can someone help me .
I don't know why Form is not rendering.
http://dpaste.com/15N7EYC
Anonymous
Hello) why the template has broken styles?No colors) The template is written in Bootstrap) Added templates in Django
𝐀𝐁𝐃𝐔𝐋𝐀𝐙𝐈𝐙
Anonymous
#
If there is any one who is familiar to react native and django please inbox me, I need ur help
Maja Baki
<class 'teach.admin.PostAdmin'>: (admin.E108) The value of 'list_display[0]' refers to 'title ', which is not a callable, an attribute of 'PostAdmin', or an attribute or method on 'teach.Post'.
<class 'teach.admin.PostAdmin'>: (admin.E112) The value of 'list_filter' must be a list or tuple.
pls
Maja Baki
pls help me
Muflone
John
is it possible in django to delete a file from my local machine using a button?. .
st9_8
inchidi
https://www.djangoproject.com/weblog/2019/dec/18/security-releases/
John
Yes
how sir? any idea sir? thanks!. .
John
st9_8
John
Yes
oh. okay. . how about downloading a file from the server then storing it to my local machine Download directory, is it possible?. .
st9_8
st9_8
On server or in your local machine?
st9_8
st9_8
John
You can do this from client side.
how sir? any link or idea on how can I do it? Do I need to do "os.chdir(path/to/localmachine)". . something like this to access my localmachine?. .
John
st9_8
yes. .
Hmmm if you use the method I send you before, you can only delete files present in your server, not in your local machine.
John
John
st9_8
I suppose that you local machine is the client, you use it to access you website hosted on heroku using your web browser isn't it?
st9_8
John
Firdaus
Maybe what you need is Server <-> Client architecture. Where the client is a GUI-based (Tkinter for example) Python application. This client communicates with the Server application (REST API for example).
Where your users installs this Python application on their machine. That client application would then have access to the local machine's files and directories (limited to what the OS allows).
John
John