Open source CBT Application

2022-11-07 Thread Sherif Adigun
Looking for an active Django Project to contribute and collaborate on? 

Join me on Django CBT.

https://github.com/adigunsherif/cbt

Let build a reliable open source Computer Based Test Software on Django 

-- 
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/42be400b-db64-4169-b94d-3c56bc59244bn%40googlegroups.com.


Re: Multitenant App

2022-11-07 Thread Sherif Adigun
Take a look at Django Tenants

https://github.com/django-tenants/django-tenants

I have used it on a project and its just perfect. it does tenancy very 
well. and I like the Semi Isolated Approach: Shared Database, Separate 
Schemas. One database for all tenants, but one schema per tenant.

On Monday, November 7, 2022 at 5:08:32 PM UTC+1 davidemanu...@gmail.com 
wrote:

> Hi, I'm not sure what you mean by updating all templates. In my case, when 
> I update a template, the changes are reflected in all tenants/clients.
> David Emanuel Sandoval 
> 
> WEB DEVELOPER
> +549 3734 607102 <+54%209%203734%2060-7102>
>
>    
> 
>
>
>
>
>
> El lun, 7 nov 2022 a las 11:20, sebasti...@gmail.com (<
> sebasti...@gmail.com>) escribió:
>
>> Hello,
>>
>> ich want sell my app on different companys. Now a part of apps all 
>> companys/templates use this but another apps/templates are customer 
>> specific. Now i want when i update code from apps/templates which all 
>> customer uses that i can update all customer on server as fast as possible.
>>
>> Here are a example:
>>
>> Customer 1
>> common app
>> customer invividual app #1
>> 
>> template
>> common app templates
>> customer individual app templates
>> Customer 2
>> common app
>> customer individual app #2
>>
>> template
>> common app templates
>> customer individual app templates
>>
>> How i can make this? Softlink or is there another better possibility?
>>
>> Regards
>>
>> -- 
>> 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/987d7c53-cd73-4937-9a5d-b9053a6570c4n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/6643d636-bf3b-4fad-80fc-6f3a8f1d66cbn%40googlegroups.com.


Re: Looking for available support to start a School Management Application

2022-11-07 Thread Sherif Adigun
One of the most popular School Management System in Django is 

https://github.com/adigunsherif/Django-School-Management-System


You can fork it and contribute your code. We can collaborate
On Monday, November 7, 2022 at 5:08:32 PM UTC+1 hajira.f...@gmail.com wrote:

> Hi,
>
> I'm interested to collaborate.
>
> Regards,
> Hajira Fathima
>
> On Monday, 7 November 2022 at 02:04:21 UTC+4 nef wrote:
>
>> Hi everyone,
>> I am beginer in Django, not much experience.
>> I have been task to develop an application for school management 
>> (Admission, Registration,  Attendance, Report marks, and more functions).
>> I am wondering if there is an existing open smilare app or something 
>> which can be use as baseline to start or guide me with best practices.
>> Thank you
>> Eric
>>
>

-- 
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/ffce34f1-83fb-42ec-946e-2678de94aea0n%40googlegroups.com.


Re: Can't use swagger in Django 4.0?

2022-03-04 Thread Sherif Adigun
You may need to show your urls.py to see what you are doing.


On Friday, March 4, 2022 at 3:04:46 PM UTC+1 astro...@gmail.com wrote:

>
> hi everyone,
>
> After installing Django 4.0 and configuring swagger, 'TypeError: 'set' 
> object is not reversible' occurs. Is it possible that Django 4.0 can't use 
> swagger?
>
> error image 
> [image: z7jfF.png]
>
>
>

-- 
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/0bd10a74-90c8-42ea-a7a7-9434554128b3n%40googlegroups.com.


Re: Automatic subdomain for each user

2021-12-30 Thread Sherif Adigun
Thank you for your detailed response. Following your response point by
point with few additional googling, it works as expected.

On cpanel:
I created a subdomain called *
Then I chose document root as the main Django root. (This is needed so that
letsencrypt can automatically create a certificate.)

Then the routing works seemlessly

Thank you

On Thu, Dec 30, 2021, 7:06 PM Sherif Adigun  wrote:

> Thank you very much for you guidance. I have been able to make it work
> using Django-hosts on my local. Still trying to fix it out to work on my
> shared hosting if possible
>
> On Thu, Dec 30, 2021, 10:29 AM Sherif Adigun 
> wrote:
>
>> Thank you @Tim.  Django subdomains looks promising but it's outdated. It
>> uses codes and imports of django< v2  I have checked django-hosts but it
>> looks as if it can be used  for only predefined list of subdomains. Please
>> help clarify this doubt.
>>
>> Thank you for your time
>>
>> On Thursday, December 30, 2021 at 1:10:17 AM UTC+1 Tim Chase wrote:
>>
>>> On 2021-12-29 15:02, Sherif Adigun wrote:
>>> > I am faced with a requirement where each user is required to use
>>> > the application under his own subdomain. Whenever a user registers,
>>> > he gets username.domain.com and he can add staff, manage reports,
>>> > etc under his subdomain.
>>> >
>>> > What is the best approach to you can suggest please?
>>>
>>> Generally this requires
>>>
>>> 1) configuring your DNS to allow for wildcard domains so that
>>> *.domain.com points at your web server, usually looking something like
>>>
>>> *.example.com. 3600 IN A 198.51.100.17
>>>
>>> 2) setting up your HTTPS certificates. This could be
>>>
>>> - involve an ACME-aware Django route (I'm not sure if such a beast
>>> exists)
>>>
>>> - configuring an ACME client like certbot to update your
>>> DNS records so that Let's Encrypt can verify that you own the
>>> domain and then grant your a wildcard cert
>>>
>>> - use a different CA to obtain a wildcard cert
>>>
>>> 2b) if you used a more manual method, put the certs in the
>>> appropriate place for your web-server to pick them up
>>>
>>> 3) configure your web-server front-end/proxy (usually nginx or
>>> Apache, but there are others) to handle the wildcard domains and pass
>>> them through to your Django app or WSGI server or what have you. Make
>>> sure the domain information is passed through in the HTTP_HOST header
>>>
>>> 4) use django-subdomains[1] (or maybe django-hosts[2]) middleware to
>>> extract the intended host-name from the HTTP_HOST header and possibly
>>> make the route reversable so that .reverse() works
>>>
>>> 5) check your views so that they make use of the HTTP_HOST
>>> information to filter for user-specific information
>>>
>>> -tkc
>>>
>>>
>>> [1] https://django-subdomains.readthedocs.io/en/latest/
>>>
>>>
>>> [2] https://github.com/jazzband/django-hosts
>>>
>>>
>>>
>>>
>>>
>>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/CTynQlthabY/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/6057efaf-5e10-498a-ad2a-40132425412dn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/6057efaf-5e10-498a-ad2a-40132425412dn%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/CACP0aXhauGv-q4o_UERihQgAH3Ga6wn_MSYXqm8O4SmMfabTqQ%40mail.gmail.com.


