Thursday, January 31, 2019

Projects for Beginners

Hey there!!
Hope you are doing well in Django.

I am a beginner in Django and completed couples of a tutorial in Django.
Please suggest project ideas or resources of Django projects to learn for me as beginners.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/aaa5b448-671f-439e-b49d-419006f40aca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Projects for Beginners

Hey there!!
Hope you are doing well in Django.

I am a beginner in Django and completed couples of a tutorial in Django.
Please suggest project ideas or resources of Django projects to learn for me as beginners.


 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADJy-vT%3D_KM%2B6ktx3ZkkbmDat%2Bha8PZEgWECgYOEPQgf_RHLOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: help for django interview task

Many such interviews are designed to dupe people. It is a new trend in interviewing... sadly!!!

Many companies and startups when stuck with problems put out job ads(which are cheap), get resumes and give coding test to solve their problem. Hiring is not in their radar but getting code written to fix their issue is why they put the job ad in first place.

Walk away from a test if it takes more than 3 hours of your time. 

I have seen folks spend 40 hours building complex solutions, deliver them and not get hired. 

As for the company to put in writing their benefits and company policies and give you in writing on average bonus payout in last 3 years. If you are to spend so much time on coding, they should spend a fraction of time to give you a clear picture of what is on table should you get hired.  Most of the times you will find that the verbal submissions from HR and interviewer are false.

Get them to do something if they want to get you to put so much time on a coding test.

Roshan



On Thu, Jan 31, 2019 at 10:52 AM Onyeka A. <onyekaag@gmail.com> wrote:

I agree with this. This is a bit much for an interview, unless they'll pay for your time.  That said, what you're being asked to do is rather advanced. It's a good task to use to broaden your Django skills but on your own timetable. If you still want to go ahead, I'd look up Dynamic Databases in Django. There's also this module, but it's not 100% what you're looking for: https://django-dynamic-db-router.readthedocs.io/en/latest/index.html

On Thursday, 31 January 2019 14:38:44 UTC+1, Roshan Shah wrote:
Which company is giving you a task to build a sort of full app functionality for interview?

What if you solve it and still they don't hire you? Will they pay for your time?

A small test is fine but if you going to work on something that takes you 20+ hours on a coding test, you are being taken for a ride.

Many fall in this trap and companies nowadays use this gimmick to get free code written.

On Thu, Jan 31, 2019 at 6:56 AM Mohammad Shareef M <share...@gmail.com> wrote:
Refer this beginners document and try  - https://tango-with-django.readthedocs.io/en/latest/

Thanks & Regards,
Mahammad Shareef M
 +919741482617
 +971581756035


On Thu, Jan 31, 2019 at 3:42 PM Tim Vogt (Tim Vogt) <timt...@gmail.com> wrote:
draw out the program first and isolatie each problem you try to solve.

and start at the backend.
start small and increase the functions and try to grasp all.
At least in abstraction what you try to do. 

Than start writing the functions in a recipe overview. 
and after the application basics are installed( django app settings etc
write the functions in human language and/ or directly in the models forms etc.




succes!

Tim
coderebels

Op 31 jan. 2019, om 07:44 heeft Navami K <navamio...@gmail.com> het volgende geschreven:

Can anyone help me with the project in the given image . thats my interview task . i have no idea... i am starter . know only the basics

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/36202414-5af8-4a8a-9b28-ee30481519a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<IMG-20190130-WA0000.jpeg>

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1A875307-AE5B-4B52-88D6-0671E6E7DA33%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUAdBF7yPQaDZTBhoCaGBqP6ukBuxk0k1nV0S6NhJWkhDNOJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
--

Roshan Shah / Sr. IT Consultant
techie...@gmail.com / (519) 496-8860

This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with me by e-mail is deemed to have accepted these risks.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6059b57e-380d-4bbd-ab6b-ab5c7f31d5be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
--

Roshan Shah / Sr. IT Consultant
techieroshan@gmail.com / (519) 496-8860

This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with me by e-mail is deemed to have accepted these risks.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALX19NjV64O%2BXXtL9aHRYy2dUWOciWYtFRK%2ByZ%2BnhPM2OEB7zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

django channels daphne static files

I'm on the latest Django 2.1.5, channels 2.1.6, daphne 2.2.4

Trying to get the static file to route through daphne.  I've tried using the default 'AsgiHandler' and tried both 'StaticFilesHandler' and 'StaticFilesWrapper'.  Here's my settings.py, routing.py setup and output:

My code works using 'python manage.py runserver'

import os

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)

