Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-30 Thread Iain Stewart
Hi Matt, I followed Nomeh's advice (the last email response to my question) which was to do this within the Pycharm console delete the migrations again, then run this to reset the tracking: so: ... py manage.py migrate --fake [app_Name] zero then: ... py makemigrations [app_Name] ... py

Good usage of native JSON functions and operators in ORM queries

2020-05-30 Thread Shaheed Haque
Hi, I have a model MyModel which has a JSONField() called 'snapshot'. In Python terms, each snapshot looks like this: == snapshot = { 'pay_definition' : { '1234': {..., 'name': 'foo', ...}, '99': {..., 'name': 'bar', ...}, } == I'd

Django json parser

2020-05-30 Thread bharat pamnani
I am a beginner in django and i need to build an app which enter some user data and their activity period by creating model i can do that to store in sql database. The problem is i need to display that data in json format any help will be really appreciated Thanks -- You received this

Django Pagination

2020-05-30 Thread Akshat Zala
Hello, I am finding it difficult to paginate through all the posts My views.py : @login_required def home_view(request): """Display all the post of friends and own posts on the dashboard""" posts = Post.objects.all().order_by('-date_posted') media: MEDIA_URL #

Re: Django json parser

2020-05-30 Thread HJ
you have to do a Queryset inside your view function , something like : @login_required def Home(request): return render(request,'home.html',{}) @login_required def JsonFunction(request): dataset = YourModel.objects.all() data =

Re: Command open postgresql in from cmd in windows

2020-05-30 Thread sunday honesty
@Samuel, I did that and psql now opened and prompted me to enter password for my user name(system). I entered the password I created while installing postgresql and got a fatal error even when I was connected to the internet... PS: the username it gave me during installation is postgres but

Re: Parallel or split payment options using paypal

2020-05-30 Thread John McClain
Due to Covid am not getting any response from PayPal. I have sent many messages On Fri 29 May 2020 at 13:46, Akshat Zala wrote: > Hi John > > I agree with Kasper. > > Regards, > > Akshat > > On Thursday, 28 May 2020 01:31:03 UTC+5:30, Kasper Laudrup wrote: >> >> Hi John, >> >> On 27/05/2020

Re: Django Pagination

2020-05-30 Thread Chetan Ganji
Hi akshat, What is the difficulty? Where have you defined the variable is_paginated? Is it present in the context? On Sat, May 30, 2020, 8:53 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Views.py looks fine ! > > regards > willy > > > On Sat, May 30, 2020 at 7:22 PM Akshat

RES: How to connect Django Logn Sigup API with Flutter

2020-05-30 Thread Samuel Nogueira
Are you using only django? Usually if you want to connect an app with your django backend you might need to use the django rest framework to get the connection De: Anonymous PatelEnviado:terça-feira, 26 de maio de 2020 04:23Para: django-users@googlegroups.comAssunto: How to connect Django Logn

Re: Django Pagination

2020-05-30 Thread maninder singh Kumar
Views.py looks fine ! regards willy On Sat, May 30, 2020 at 7:22 PM Akshat Zala wrote: > Hello, > > I am finding it difficult to paginate through all the posts > > My views.py : > > @login_required > def home_view(request): > """Display all the post of friends and own posts on the

Re: Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-30 Thread Tim Allen
Thanks for the reply, my friend. Unfortunately, no new middleware has been added. Some folks have said clearing the Django cache(s) worked, but it hasn't for me. I've long been a mod_wsgi user, but I think it is time to move on to gunicorn, so I've started moving in that direction rather than

Command open postgresql in from cmd in windows

2020-05-30 Thread sunday honesty
I have been in a message before I could successfully install postgresql on my windows; it seems everyone is using Linux or Mac. Pls can someone help me now... I want to open postgres she'll from my command prompt so I can continue what am learning... The Tutorial am following is using Linux and

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-30 Thread Matt D
> > > ^ Is this where you deleted the migrations? I keep receiving this error when I enter py manage.py migrate products: -- 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

Django

2020-05-30 Thread Ogunsanya Opeyemi
Hi please how do I make a function in JavaScript in django not to function after reloading a page. Thank you -- 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

Re: Customizing Django built-in views such as LoginView

2020-05-30 Thread 'László Hegedűs' via Django users
I was a Django fan since I am freelancer, and introduced to Flask. The best is in Django is 2 thing: First, easy to use. Second: consitent. So I think each of the solution is good if not have side effect to the other. On Friday, May 29, 2020 at 2:31:17 PM UTC+2, Uri wrote: > > Django users, > >

Re: Django Pagination

2020-05-30 Thread Akshat Zala
On Saturday, 30 May 2020 19:20:47 UTC+5:30, Akshat Zala wrote: > > Hello, > > I am finding it difficult to paginate through all the posts > > My views.py : > > @login_required > def home_view(request): > """Display all the post of friends and own posts on the dashboard""" > posts =

Re: Command open postgresql in from cmd in windows

2020-05-30 Thread Jorge Gimeno
Postgres on Windows may have a different story and user interface. You may need to use something like pAdmin to work with it. -Jorge On Sat, May 30, 2020 at 10:20 AM sunday honesty wrote: > I have been in a message before I could successfully install postgresql on > my windows; it seems

RES: Command open postgresql in from cmd in windows

2020-05-30 Thread Samuel Nogueira
Set path For PostgreSQL in Windows: Searching for env will show Edit environment variables for your accountSelect Environment VariablesFrom the System Variables box click new(to add new path) Include the bin directory of your PostgreSQL installation. then add new path there[for

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-30 Thread Iain Stewart
Hi Matt. Typing in to your pycharm console: py manage.py migrate --fake [your_app_Name] zero where your_app_name is PyShop or whatever it is called, that should delete the previous migrations/ reset the tracking I think. Iain On Sat, 30 May 2020 at 18:49, Matt D wrote: > >> ^ Is this where

RES: Command open postgresql in from cmd in windows

2020-05-30 Thread Samuel Nogueira
Sorry but i think your screenshot wasn’t attached to your last email, please end it againDe: sunday honestyEnviado:sábado, 30 de maio de 2020 18:28Para: django-users@googlegroups.comAssunto: Re: Command open postgresql in from cmd in windows Here is the screenshot... Pls download. PS: I was

Why is "Hello World!" alternating with Django welcome page after following tutorial?

2020-05-30 Thread Thomas G. McNeill
I just followed this tutorial to create the simplest possible Django application: https://aws.amazon.com/getting-started/hands-on/deploy-python-application/ I used *campaign* instead of *tutorial* and *app* instead of *hello_world* because I intend to transform the tutorial into a simple

Please help me out?

2020-05-30 Thread meera gangani
I want to generate trello-board in my django application Can anyone tell me the How to do this? Trello-board is like( to-do and future enhancements and doing ) where there are 3-4 columns In-advance thank you -Meera Gangani -- You received this message because you are subscribed to the Google

Re: Command open postgresql in from cmd in windows

2020-05-30 Thread sunday honesty
Here is the screenshot... Pls download. PS: I was connected to the internet and also tried it without internet connection. On Sat, May 30, 2020, 10:17 PM Samuel Nogueira wrote: > Can you send me more details about the error? A screenshot should be > enough > > *De: *sunday honesty >

Re: Command open postgresql in from cmd in windows

2020-05-30 Thread sunday honesty
Here is it again On Sat, May 30, 2020, 10:44 PM Samuel Nogueira wrote: > Sorry but i think your screenshot wasn’t attached to your last email, > please end it again > > *De: *sunday honesty > *Enviado:*sábado, 30 de maio de 2020 18:28 > *Para: *django-users@googlegroups.com > *Assunto: *Re:

Re: Command open postgresql in from cmd in windows

2020-05-30 Thread Samuel Nogueira
you just need to specify the username wich you want to use. So type "psql -U postgres", as postgres being your username. Em sáb., 30 de mai. de 2020 às 18:47, sunday honesty < honesty202...@gmail.com> escreveu: > Here is it again > > On Sat, May 30, 2020, 10:44 PM Samuel Nogueira > wrote: > >>

Re: Please help me out?

2020-05-30 Thread Sharva kant
Hi Meera, I believe you would have to use Javascript framework on front end to do that. You can use Vuejs, Angular js , React or Ember to do that Cheers Sharva On Sat, 30 May 2020 at 22:31, meera gangani wrote: > I want to generate trello-board in my django application > Can anyone tell me

RES: Command open postgresql in from cmd in windows

2020-05-30 Thread Samuel Nogueira
Can you send  me more details about the error? A screenshot should be enoughDe: sunday honestyEnviado:sábado, 30 de maio de 2020 15:18Para: django-users@googlegroups.comAssunto: Re: Command open postgresql in from cmd in windows @Samuel,I did that and psql now opened and prompted me to enter

Re: Why is "Hello World!" alternating with Django welcome page after following tutorial?

2020-05-30 Thread Thomas G. McNeill
Well, never mind. I changed some stuff, and then I changed it all back, as far as I know. But now it is working correctly. I have no idea what I changed. On Saturday, May 30, 2020 at 5:41:52 PM UTC-6, Thomas G. McNeill wrote: > > I just followed this tutorial to create the simplest possible