Re: Automatic subdomain for each user

2021-12-30 Thread Sherif Adigun
Thank you very much for you guidance. I have been able to make it work
using Django-hosts on my local. Still trying to fix it out to work on my
shared hosting if possible

On Thu, Dec 30, 2021, 10:29 AM Sherif Adigun  wrote:

> Thank you @Tim.  Django subdomains looks promising but it's outdated. It
> uses codes and imports of django< v2  I have checked django-hosts but it
> looks as if it can be used  for only predefined list of subdomains. Please
> help clarify this doubt.
>
> Thank you for your time
>
> On Thursday, December 30, 2021 at 1:10:17 AM UTC+1 Tim Chase wrote:
>
>> On 2021-12-29 15:02, Sherif Adigun wrote:
>> > I am faced with a requirement where each user is required to use
>> > the application under his own subdomain. Whenever a user registers,
>> > he gets username.domain.com and he can add staff, manage reports,
>> > etc under his subdomain.
>> >
>> > What is the best approach to you can suggest please?
>>
>> Generally this requires
>>
>> 1) configuring your DNS to allow for wildcard domains so that
>> *.domain.com points at your web server, usually looking something like
>>
>> *.example.com. 3600 IN A 198.51.100.17
>>
>> 2) setting up your HTTPS certificates. This could be
>>
>> - involve an ACME-aware Django route (I'm not sure if such a beast
>> exists)
>>
>> - configuring an ACME client like certbot to update your
>> DNS records so that Let's Encrypt can verify that you own the
>> domain and then grant your a wildcard cert
>>
>> - use a different CA to obtain a wildcard cert
>>
>> 2b) if you used a more manual method, put the certs in the
>> appropriate place for your web-server to pick them up
>>
>> 3) configure your web-server front-end/proxy (usually nginx or
>> Apache, but there are others) to handle the wildcard domains and pass
>> them through to your Django app or WSGI server or what have you. Make
>> sure the domain information is passed through in the HTTP_HOST header
>>
>> 4) use django-subdomains[1] (or maybe django-hosts[2]) middleware to
>> extract the intended host-name from the HTTP_HOST header and possibly
>> make the route reversable so that .reverse() works
>>
>> 5) check your views so that they make use of the HTTP_HOST
>> information to filter for user-specific information
>>
>> -tkc
>>
>>
>> [1] https://django-subdomains.readthedocs.io/en/latest/
>>
>>
>> [2] https://github.com/jazzband/django-hosts
>>
>>
>>
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/CTynQlthabY/unsubscribe.
> To unsubscribe from this group and all its topics, 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/6057efaf-5e10-498a-ad2a-40132425412dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6057efaf-5e10-498a-ad2a-40132425412dn%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/CACP0aXjm8Kpdtvef6Aztvp6FmrKLCA7okgFbLFyYUAZ8xrf%3DTw%40mail.gmail.com.


Re: Automatic subdomain for each user

2021-12-30 Thread Sherif Adigun
Thank you @Tim.  Django subdomains looks promising but it's outdated. It 
uses codes and imports of django< v2  I have checked django-hosts but it 
looks as if it can be used  for only predefined list of subdomains. Please 
help clarify this doubt.

Thank you for your time

On Thursday, December 30, 2021 at 1:10:17 AM UTC+1 Tim Chase wrote:

> On 2021-12-29 15:02, Sherif Adigun wrote:
> > I am faced with a requirement where each user is required to use
> > the application under his own subdomain. Whenever a user registers,
> > he gets username.domain.com and he can add staff, manage reports,
> > etc under his subdomain.
> > 
> > What is the best approach to you can suggest please? 
>
> Generally this requires
>
> 1) configuring your DNS to allow for wildcard domains so that
> *.domain.com points at your web server, usually looking something like
>
> *.example.com. 3600 IN A 198.51.100.17
>
> 2) setting up your HTTPS certificates. This could be
>
> - involve an ACME-aware Django route (I'm not sure if such a beast
> exists)
>
> - configuring an ACME client like certbot to update your
> DNS records so that Let's Encrypt can verify that you own the
> domain and then grant your a wildcard cert
>
> - use a different CA to obtain a wildcard cert
>
> 2b) if you used a more manual method, put the certs in the
> appropriate place for your web-server to pick them up
>
> 3) configure your web-server front-end/proxy (usually nginx or
> Apache, but there are others) to handle the wildcard domains and pass
> them through to your Django app or WSGI server or what have you. Make
> sure the domain information is passed through in the HTTP_HOST header
>
> 4) use django-subdomains[1] (or maybe django-hosts[2]) middleware to
> extract the intended host-name from the HTTP_HOST header and possibly
> make the route reversable so that .reverse() works
>
> 5) check your views so that they make use of the HTTP_HOST
> information to filter for user-specific information
>
> -tkc
>
>
> [1] https://django-subdomains.readthedocs.io/en/latest/
>
>
> [2] https://github.com/jazzband/django-hosts
>
>
>
>
>
>

-- 
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/6057efaf-5e10-498a-ad2a-40132425412dn%40googlegroups.com.


Automatic subdomain for each user

2021-12-29 Thread Sherif Adigun
I am faced with a requirement where each user is required to use the 
application under his own subdomain. Whenever a user registers, he gets 
username.domain.com and he can add staff, manage reports, etc under his 
subdomain.

What is the best approach to you can suggest please? 

-- 
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/f330ad74-75c1-4244-ae27-aa6b97717940n%40googlegroups.com.


Re: How to add css class and attribute to username,password

2021-02-14 Thread Sherif Adigun
Try changing UserLoginForm(forms.ModelForm) to UserLoginForm(forms.Form)

On Sunday, February 7, 2021 at 9:41:35 PM UTC+1 tba...@gmail.com wrote:

>
> Hello ,
>
> I writing project which the user login with my own customized HTML page 
> (boosstrap)
>
> i can manually add the form.username and form.password , but seems they 
> don't get the attribute from my forms.py , dode is added below , please 
> advise
>
> Thanks
>
>
> urls.py
> from django.urls import path 
> from django.contrib.auth import views as auth_views from .views import * 
> urlpatterns = [ 
> path('login/', auth_views.LoginView.as_view(), name = 'login'), 
>  path('signup/', SignUpView.as_view(), name='signup'), ] 
>
>
> views.py
> from django.contrib.auth.forms import UserCreationForm 
> from django.contrib.auth.views import LoginView 
> from django.urls import reverse_lazy from django.views import generic 
> from .forms import * class UsersLoginView(LoginView): 
> template_name = 'login.html' success_url = 'blog-home' 
> success_message = 'Welcome to your profile' 
> form_class = UserLoginForm 
>
> forms.py
> from django import forms from django.forms import ModelForm 
> from .models import User class UserLoginForm(forms.ModelForm): 
> username = forms.CharField(widget=forms.TextInput(attrs={'class': 
> 'form-control', 'type':'email', 'name':'Username', 
> 'placeholder':'Username'})) 
> password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 
> 'form-control', 'type': 'password', 'name': 'password', 
> 'placeholder':'Password'})) 
>
>

-- 
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/6ac6a8c7-bc9a-46f3-b8cb-e138a76ec298n%40googlegroups.com.


Re: Django job

2020-12-20 Thread Sherif Adigun
Thank you. I have sent you a message on WhatsApp and saved your number.

On Sunday, December 20, 2020 at 11:58:33 AM UTC+1 samue...@gmail.com wrote:

> I post jobs on my WhatsApp status.
> Most times, they are django related, and remote.
> This is my WhatsApp number +2347059180332 <+234%20705%20918%200332>.
>
> On Dec 20, 2020 11:49, "Sherif Adigun"  wrote:
>
>> Hello,
>> I'm currently available for paid Django jobs. If you have any related 
>> task you want me to work on (paid), kindly respond to this.
>>
>> Thank you as I look forward to your responses.
>>
>> -- 
>> 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/e6e6f7a0-e29a-43db-b448-87118e9d19d8n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/e6e6f7a0-e29a-43db-b448-87118e9d19d8n%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/24f4c4cd-9db7-4290-8717-cfb52d4aae57n%40googlegroups.com.


Django job

2020-12-20 Thread Sherif Adigun
Hello,
I'm currently available for paid Django jobs. If you have any related task 
you want me to work on (paid), kindly respond to this.

Thank you as I look forward to your responses.

-- 
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/e6e6f7a0-e29a-43db-b448-87118e9d19d8n%40googlegroups.com.


Re: Required Django Programmer for freelancer

2020-07-08 Thread Sherif Adigun
Hi! I'm interested in working on this project.

Kindly join the meeting here and let's have a discussion to get started 
immediately

Join Zoom Meeting
https://us04web.zoom.us/j/72990105966?pwd=VVhPL2s2MUNuLzJOQ3V2Y2o3T2M3Zz09

Meeting ID: 729 9010 5966
Password: 8uRMUw



-- 
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/bb453bc4-e7b5-4f85-ae3c-ff326f365a21o%40googlegroups.com.


Re: How to add domain from GoDaddy to Heroku

2020-07-05 Thread Sherif Adigun
Simply point your domain nameservers from GoDaddy to cloudflare.

Then from cloudflare, add the cname record. It's works flawlessly even with ssl

-- 
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/348c4948-abe5-4315-ae7a-31f0309ded21o%40googlegroups.com.


Materializecss issue with CKeditor dialog

2020-07-05 Thread Sherif Adigun
Replies

-- 
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/abc9289a-4eee-42d0-83f9-9a0884392b6do%40googlegroups.com.


Materializecss issue with CKeditor dialog

2020-07-01 Thread Sherif Adigun
If using materializecss for the application and image upload widget in the 
ckeditor, materializecss affects the dialog inputs making it impossible to 
use radio buttons and checkboxes. Do you have a suggestions on how to solve 
this?
I'm thinking of not loading the materialize css for the dialog box but i 
don't know how to make that work because i need to load that css file for 
the base page.

Please 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/afd31026-4904-4ddc-8059-527a299664f0o%40googlegroups.com.


Django select list

2020-05-25 Thread Sherif Adigun
I have a form which has a select field (your color). In front of the select 
field, I have a button that produces a popup which allows users to create new 
color before they submit. I am submitting that color form via Ajax. After 
adding a new color to the database, the popup closes.
I want the newly added color to show in the select list without reloading the 
page.

Is this possible? 

-- 
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/9f176d90-93e3-40f8-b02f-4d27b6b55a75%40googlegroups.com.


Re: I am building an open source School Management System

2020-05-08 Thread Sherif Adigun
May Allah make it easy.
Jazaakumullahu khayran

On Fri, May 8, 2020, 8:24 PM Motaz Hejaze  wrote:

> I will contribute too insha Allah
>
> On Fri, 8 May 2020, 5:54 pm Hedrick Godson's, 
> wrote:
>
>> Successful cloned it. Looking forward to build this with you guys
>>
>> On Fri, 8 May 2020, 18:28 Duah Sylvester 
>> wrote:
>>
>>> Thank you very much! I will get it done
>>>
>>> On Fri, May 8, 2020, 15:04 Sherif Adigun  wrote:
>>>
>>>> Thank you. Let's build on this and improve it.
>>>>
>>>> On Fri, May 8, 2020, 1:02 PM Luqman Shofuleji 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I've just forked the repository on your github account.
>>>>>
>>>>> On Wed, May 6, 2020 at 4:21 PM Sherif Adigun 
>>>>> wrote:
>>>>>
>>>>>> Thanks. Checked. Good job. I think I've got more features than you.
>>>>>>
>>>>>> Latest commits now have authentications
>>>>>>
>>>>>> On Tuesday, May 5, 2020 at 9:37:26 PM UTC+1, Sherif Adigun wrote:
>>>>>>>
>>>>>>> I am currently building an open source school Management System on
>>>>>>> django and it's currently available on GitHub.
>>>>>>>
>>>>>>> https://github.com/adigunsherif/Django-School-Management-System
>>>>>>>
>>>>>>> I need contributors and collaboration.
>>>>>>>
>>>>>>> Feel free to fork me on GitHub, send a message and let's build a
>>>>>>> solution
>>>>>>>
>>>>>>> --
>>>>>> 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/06798eec-0e61-4149-9315-9d95cf7aec65%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/django-users/06798eec-0e61-4149-9315-9d95cf7aec65%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "Django users" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/django-users/JGKrFx5sFuM/unsubscribe
>>>>> .
>>>>> To unsubscribe from this group and all its topics, 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/CAHyB84ps0YCQz72SYbXKHcj_BYQiuOXQVHGNQpag8vHT4FA2dA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAHyB84ps0YCQz72SYbXKHcj_BYQiuOXQVHGNQpag8vHT4FA2dA%40mail.gmail.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/CACP0aXighwO6SB3Qdh7mZJQmV7hNGcp52hH04c8vm6E4h_cPZQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CACP0aXighwO6SB3Qdh7mZJQmV7hNGcp52hH04c8vm6E4h_cPZQ%40mail.gmail.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/CAFQyJBgHpQKsVuvXfhLUZL0eoCt%2B%2BdSorMVuvas1Q5i%2BRgZmSg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAFQyJBgHpQKsVuvXfhLUZL0eoCt%2B%2BdSorMVuvas1Q5i%2BRgZmSg%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>

