Re: How to get object id from database?

2019-05-25 Thread anchal agarwal
Thanks . It worked !! On 26-May-2019 5:05 am, "Rob Gmail" wrote: > Look at the new Boston.com he did a tutorial on exactly this issue > > Rob > 203-671-6514 > Sent from my mobile device, please excuse the typos. > > On May 25, 2019, at 7:25 PM, Yoo wrote: > > Maybe try album__id (two underscores

Django compressor issue - media assets from the forms.py won't update in the frontend django template

2019-05-25 Thread Danny Blaker
We are currently experiencing an issue with the Django compressor: We have an app that has forms.py and its media assets from the forms.py won't update in the frontend django template (only stuff inside the django compress tag won't update). This problem came about when we initially included ex

Re: How to get object id from database?

2019-05-25 Thread Rob Gmail
Look at the new Boston.com he did a tutorial on exactly this issue Rob 203-671-6514 Sent from my mobile device, please excuse the typos. > On May 25, 2019, at 7:25 PM, Yoo wrote: > > Maybe try album__id (two underscores)? Or try album_title as defined in the > Album model. I also advise not

Re: How to get object id from database?

2019-05-25 Thread Yoo
Maybe try album__id (two underscores)? Or try album_title as defined in the Album model. I also advise not to expose your primary key in the URL. If the above did not work, check Django documentation: https://docs.djangoproject.com/en/2.2/topics/http/urls/ On Saturday, May 25, 2019 at 2:46:58

Re: Right method for url mapping

2019-05-25 Thread Yoo
First one. Usually I'd have it be views.index. Otherwise, the first one is perfectly fine. Need explanation? On Saturday, May 25, 2019 at 7:14:18 PM UTC-4, Saeed Pooladzadeh wrote: > > Hello > > Wich of them is the right method for url mapping: > > path('', views.show, name='index'), > > or > >

Too many tables with 10 columns each?

2019-05-25 Thread Yoo
There are 200 tables with 11 columns, including 4 foreign keys. Is 200 tables too many tables? This is the error I'm getting: Operations to perform: Apply all migrations: admin, auth, contenttypes, public, sessionsRunning migrations: Applying contenttypes.0001_initial... OK Applying auth.0

Right method for url mapping

2019-05-25 Thread Saeed Pooladzadeh
Hello Wich of them is the right method for url mapping: path('', views.show, name='index'), or path('index', views.show), Regards, Saeed -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

How to get object id from database?

2019-05-25 Thread anchal agarwal
I am currently working on a django project in which there is a music app. The models of this app contains Albums and Songs. I want to return the http response when the django receives a url as /music/712 , here 712 is the object id. Please help me out in resolving the issue.Thanks in advance. Here

Re: Hosting

2019-05-25 Thread Subramanian Sridharan
I prefer PythonAnywhere for hosting. On Saturday, May 25, 2019 at 5:27:12 PM UTC+5:30, Prakash Borade wrote: > > Friends tell me is hostgator.in server support django or not. > -- You received this message because you are subscribed to the Google Groups "Djang

Re: Hosting

2019-05-25 Thread Tim Chase
On 2019-05-24 23:19, Prakash Borade wrote: > Friends tell me is hostgator.in server support django or not. Hostgator used to be a decent company until they were bought out by EIG, a parent company with a reputation of buying up good hosting companies and turning them into a bucket of suck. They o

Hosting

2019-05-25 Thread Prakash Borade
Friends tell me is hostgator.in server support django or not. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post