----------------------------------


from django.conf.urls import url

from channels.http import AsgiHandler
from channels.routing import ProtocolTypeRouter, URLRouter

application = ProtocolTypeRouter({
    # Channels will do this for you automatically. It's included here as an example.
    "http": URLRouter([
        # AsgiHandler is "the rest of Django" - send things here to have Django
        # views handle them.
        url(r"^", AsgiHandler),
    ]),
})



----------------------------------

from django.conf.urls import url

from channels.staticfiles import StaticFilesHandler
from channels.routing import ProtocolTypeRouter, URLRouter

application = ProtocolTypeRouter({
    # Channels will do this for you automatically. It's included here as an example.
    "http": URLRouter([
        # AsgiHandler is "the rest of Django" - send things here to have Django
        # views handle them.
        url(r"^", StaticFilesHandler),
    ]),
})

2019-01-31 10:31:57,386 ERROR    Exception inside application: 'static_base_url'
  File "c:\python37\lib\site-packages\channels\http.py", line 202, in __call__
    await self.handle(body)
  File "c:\python37\lib\site-packages\asgiref\sync.py", line 108, in __call__
    return await asyncio.wait_for(future, timeout=None)
  File "C:\Python37\Lib\asyncio\tasks.py", line 388, in wait_for
    return await fut
  File "C:\Python37\Lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\python37\lib\site-packages\asgiref\sync.py", line 123, in thread_handler
    return self.func(*args, **kwargs)
  File "c:\python37\lib\site-packages\channels\http.py", line 233, in handle
    response = self.get_response(request)
  File "c:\python37\lib\site-packages\channels\staticfiles.py", line 68, in get_response
    return self.serve(request)
  File "c:\python37\lib\site-packages\channels\staticfiles.py", line 60, in serve
    return serve(request, self.file_path(request.path), insecure=True)
  File "c:\python37\lib\site-packages\channels\staticfiles.py", line 53, in file_path
    relative_url = url[len(self.scope["static_base_url"][2]) :]
  'static_base_url'


---------------------------------------------

from django.conf.urls import url

from channels.staticfiles import StaticFilesWrapper
from channels.routing import ProtocolTypeRouter, URLRouter

application = ProtocolTypeRouter({
    # Channels will do this for you automatically. It's included here as an example.
    "http": URLRouter([
        # AsgiHandler is "the rest of Django" - send things here to have Django
        # views handle them.
        url(r"^", StaticFilesWrapper),
    ]),
})

2019-01-31 10:36:28,617 ERROR    Traceback (most recent call last):
  File "c:\python37\lib\site-packages\daphne\http_protocol.py", line 179, in process
    "server": self.server_addr,
TypeError: __call__() got an unexpected keyword argument 'receive'

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3020c698-4cb3-4a29-8b65-d6f1e833aa9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: help for django interview task


I agree with this. This is a bit much for an interview, unless they'll pay for your time.  That said, what you're being asked to do is rather advanced. It's a good task to use to broaden your Django skills but on your own timetable. If you still want to go ahead, I'd look up Dynamic Databases in Django. There's also this module, but it's not 100% what you're looking for: https://django-dynamic-db-router.readthedocs.io/en/latest/index.html

On Thursday, 31 January 2019 14:38:44 UTC+1, Roshan Shah wrote:
Which company is giving you a task to build a sort of full app functionality for interview?

What if you solve it and still they don't hire you? Will they pay for your time?

A small test is fine but if you going to work on something that takes you 20+ hours on a coding test, you are being taken for a ride.

Many fall in this trap and companies nowadays use this gimmick to get free code written.

On Thu, Jan 31, 2019 at 6:56 AM Mohammad Shareef M <share...@gmail.com> wrote:
Refer this beginners document and try  - https://tango-with-django.readthedocs.io/en/latest/

Thanks & Regards,
Mahammad Shareef M
 +919741482617
 +971581756035