Re: I am building an open source School Management System

2020-05-08 Thread Sherif Adigun
Thank you. Let's build on this and improve it.

On Fri, May 8, 2020, 1:02 PM Luqman Shofuleji  wrote:

> Hi,
>
> I've just forked the repository on your github account.
>
> On Wed, May 6, 2020 at 4:21 PM Sherif Adigun 
> wrote:
>
>> Thanks. Checked. Good job. I think I've got more features than you.
>>
>> Latest commits now have authentications
>>
>> On Tuesday, May 5, 2020 at 9:37:26 PM UTC+1, Sherif Adigun wrote:
>>>
>>> I am currently building an open source school Management System on
>>> django and it's currently available on GitHub.
>>>
>>> https://github.com/adigunsherif/Django-School-Management-System
>>>
>>> I need contributors and collaboration.
>>>
>>> Feel free to fork me on GitHub, send a message and let's build a solution
>>>
>>> --
>> 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/06798eec-0e61-4149-9315-9d95cf7aec65%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/06798eec-0e61-4149-9315-9d95cf7aec65%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/JGKrFx5sFuM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAHyB84ps0YCQz72SYbXKHcj_BYQiuOXQVHGNQpag8vHT4FA2dA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHyB84ps0YCQz72SYbXKHcj_BYQiuOXQVHGNQpag8vHT4FA2dA%40mail.gmail.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/CACP0aXighwO6SB3Qdh7mZJQmV7hNGcp52hH04c8vm6E4h_cPZQ%40mail.gmail.com.


Re: Best hosting for Django Application?

2020-05-06 Thread Sherif Adigun
Now I'm very confused and my client will request for the project to be
hosting in two weeks. I don't want to make a mistake about host

On Wed, May 6, 2020, 11:44 PM Gabriel Araya Garcia <
gabrielaraya2...@gmail.com> wrote:

> I've learned Django for a year, and I have my project hosted in
> PYTHONANYWHERE, however, I never had have a problem. It's very easy, you
> can If you are a beginner to use the free account, or else a paid one.
> If you have any question, don't hesitate to ask me.
>
> Regards,
>
> Gabriel Araya Garcia
> GMI - Desarrollo de Sistemas Informáticos
> Santiago de Chile
> 99.7721.15.70
>
>
>
> El mié., 6 may. 2020 a las 14:18, Nomeh Uchenna Gabriel (<
> nomehgabri...@gmail.com>) escribió:
>
>> please don't ever use "python-anywhere" for a serious project unless you
>> have enough tears  in your eye balls to cry out when the time comes.
>>
>> ... I suggest "digitalocean/linode" so that the heavy problems of "SSL
>> certificates" won't beat you up
>>
>> --
>> 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/ee7b3e5b-20f8-4f70-aca2-3fc689a30a37%40googlegroups.com
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/DU9_nRpJcz4/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAKVvSDDzT8xJf5c1qxpb6CL%3DSUeNZ_evHEnfLyPihaBiZi17OA%40mail.gmail.com
> 
> .
>

-- 
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/CACP0aXhDBUgPQJs3HRd6103zLvN2-h4_eEwR_sE29ZwC-Zhp3g%40mail.gmail.com.


Re: Best hosting for Django Application?

2020-05-06 Thread Sherif Adigun
Oh, thank you for that. I'm really afraid for I don't want my client to
tear my hair out.

How about heroku? Have you tried that ?

On Wed, May 6, 2020, 7:19 PM Nomeh Uchenna Gabriel 
wrote:

> please don't ever use "python-anywhere" for a serious project unless you
> have enough tears  in your eye balls to cry out when the time comes.
>
> ... I suggest "digitalocean/linode" so that the heavy problems of "SSL
> certificates" won't beat you up
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/DU9_nRpJcz4/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ee7b3e5b-20f8-4f70-aca2-3fc689a30a37%40googlegroups.com
> .
>

-- 
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/CACP0aXiOhLXwfpRQe6PTbPH-a5pU9PmZA8xPs_n%2B-ia6-c7saQ%40mail.gmail.com.


Re: I am building an open source School Management System

2020-05-06 Thread Sherif Adigun
Thanks. Checked. Good job. I think I've got more features than you.

Latest commits now have authentications

On Tuesday, May 5, 2020 at 9:37:26 PM UTC+1, Sherif Adigun wrote:
>
> I am currently building an open source school Management System on django 
> and it's currently available on GitHub.
>
> https://github.com/adigunsherif/Django-School-Management-System
>
> I need contributors and collaboration.
>
> Feel free to fork me on GitHub, send a message and let's build a solution
>
>

-- 
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/06798eec-0e61-4149-9315-9d95cf7aec65%40googlegroups.com.


Re: Two forms in one template

2020-05-06 Thread Sherif Adigun
You are welcome.

I'm happy to 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/CACP0aXgBC%2BdYEST_PDyYkKACthoG%3D5uycoMuNS6Ry%2BRW8jhffQ%40mail.gmail.com.


Re: Two forms in one template

2020-05-06 Thread Sherif Adigun
https://us04web.zoom.us/j/79500561313?pwd=TnIzekVTMU0xRDNsaGpaS0kxQlhTdz09


JOIN NOW

