sruti2024 / PRO_Act

Pro_Act provides you with an efficient way of managing your tasks. It works on the principals of divide and conquer, allows the user to enter tasks and then divide them into further sub-tasks and handle them efficiently! Best when working with team to be updated about the tasks that are completed and those that are yet to be done.
19 stars 53 forks source link

fixed a bug in 404 page #203

Closed arpit456jain closed 3 years ago

arpit456jain commented 3 years ago

Description:

fixed a bug in 404 page previously

dhid

now

aaaaa

Fixes #202

Type of change:

Checklist:

Screenshots / Video:

arpit456jain commented 3 years ago

@SaiSudhaV @PROTechThor @sruti2024 kindly review this PR

SaiSudhaV commented 3 years ago

@arpit456jain Is External CSS creating a bug?

arpit456jain commented 3 years ago

@arpit456jain Is External CSS creating a bug?

Yes... when debug is false django doesn't render css locally

arpit456jain commented 3 years ago

So it's good practice to keep css for 404 page in it . No need to make a separate css file

arpit456jain commented 3 years ago

@SaiSudhaV some times its good to be internal css rather than external 🙂.

arpit456jain commented 3 years ago

@sruti2024 kindly merge this PR and add labels to it

Aryamanz29 commented 3 years ago

@arpit456jain Is External CSS creating a bug?

Nope, because when you SET DEBUG=False, Django doesn't load static files for this we have to use the --insecure flag while running server. ie python manage.py runserver --insecure

See this Stackoverflow Question: https://stackoverflow.com/questions/31097333/why-is-serving-static-files-insecure

@arpit456jain I think this is not a bug if you follow the above instructions, you see 404.html load with external CSS

Note: In the future, if project admin wants to deploy this app, they could use collectstatic which ensures all static files load properly.

See I've tested locally : :point_down:

Screenshot from 2021-05-29 16-34-49

arpit456jain commented 3 years ago

@Aryamanz29 First thing are you mentor ? ?

Second thing . I dont't know about --insecure if its true then may be you are right..

Third what's the big deal if we put css internally ?

Fourth main purpose of creating external css is to reduce code , the css which is being used in more than one page is preferred to put externally . No need of making all css external it slow down the loading capacity of page .

@SaiSudhaV @sruti2024 if you think this PR is good yo be merged , please merged it . or you can close it no problem to me . thank You

Aryamanz29 commented 3 years ago

@Aryamanz29 First thing are you mentor ? ?

Second thing . I dont't know about --insecure if its true then may be you are right..

Third what's the big deal if we put css internally ?

Fourth main purpose of creating external css is to reduce code , the css which is being used in more than one page is preferred to put externally . No need of making all css external it slow down the loading capacity of page .

@SaiSudhaV @sruti2024 if you think this PR is good yo be merged , please merged it . or you can close it no problem to me . thank You

arpit456jain commented 3 years ago

@SaiSudhaV @sruti2024 can you add labels please

arpit456jain commented 3 years ago

@SaiSudhaV @sruti2024 @PROTechThor labels ??