Re: Local host not opening

2021-06-16 Thread Krish M
; the models and execute the > "python manage.py migrate" command, would the changes be reflected in the > database and heroku app or do I need to run the command "heroku . > python manage.py migrate" ? > > > > On Wed, Jun 16, 2021, 11:21 PM Krish M

Re: Mobile session issue

2021-06-16 Thread Krish M
Which one are you using? Browser-length-sessions or persistent-sessions? On Tuesday, June 15, 2021 at 6:50:50 PM UTC-4 bhoop...@gmail.com wrote: > Hi team, > > When I am logining from laptop browser then session storing all keys and > respective vales but when I am trying to login from mobile

Re: Local host not opening

2021-06-16 Thread Krish M
Rhythm, The settings must be in uppercase - try changing it to 'PASSWORD' Without seeing your setting.py (without your credential of course) there is no way to debug. On Wednesday, June 16, 2021 at 1:01:52 PM UTC-4 rhythm...@gmail.com wrote: > I created a django website and deployed it on

Re: Desperately need help.

2021-06-16 Thread Krish M
Ken, Base on what you're asking, and from the source code (view-source) & screenshot, I don't think you have access to the right code to make the fix. Maybe contacting safewayfx.com and letting them know their platform has a bug? If they are unwilling to fix their backend bug, then there is

Getting instance of current in django site admin

2012-09-21 Thread Krish
I have following code in my admin.py class PackageForm(forms.ModelForm): activity = forms.CharField(required=False) class Meta: model = Package class PackageAdmin(AjaxSelectAdmin): form = PackageForm admin.site.register(Package, PackageAdmin) So while editing package, I want to change certain

sorting model data in template page

2011-04-29 Thread Krish
This code works perfectly, {% for talk_child in talk.child.all %} {{talk_child.text}} {{talk_child.created_dt}} {% endfor %} Now, I want to sort all child based on created_dt ASC (something like below), but it doesn't work. How can I get this right? {% for talk_child in talk.child.order_by

Variable to pass in all views

2011-02-26 Thread Krish
Is there any way that I can pass a variable to all views pages (templates) without defining on each view functions. Currently on each view I have to like render_to_response('locations/my_view.html', {'var': val1, 'var2': val2, 'global_var':global_val) variable global_var need to pass all view