-- 
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/CACP0aXj_%2BXL-X7kDSY_MzQfSp4eEouQj_wu0VgSTNkNo0v%3DEKg%40mail.gmail.com.


Re: Drop down dependent on two other form fields

2020-05-06 Thread Sherif Adigun
Check this

https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html

-- 
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/6c583d01-2b5b-4649-abec-e20e29850237%40googlegroups.com.


Re: Two forms in one template

2020-05-06 Thread Sherif Adigun
ok. send a reply when you are available.

On Wed, May 6, 2020 at 11:13 AM Sergei Sokov  wrote:

> I can a little bit later, ok?
> I think in 2 hour
>
> среда, 6 мая 2020 г., 12:00:13 UTC+2 пользователь Sherif Adigun написал:
>>
>> Please join the meeting now let's quickly fix it .
>>
>> https://us04web.zoom.us/j/77729655336?pwd=c1o2Q0JQOFJiYm5hTlJTYjgra0dOQT09
>>
>> On Monday, May 4, 2020 at 4:37:39 PM UTC+1, Sergei Sokov wrote:
>>>
>>> I have two forms in one template, but one of them doesn't  have data to
>>> my database.
>>> Why does it happen and how to fix it?
>>>
>>> When I fill out the Pack form and press "submit" the terminal shows
>>> that: "POST" /sklad HTTP/1.1" 200 9937
>>> This data doesn't save to my database.
>>>
>>> When I fill out the Sklad form and press "submit" the terminal shows
>>> that: "POST" /sklad HTTP/1.1" 302 0
>>> This data saves to my database fine.
>>>
>>> views.py
>>> class SkladCreateView(LoginRequiredMixin, CustomSuccessMessageMixin,
>>> CreateView):
>>> model = Sklad
>>> template_name = 'sklad.html'
>>> form_class = SkladForm
>>> success_url = reverse_lazy('sklad')
>>> success_msg = 'Материал сохранён'
>>> def get_context_data(self, **kwargs):
>>> kwargs['sklad_form'] = SkladForm
>>> kwargs['pack_form'] = PackForm
>>> kwargs['list_sklad'] = Sklad.objects.all().order_by('material')
>>> kwargs['list_pack'] = Pack.objects.all().order_by('name_pack')
>>> return super().get_context_data(**kwargs)
>>> def form_valid(self, form):
>>> self.object = form.save(commit=False)
>>> self.object.author = self.request.user
>>> self.object.save()
>>> return super().form_valid(form)
>>>
>>> models.py
>>> class Sklad(models.Model):
>>> author = models.ForeignKey(User, on_delete = models.CASCADE,
>>> verbose_name='автор склада', null=True)
>>> material = models.CharField('название', max_length=200)
>>> unit = models.CharField('единица измерения', max_length=200)
>>> description = models.CharField('описание', max_length=200, null=True)
>>> price_buy = models.IntegerField('цена закупки', )
>>> price_sell = models.IntegerField('цена продажи', )
>>> amount = models.IntegerField('количество', default='0')
>>>
>>> def __str__(self):
>>> return self.material
>>>
>>> class Pack(models.Model):
>>> author = models.ForeignKey(User, on_delete = models.CASCADE,
>>> verbose_name='автор упаковки', null=True)
>>> name_pack = models.CharField('название', max_length=100)
>>> price_pack = models.IntegerField('цена', )
>>>
>>> def __str__(self):
>>> return self.name_pack
>>>
>>>
>>> forms.py
>>> class SkladForm(forms.ModelForm):
>>> class Meta:
>>> model = Sklad
>>> fields = (
>>> 'material',
>>> 'unit',
>>> 'description',
>>> 'price_buy',
>>> 'price_sell',
>>> 'amount',
>>> )
>>>
>>> def __init__(self, *args, **kwargs):
>>> super().__init__(*args, **kwargs)
>>> for field in self.fields:
>>> self.fields[field].widget.attrs['class'] = 'form-control'
>>>
>>> class PackForm(forms.ModelForm):
>>> class Meta:
>>> model = Pack
>>> fields = (
>>> 'name_pack',
>>> 'price_pack',
>>> )
>>>
>>> def __init__(self, *args, **kwargs):
>>> super().__init__(*args, **kwargs)
>>> for field in self.fields:
>>> self.fields[field].widget.attrs['class'] = 'form-control'
>>>
>>>
>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/I_32m8lWd-g/unsubscribe.
> To unsubscribe from this group and all its topics, 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/257e308b-91d3-4fa3-8f8f-ca758b72e7e0%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/257e308b-91d3-4fa3-8f8f-ca758b72e7e0%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/CACP0aXjvLuR6PAatcY5rmkPs8gzHk5LhrQ%3DnUE174LQU4aP5qg%40mail.gmail.com.


Re: Two forms in one template

2020-05-06 Thread Sherif Adigun
Please join the meeting now let's quickly fix it .

https://us04web.zoom.us/j/77729655336?pwd=c1o2Q0JQOFJiYm5hTlJTYjgra0dOQT09