On Thu, Jan 31, 2019 at 3:42 PM Tim Vogt (Tim Vogt) <timt...@gmail.com> wrote:
draw out the program first and isolatie each problem you try to solve.

and start at the backend.
start small and increase the functions and try to grasp all.
At least in abstraction what you try to do. 

Than start writing the functions in a recipe overview. 
and after the application basics are installed( django app settings etc
write the functions in human language and/ or directly in the models forms etc.




succes!

Tim
coderebels

Op 31 jan. 2019, om 07:44 heeft Navami K <navamio...@gmail.com> het volgende geschreven:

Can anyone help me with the project in the given image . thats my interview task . i have no idea... i am starter . know only the basics

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/36202414-5af8-4a8a-9b28-ee30481519a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<IMG-20190130-WA0000.jpeg>

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1A875307-AE5B-4B52-88D6-0671E6E7DA33%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUAdBF7yPQaDZTBhoCaGBqP6ukBuxk0k1nV0S6NhJWkhDNOJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
--

Roshan Shah / Sr. IT Consultant
techie...@gmail.com / (519) 496-8860

This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with me by e-mail is deemed to have accepted these risks.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6059b57e-380d-4bbd-ab6b-ab5c7f31d5be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Exception happened during processing of request from ...

Hello,
I'm running here django 2.1.5 with python 3.7.2 (installed with homebrew) on a macOS (mojave).

On a regular basis I get this error message:

Exception happened during processing of request from ('127.0.0.1', 54882)
Traceback (most recent call last):
 
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 650, in process_request_thread
   
self.finish_request(request, client_address)
 
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 360, in finish_request
   
self.RequestHandlerClass(request, client_address, self)
 
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 720, in __init__
   
self.handle()
 
File "/Users/User/DEV/gogs/TV-Webpage/venv/lib/python3.7/site-packages/django/core/servers/basehttp.py", line 171, in handle
   
self.handle_one_request()
 
File "/Users/User/DEV/gogs/TV-Webpage/venv/lib/python3.7/site-packages/django/core/servers/basehttp.py", line 179, in handle_one_request
   
self.raw_requestline = self.rfile.readline(65537)
 
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto
   
return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer
----------------------------------------

It comes for example when I open the admin page, but not always.


Have you any idea how I can fix that?

Have a nice day!

Jonathan

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a309d8d-139b-4de4-b110-9a36a832d7b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: help for django interview task

Which company is giving you a task to build a sort of full app functionality for interview?

What if you solve it and still they don't hire you? Will they pay for your time?

A small test is fine but if you going to work on something that takes you 20+ hours on a coding test, you are being taken for a ride.

Many fall in this trap and companies nowadays use this gimmick to get free code written.

On Thu, Jan 31, 2019 at 6:56 AM Mohammad Shareef M <shareef617@gmail.com> wrote:
Refer this beginners document and try  - https://tango-with-django.readthedocs.io/en/latest/

Thanks & Regards,
Mahammad Shareef M
 +919741482617
 +971581756035


On Thu, Jan 31, 2019 at 3:42 PM Tim Vogt (Tim Vogt) <timtvogt@gmail.com> wrote:
draw out the program first and isolatie each problem you try to solve.

and start at the backend.
start small and increase the functions and try to grasp all.
At least in abstraction what you try to do. 

Than start writing the functions in a recipe overview. 
and after the application basics are installed( django app settings etc
write the functions in human language and/ or directly in the models forms etc.




succes!

Tim
coderebels

Op 31 jan. 2019, om 07:44 heeft Navami K <navamiofficial@gmail.com> het volgende geschreven:

Can anyone help me with the project in the given image . thats my interview task . i have no idea... i am starter . know only the basics

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/36202414-5af8-4a8a-9b28-ee30481519a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<IMG-20190130-WA0000.jpeg>

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1A875307-AE5B-4B52-88D6-0671E6E7DA33%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUAdBF7yPQaDZTBhoCaGBqP6ukBuxk0k1nV0S6NhJWkhDNOJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
--

Roshan Shah / Sr. IT Consultant
techieroshan@gmail.com / (519) 496-8860

This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with me by e-mail is deemed to have accepted these risks.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALX19NhyAH%2Bg_yfBsv36PREUGHN0jN-%2B9yO%3Dn6m93qciPo-SOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.