Re: Process Data during server initialization

2020-10-22 Thread Okware Aldo
Hi Lois, To expand on what Scott is saying. - model DB tables to store the data you need to render the graphs - build a service to preprocess the data - this service can run periodically depending on how up to date you need the graphs to be (a microservice) - build a single endpoint to simple fetc

Re: set school year and change boolean to False when school year is not active

2019-10-17 Thread Okware Aldo
hello, You could use signals pre_save https://docs.djangoproject.com/en/2.2/topics/signals/ On Fri, Oct 18, 2019 at 4:49 AM Rain wrote: > Hello!. thanks for your help.. > what i want to achieve is ti check if end year is already meet. > then if school year already ended. The field would be inac

Re: Database setup

2019-04-19 Thread Okware Aldo
ou for your valuable time. > > On Sat, 20 Apr 2019, 10:48 Okware Aldo, wrote: > >> Hey, If you have xampp installed, just create a database using >> phpmyadmin, attach a user to that database. >> then ensure you have a driver package installed and setup for django.

Re: Database setup

2019-04-19 Thread Okware Aldo
Hey, If you have xampp installed, just create a database using phpmyadmin, attach a user to that database. then ensure you have a driver package installed and setup for django. eg. pymsql has worked well for. then make the necessary changes in django settings file. On Fri, Apr 19, 2019 at 9:21 PM

Re: drf - change Foreign key to another field in a serializer using modelviewset

2019-02-07 Thread Okware Aldo
Hi, I think you should consider creating a custom serializer, where you can modify that field, though I would advise you create another or modify yo return the json object of the organiser. https://www.django-rest-framework.org/api-guide/fields/#serializermethodfield On Thu, Feb 7, 2019 at 10:23

Re: Job Request

2019-01-25 Thread Okware Aldo
I am looking for projects I can contribute on. so if you have a project I can contribute on. I am happy to help 2 hours of code in a week for free. On Fri, Jan 25, 2019 at 3:51 PM Nitin Kalmaste wrote: > Where can I find Live Projects to work on So that I can Improve My python > Skills > > On Th

Re: Sale on Packt publishing

2019-01-08 Thread Okware Aldo
Django 2 by example - Antonio Mele and Django design patterns. On Tue, 8 Jan 2019, 16:58 Lehner Viktor, wrote: > Which Django book do you recomend to by from PACKT ? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from t

Re: STATIC FILES not working for admin site, projects and apps on DJANGO

2018-12-30 Thread Okware Aldo
I can have a look if you give me access to the code, we could do teamviewer, or repo. Let me know. On Sun, 30 Dec 2018, 22:40 abel otugeme, wrote: > I have done all that i used the docs first and it did not work. Then i > tired this video https://www.youtube.com/watch?v=YH-ipgxlJzs > > On Sun,

Re: New to Django

2018-12-16 Thread Okware Aldo
I can remotely help, provide access me with remote access or push code github On Sat, 15 Dec 2018, 20:54 Hello - I'm trying to get Django up and running and I'm having some likely > trivial trouble. I'm following the "Writing your first Django app" > tutorial, but I'm getting stuck trying to crea

Re: Django UpdateView and Createview

2018-12-09 Thread Okware Aldo
Ryan's suggestion should give you a starting point. On Sun, Dec 9, 2018 at 3:43 PM Deepak Kumar wrote: > On Sunday, December 9, 2018 at 6:21:55 AM UTC+5:30, Ryan Nowakowski wrote: > > Take a look at > https://docs.djangoproject.com/en/2.1/topics/class-based-views/generic-editing/ > > > > > > On

Re: No module named "newsimage" app

2018-09-25 Thread Okware Aldo
Hi Mellisa, are you using the module/app 'newsimage' in some part of your application? first make changes to install apps section as Vinod Kumar suggested, then make sure whenever you make reference to the app its imported. On Tue, Sep 25, 2018 at 2:19 PM 'Vinod Kumar' via Django users < django

Re: Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

2018-09-02 Thread Okware Aldo
Use pymysql package instead. On Sun, 2 Sep 2018, 17:04 Kasper Laudrup, wrote: > Hi Rupam, > > On 02/09/2018 15.15, Rupam Hazra wrote: > > Hi, > > > > I am stuck with this issue when i am installing mysqlclient this issue > > > > Installing mysqlclient from source on Windows is definitely not rel

Re: Django database problem

2018-08-17 Thread Okware Aldo
Mikko, Check out this link below, it will help you understand how to connect you Django project to any DB manager. https://docs.djangoproject.com/en/2.1/intro/tutorial02/ On Fri, Aug 17, 2018 at 6:55 PM Mikko Meronen wrote: > Hi, > > I'm quite new with django and python and I wish someone coul

Re: Django makemigration polls error

2018-07-25 Thread Okware Aldo
I think he should share screenshot of his setting.py file, but from what I can see -- if he is running django 1.10 and above apps should be 'polls' not *'polls.apps.PollsConfig'* On Wed, Jul 25, 2018 at 2:23 PM theAloneOne wrote: > You may have missed a comma after *'polls.apps.PollsConfig'* in

Re: Django makemigration polls error

2018-07-25 Thread Okware Aldo
Did you include Polls app in INCLUDE_APPS section in settings. On Wed, 25 Jul 2018, 06:34 Ashish Kumar, wrote: > I am trying to follow the latest Django tutorial at the documentation and > I faced the following error when I enter python manage.py makemigrations > polls > Traceback (most recent c