On Monday, May 4, 2020 at 4:37:39 PM UTC+1, Sergei Sokov wrote:
>
> I have two forms in one template, but one of them doesn't  have data to my 
> database.
> Why does it happen and how to fix it?
>
> When I fill out the Pack form and press "submit" the terminal shows that: 
> "POST" /sklad HTTP/1.1" 200 9937
> This data doesn't save to my database.
>
> When I fill out the Sklad form and press "submit" the terminal shows that: 
> "POST" /sklad HTTP/1.1" 302 0
> This data saves to my database fine.
>
> views.py
> class SkladCreateView(LoginRequiredMixin, CustomSuccessMessageMixin, 
> CreateView):
> model = Sklad
> template_name = 'sklad.html'
> form_class = SkladForm
> success_url = reverse_lazy('sklad')
> success_msg = 'Материал сохранён'
> def get_context_data(self, **kwargs):
> kwargs['sklad_form'] = SkladForm
> kwargs['pack_form'] = PackForm
> kwargs['list_sklad'] = Sklad.objects.all().order_by('material')
> kwargs['list_pack'] = Pack.objects.all().order_by('name_pack')
> return super().get_context_data(**kwargs) 
> def form_valid(self, form):
> self.object = form.save(commit=False)
> self.object.author = self.request.user
> self.object.save()
> return super().form_valid(form)
>
> models.py
> class Sklad(models.Model):
> author = models.ForeignKey(User, on_delete = models.CASCADE, 
> verbose_name='автор склада', null=True)
> material = models.CharField('название', max_length=200)
> unit = models.CharField('единица измерения', max_length=200)
> description = models.CharField('описание', max_length=200, null=True)
> price_buy = models.IntegerField('цена закупки', )
> price_sell = models.IntegerField('цена продажи', )
> amount = models.IntegerField('количество', default='0')
>
> def __str__(self):
> return self.material
>
> class Pack(models.Model):
> author = models.ForeignKey(User, on_delete = models.CASCADE, 
> verbose_name='автор упаковки', null=True)
> name_pack = models.CharField('название', max_length=100)
> price_pack = models.IntegerField('цена', )
>
> def __str__(self):
> return self.name_pack
>
>
> forms.py
> class SkladForm(forms.ModelForm):
> class Meta:
> model = Sklad
> fields = (
> 'material',
> 'unit',
> 'description',
> 'price_buy',
> 'price_sell',
> 'amount',
> )
>
> def __init__(self, *args, **kwargs):
> super().__init__(*args, **kwargs)
> for field in self.fields:
> self.fields[field].widget.attrs['class'] = 'form-control'
>
> class PackForm(forms.ModelForm):
> class Meta:
> model = Pack
> fields = (
> 'name_pack',
> 'price_pack',
> )
>
> def __init__(self, *args, **kwargs):
> super().__init__(*args, **kwargs)
> for field in self.fields:
> self.fields[field].widget.attrs['class'] = 'form-control'
>
>
>

-- 
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/dd44ad0a-7059-4226-9200-ebb24fcf6b1d%40googlegroups.com.


Re: I am building an open source School Management System

2020-05-06 Thread Sherif Adigun
Now updated. Please confirm it's working fine now.

-- 
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/CACP0aXgVGM2%3DpDgzeuFNVFB-LwOcpq7aDf%3Dr2J5Xir2J2qmUyA%40mail.gmail.com.


Re: I am building an open source School Management System

2020-05-06 Thread Sherif Adigun
Thank you for that. I just realized I didn't commit the static/dist folder
to git.

Let me commit those files and push. Then you can update your clone

On Wed, May 6, 2020, 9:10 AM Sherif Adigun  wrote:

> From your errors, it appears the static files are not loading correctly.
>
> But they are all working right here. Did you clone in a virtual
> environment? Then run pip install -r requirements.txt
>
> On Wed, May 6, 2020, 1:09 AM Milson Munakami  wrote:
>
>> Hi Sherif,
>>
>> I tried to run your project but unfortunately unable to run it properly.
>> It is showing:
>>
>> GET http://127.0.0.1:8000/static/dist/css/adminlte.min.css
>> net::ERR_ABORTED 404 (Not Found)
>> 127.0.0.1/:268 GET http://127.0.0.1:8000/static/dist/js/jquery.formset.js
>> net::ERR_ABORTED 404 (Not Found)
>> 127.0.0.1/:277 GET http://127.0.0.1:8000/static/dist/js/adminlte.js
>> net::ERR_ABORTED 404 (Not Found)
>> 127.0.0.1/:280 GET http://127.0.0.1:8000/static/dist/js/demo.js
>> net::ERR_ABORTED 404 (Not Found)
>> 127.0.0.1/:268 GET http://127.0.0.1:8000/static/dist/js/jquery.formset.js
>> net::ERR_ABORTED 404 (Not Found)
>> 127.0.0.1/:277 GET http://127.0.0.1:8000/static/dist/js/adminlte.js
>> net::ERR_ABORTED 404 (Not Found)
>> 127.0.0.1/:280 GET http://127.0.0.1:8000/static/dist/js/demo.js
>> net::ERR_ABORTED 404 (Not Found)
>>
>> On Tue, May 5, 2020 at 3:38 PM Sherif Adigun 
>> wrote:
>>
>>> I am currently building an open source school Management System on
>>> django and it's currently available on GitHub.
>>>
>>> https://github.com/adigunsherif/Django-School-Management-System
>>>
>>> I need contributors and collaboration.
>>>
>>> Feel free to fork me on GitHub, send a message and let's build a solution
>>>
>>> --
>>> 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/790f347d-a565-4c91-a2b0-fc273702178b%40googlegroups.com
>>> .
>>>
>>
>>
>> --
>> Thank you,
>>
>> Milson Munakami
>>
>> Mobile: 208.220.2943  <208.220.2943>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/JGKrFx5sFuM/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CAP1qhGs3tj0o0kncmUe3Wi%3Dz%3DBuMN9XpGq3AenA-NfUh3fb86Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAP1qhGs3tj0o0kncmUe3Wi%3Dz%3DBuMN9XpGq3AenA-NfUh3fb86Q%40mail.gmail.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/CACP0aXiRuyApHVeJzk7BKVZ_JihYw2faNYw7p1oJetAJzt6KJw%40mail.gmail.com.


How to dump results and progress of a script in a log file

2020-05-06 Thread Sherif Adigun
Django has the logging feature.

You definitely want to log success or errors in the second option while 
importing data into the database. 

See Django logging system https://docs.djangoproject.com/en/3.0/topics/logging/

-- 
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/b71bf367-b7a3-4651-b6dd-ac2cf3161e0e%40googlegroups.com.


Need to work with csv file

2020-05-06 Thread Sherif Adigun
Have you checked the python csv module? 

You may also want to read this:
https://docs.djangoproject.com/en/3.0/howto/outputting-csv/

-- 
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/7d53eba0-e564-4aee-8411-e6cbdbf69d18%40googlegroups.com.


Re: I am building an open source School Management System

2020-05-06 Thread Sherif Adigun
>From your errors, it appears the static files are not loading correctly.

But they are all working right here. Did you clone in a virtual
environment? Then run pip install -r requirements.txt

On Wed, May 6, 2020, 1:09 AM Milson Munakami  wrote:

