Re: Local host not opening

2021-06-16 Thread Krish M
Depending on your setup, if your database is pointing to 
production(Heroku) then the local migrate would be make changes to the  
Heroku database.
If not, you would need to follow best practice below:

Django Migrations - Heroku Help 
<https://help.heroku.com/GDQ74SU2/django-migrations>

On Wednesday, June 16, 2021 at 1:59:32 PM UTC-4 rhythm...@gmail.com wrote:

> Hey Thanks for your reply.
> I forgot to add the database url in the settings.py file. I added that and 
> it worked.
>
> But I've got a doubt, now I would be working on local host and if I update 
> 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  wrote:
>
>> 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 heroku and have used aws 
>>> s3 and amazon RDS Postgres database.
>>> Now when i try to run python manage.py runserver in my cmd it gives 
>>> error - 
>>> psycopg2.OperationalError: fe_sendauth: no password supplied
>>> I have set os.environ.get to name, user, password and host variables in 
>>> the database section in settings.py.
>>> What should i do to resolve this? Please someone help.
>>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/a98496c5-e2a5-493d-b7a7-e8a05f51838an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/a98496c5-e2a5-493d-b7a7-e8a05f51838an%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/66af5d1d-20c5-4e15-836b-60bd73ac1542n%40googlegroups.com.


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 then keys and 
> values are not present in the session.
> But session is available in both case.
> Please help me on this.
>
> Thanks
> Bhoopesh sisoudiya
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/30ea84ad-7417-45e4-881b-001d9b8c7f29n%40googlegroups.com.


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 heroku and have used aws s3 
> and amazon RDS Postgres database.
> Now when i try to run python manage.py runserver in my cmd it gives error 
> - 
> psycopg2.OperationalError: fe_sendauth: no password supplied
> I have set os.environ.get to name, user, password and host variables in 
> the database section in settings.py.
> What should i do to resolve this? Please someone help.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a98496c5-e2a5-493d-b7a7-e8a05f51838an%40googlegroups.com.


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 nothing us 
here can help with.

I am assuming, if you have access to the backend code (Python, Django) you 
should hire someone to fix that bug for you, you can point them to Jul 
response.

On Tuesday, June 15, 2021 at 10:45:05 PM UTC-4 Nikeet NA wrote:

>
> In your withdraw view you have return render this should be missing check 
> inside if statements or inside your custom logic which you have written 
> without seeing the actual code its hard to tell.
>
> On Wednesday, 16 June 2021 at 03:14:26 UTC+5:30 Ken Smith wrote:
>
>> jul, thank you so very much for your very simple and honest answer. This 
>> was the best response I could have ever received from anyone and I 
>> appreciate it. I'm getting a bit old at 66 it seems my brain doesn't work 
>> as good as it did even 10 years ago for learning something as difficult as 
>> coding. Although your suggestion makes good sense and holds merit. I do 
>> thank you for your response. I only ask one more simple thing can you tell 
>> me which line of the code the HTTP response is missing from.
>>
>> Your answer has really opened up my brain to the possibility that the 
>> website has left that out on purpose so that members cannot withdraw their 
>> money.
>>
>> Again thank you so very much for your response and have a wonderful day
>> On Tuesday, June 15, 2021 at 5:39:54 PM UTC-4 jul.ale...@gmail.com wrote:
>>
>>> Pretty easy to be honest. The web page need an http response and it's 
>>> give none instead. :) 
>>>
>>>
>>> If you don't know about the code, maybe you should hire a developer or 
>>> learn by yourself. 
>>>
>>> El mar., 15 de junio de 2021 3:14 p. m., Ken Smith  
>>> escribió:
>>>
 There is the issue to solve that is the result of pressing the button 
 to complete your transaction. And it may be dumb because I don't know a 
 damn thing about  django and I assume that I would get an intelligent 
 response on this forum.  This was in fact a sincere request because I know 
 nothing about this code. If I did I would've discovered it myself. I 
 merely 
 had the stupid assumption that someone would actually consider this a 
 challenge. But apparently not even your up to a challenge maybe it's too 
 hard for you. That is coded in django as I understand I may be wrong. I 
 only read what was presented on the error page. If it's not that would you 
 please direct me to what code it could possibly be as I am not a coder in 
 any way shape or form. I stopped even trying long before these new methods 
 of coding came out. I think the last time I tried to write code was in the 
 1990s. I know there is a solution to my question I just hope there is 
 someone with the intelligence to take on the challenge for me or at least 
 direct me to where I need to go instead of making jokes. Perhaps someone 
 can tell me something about where I need to go or what I need to do there 
 is a lot of money involved in getting this code correct so that I can send 
 the corrected information to the company who owns the webpage. Not 
 everybody here knows how to code some of us are actually wanting some 
 answers to questions that we have. I am by trade an aircraft mechanic. So 
 I 
 can laugh at you if I asked you to go clean the air sock and you don't 
 even 
 know what I'm talking about but I won't because you don't know what I'm 
 talking about. Neither do I know anything about what I presented and I 
 don't pretend to know that's why I asked for some intelligent information. 
 Have a good day regards Ken
 On Monday, June 14, 2021 at 5:21:42 PM UTC-4 jacobgr...@gmail.com 
 wrote:

> Lol what do you expect anyone to do? You just post some random HTML, 
> zero code, no backtrace, nothing to even indicate there is an issue that 
> someone could solve even IF they were willing... This has nothing to do 
> with Django. I don't understand what you thought was going to happen. 
> This 
> is possibly the dumbest "question" I have ever read. I'd be willing to 
> consult at double my normal hourly rate if you are the point of contact. 
>
> On Mon, Jun 14, 2021 at 12:12 PM Kasper Laudrup  
> wrote:
>
>> On 14/06/2021 05.15, Ken Smith wrote:
>> > I sure hope that somebody can take the time to do this. I'm just
>> > wondering one of you brilliant programmers can look at this webpage 
>> and
>> > tell me where the errors are so that it can be fixed? Apparently the
>> > programmers at the website are not as smart as you people are. If
>> > someone has the time and inclination to do so with a please go 

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 value of Package object. 
how can I do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/s3r5EwgjUDYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 'created_dt' %}
{{talk_child.text}} {{talk_child.created_dt}}
{% endfor %}

Below is my class
class Talk(models.Model):
user = models.ForeignKey(User)
destination = models.ForeignKey(Destination)
text = models.TextField()
type = models.CharField(max_length=30)
sup = models.ForeignKey('self', blank=True, null=True,
related_name='child')
created_dt = models.DateTimeField(auto_now_add=True)
thumb_up = models.IntegerField()
thumb_down = models.IntegerField()

class Meta:
ordering = ["-created_dt"]

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 pages, so I am looking a way
to pass global_var to all views rather defining on each view function.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.