> Hi Sherif,
>
> I tried to run your project but unfortunately unable to run it properly.
> It is showing:
>
> GET http://127.0.0.1:8000/static/dist/css/adminlte.min.css
> net::ERR_ABORTED 404 (Not Found)
> 127.0.0.1/:268 GET http://127.0.0.1:8000/static/dist/js/jquery.formset.js
> net::ERR_ABORTED 404 (Not Found)
> 127.0.0.1/:277 GET http://127.0.0.1:8000/static/dist/js/adminlte.js
> net::ERR_ABORTED 404 (Not Found)
> 127.0.0.1/:280 GET http://127.0.0.1:8000/static/dist/js/demo.js
> net::ERR_ABORTED 404 (Not Found)
> 127.0.0.1/:268 GET http://127.0.0.1:8000/static/dist/js/jquery.formset.js
> net::ERR_ABORTED 404 (Not Found)
> 127.0.0.1/:277 GET http://127.0.0.1:8000/static/dist/js/adminlte.js
> net::ERR_ABORTED 404 (Not Found)
> 127.0.0.1/:280 GET http://127.0.0.1:8000/static/dist/js/demo.js
> net::ERR_ABORTED 404 (Not Found)
>
> On Tue, May 5, 2020 at 3:38 PM Sherif Adigun 
> wrote:
>
>> I am currently building an open source school Management System on django
>> and it's currently available on GitHub.
>>
>> https://github.com/adigunsherif/Django-School-Management-System
>>
>> I need contributors and collaboration.
>>
>> Feel free to fork me on GitHub, send a message and let's build a solution
>>
>> --
>> 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/790f347d-a565-4c91-a2b0-fc273702178b%40googlegroups.com
>> .
>>
>
>
> --
> Thank you,
>
> Milson Munakami
>
> Mobile: 208.220.2943  <208.220.2943>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/JGKrFx5sFuM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAP1qhGs3tj0o0kncmUe3Wi%3Dz%3DBuMN9XpGq3AenA-NfUh3fb86Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAP1qhGs3tj0o0kncmUe3Wi%3Dz%3DBuMN9XpGq3AenA-NfUh3fb86Q%40mail.gmail.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/CACP0aXhbBWmBshejCWMy8N--bFBuC-10neLm1CC%2BbqNFBVxOXQ%40mail.gmail.com.


Re: Two forms in one template

2020-05-06 Thread Sherif Adigun
Can you come to zoom so we fix this ones and for all

On Wed, May 6, 2020, 8:13 AM Sergei Sokov  wrote:

> [image: kwargs.JPG]
> But the form is empty.
>
> class SkladCreateView(LoginRequiredMixin, CustomSuccessMessageMixin,
> CreateView):
> model = Sklad
> template_name = 'sklad.html'
> form_class = SkladForm
> success_url = reverse_lazy('sklad')
> success_msg = 'Материал сохранён'
> def get_context_data(self, **kwargs):
> kwargs['list_sklad'] = Sklad.objects.all().order_by('material')
> kwargs['list_pack'] = Pack.objects.all().order_by('name_pack')
> kwargs['list_hole'] = Hole.objects.all().order_by('name_hole')
> context = super(SkladCreateView, self).get_context_data(**kwargs)
> if self.request.POST:
> context['pack_form'] = PackForm(self.request.POST)
> else:
> context['pack_form'] = PackForm()
> return super().get_context_data(**kwargs)
> def form_valid(self, form):
> self.object = form.save(commit=False)
> self.object.author = self.request.user
> self.object.save()
>
> context = self.get_context_data()
> pack_form = context['pack_form']
> # if pack_form.is_valid():
> # pack_form.instance = self.object
> # pack_form.save()
> print(pack_form)
> return super().form_valid(form)
>
>
>
> вторник, 5 мая 2020 г., 22:17:08 UTC+2 пользователь Sherif Adigun написал:
>>
>> Please remove
>>
>>   if pack_form.is_valid():
>> pack_form.instance = self.object
>> pack_form.save()
>>
>>
>> And replace with print(pack_form)
>>
>>
>> Then let's see what it's printing in the console
>>
>> On Tue, May 5, 2020, 8:30 PM Sergei Sokov  wrote:
>>
>>> I have this error when I try save data for SkladForm, when I press submit
>>> Request Method: POST
>>> Request URL: http://192.168.0.249:8000/sklad
>>> Django Version: 3.0.5
>>> Exception Type: KeyError
>>> Exception Value:
>>>
>>> 'pack_form'
>>>
>>> Exception Location: /var/workspace/myp4/webprint/print/views.py in
>>> form_valid, line 362
>>> line 362 is   pack_form = context['pack_form']
>>>
>>> And the PackForm is empty, when I call it.
>>>
>>>
>>> class SkladCreateView(LoginRequiredMixin, CustomSuccessMessageMixin,
>>> CreateView):
>>> model = Sklad
>>> template_name = 'sklad.html'
>>> form_class = SkladForm
>>> success_url = reverse_lazy('sklad')
>>> success_msg = 'Материал сохранён'
>>> def get_context_data(self, **kwargs):
>>> kwargs['list_sklad'] = Sklad.objects.all().order_by('material')
>>> kwargs['list_pack'] = Pack.objects.all().order_by('name_pack')
>>> kwargs['list_hole'] = Hole.objects.all().order_by('name_hole')
>>> context = super(SkladCreateView, self).get_context_data(**kwargs)
>>> if self.request.POST:
>>> context['pack_form'] = PackForm(self.request.POST)
>>> else:
>>> context['pack_form'] = PackForm()
>>> return super().get_context_data(**kwargs)
>>>
>>> def form_valid(self, form):
>>> self.object = form.save(commit=False)
>>> self.object.author = self.request.user
>>> self.object.save()
>>>
>>> context = self.get_context_data()
>>> pack_form = context['pack_form']
>>> if pack_form.is_valid():
>>> pack_form.instance = self.object
>>> pack_form.save()
>>> return super().form_valid(form)
>>>
>>>
>>>
>>>
>>> вторник, 5 мая 2020 г., 18:08:56 UTC+2 пользователь Sherif Adigun
>>> написал:
>>>>
>>>> you have two returns in get_Context_data. use only this
>>>>>
>>>>
>>>>
>>>> def get_context_data(self, **kwargs):
>>>> context = super(SkladCreateView,
>>>> self).get_context_data(**kwargs)
>>>> if self.request.POST:
>>>> context['pack_form'] = PackForm(self.request.POST)
>>>> else:
>>>> context['pack_form'] = PackForm()
>>>> return super().get_context_data(**kwargs)
>>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Go

I am building an open source School Management System

2020-05-05 Thread Sherif Adigun
I am currently building an open source school Management System on django and 
it's currently available on GitHub.

https://github.com/adigunsherif/Django-School-Management-System

I need contributors and collaboration.

Feel free to fork me on GitHub, send a message and let's build a solution

-- 
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/790f347d-a565-4c91-a2b0-fc273702178b%40googlegroups.com.


Job Request

2020-05-05 Thread Sherif Adigun
In case you have a remote Django development job, please I'm available.

Thank you

I can be reached at adigunshe...@gmail.com

-- 
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/7bcf992e-cc85-4c6d-860b-b64aafd105f1%40googlegroups.com.


Re: Two forms in one template

2020-05-05 Thread Sherif Adigun
Please remove

  if pack_form.is_valid():
pack_form.instance = self.object
pack_form.save()


And replace with print(pack_form)


Then let's see what it's printing in the console

On Tue, May 5, 2020, 8:30 PM Sergei Sokov  wrote:

> I have this error when I try save data for SkladForm, when I press submit
> Request Method: POST
> Request URL: http://192.168.0.249:8000/sklad
> Django Version: 3.0.5
> Exception Type: KeyError
> Exception Value:
>
> 'pack_form'
>
> Exception Location: /var/workspace/myp4/webprint/print/views.py in
> form_valid, line 362
> line 362 is   pack_form = context['pack_form']
>
> And the PackForm is empty, when I call it.
>
>
> class SkladCreateView(LoginRequiredMixin, CustomSuccessMessageMixin,
> CreateView):
> model = Sklad
> template_name = 'sklad.html'
> form_class = SkladForm
> success_url = reverse_lazy('sklad')
> success_msg = 'Материал сохранён'
> def get_context_data(self, **kwargs):
> kwargs['list_sklad'] = Sklad.objects.all().order_by('material')
> kwargs['list_pack'] = Pack.objects.all().order_by('name_pack')
> kwargs['list_hole'] = Hole.objects.all().order_by('name_hole')
> context = super(SkladCreateView, self).get_context_data(**kwargs)
> if self.request.POST:
> context['pack_form'] = PackForm(self.request.POST)
> else:
> context['pack_form'] = PackForm()
> return super().get_context_data(**kwargs)
>
> def form_valid(self, form):
> self.object = form.save(commit=False)
> self.object.author = self.request.user
> self.object.save()
>
> context = self.get_context_data()
> pack_form = context['pack_form']
> if pack_form.is_valid():
> pack_form.instance = self.object
>     pack_form.save()
> return super().form_valid(form)
>
>
>
>
> вторник, 5 мая 2020 г., 18:08:56 UTC+2 пользователь Sherif Adigun написал:
>>
>> you have two returns in get_Context_data. use only this
>>>
>>
>>
>> def get_context_data(self, **kwargs):
>> context = super(SkladCreateView, self).get_context_data(**kwargs)
>> if self.request.POST:
>> context['pack_form'] = PackForm(self.request.POST)
>> else:
>> context['pack_form'] = PackForm()
>> return super().get_context_data(**kwargs)
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/I_32m8lWd-g/unsubscribe.
> To unsubscribe from this group and all its topics, 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/b3bcc2cc-aa55-42b1-a322-769f177c1862%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b3bcc2cc-aa55-42b1-a322-769f177c1862%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/CACP0aXhV-aORoz-%2BA-yEc-%2BNBWBgyDyTQuX9kSYOffzgqKBSQw%40mail.gmail.com.


Re: Best hosting for Django Application?

2020-05-05 Thread Sherif Adigun
Thank you all for your suggestions. I'll give python anywhere a try

-- 
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/6928153a-7c58-4682-91cd-467d53c9e97b%40googlegroups.com.


Re: I'm new to this django help me out

2020-05-05 Thread Sherif Adigun
what is your question?

On Tuesday, May 5, 2020 at 6:25:48 PM UTC+1, sree lekha wrote:
>
>

-- 
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/f432b7cc-a4f1-4f2a-a0af-39d918696c18%40googlegroups.com.


Best hosting for Django Application?

2020-05-05 Thread Sherif Adigun
I am planning to launch my first major Django application on a live server 
for production. Could you please suggest hosting service that is reliable 
and considerably cheap?

I have used Heroku but not for a serious or client project. 

Please tell me your experience and advise. 

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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ab11f17-77cd-4772-ab78-fc4619bb3978%40googlegroups.com.


Re: Two forms in one template

2020-05-05 Thread Sherif Adigun

>
> you have two returns in get_Context_data. use only this
>


def get_context_data(self, **kwargs):
context = super(SkladCreateView, self).get_context_data(**kwargs)
if self.request.POST:
context['pack_form'] = PackForm(self.request.POST)
else:
context['pack_form'] = PackForm()
return super().get_context_data(**kwargs) 

-- 
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/11311704-c73d-4787-9b12-68e1534a5b56%40googlegroups.com.


Re: Two forms in one template

2020-05-05 Thread Sherif Adigun
Try this code. Instead of using kwargs[], context is most common.


class SkladCreateView(LoginRequiredMixin, CustomSuccessMessageMixin, 
CreateView):
 model = Sklad
 template_name = 'sklad.html'
 form_class = SkladForm
 success_url = reverse_lazy('sklad')
 success_msg = 'Материал сохранён'

 def get_context_data(self, **kwargs):
  #kwargs['sklad_form'] = SkladForm # you do not need this anymore since 
you have set the form_class above.
  context = super(SkladCreateView, self).get_context_data(**kwargs)
  if self.request.POST:
   context['pack_form'] = PackForm(self.request.POST)
  else:
   context['pack_form'] = PackForm()
  return super().get_context_data(**kwargs)
 
 def form_valid(self, form):
  self.object = form.save(commit=False)
  self.object.author = self.request.user
  self.object.save()
  context = self.get_context_data()
  pack_form = context['pack_form']
  if pack_form.is_valid():
   pack_form.instance = self.object
   pack_form.save()
  return super().form_valid(form)






-- 
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/d0caa200-3dc7-489e-a8b4-fa5c728d1c59%40googlegroups.com.


Two forms in one template

2020-05-04 Thread Sherif Adigun
Your code is working perfectly. Just that you need to remember that the view 
has its model set to Sklad. Hence, when you called super() on form_valid, only 
the Skald instance is saved.

You need to manually save the Pack form in the form_valid method. 

-- 
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/982b9f71-2cb3-40de-b29b-2caa0618d88d%40googlegroups.com.


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

2020-05-04 Thread Sherif Adigun
Did you set up your project in a virtual environment??

If yes, always remember to runserver in the virtual environment

-- 
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/608ab165-00f6-4645-8bdf-a139b98e9685%40googlegroups.com.