Thursday, January 31, 2019

Possible hack attempt

I'm working on launching a site which currently is still linked to only an IP and thanks to how digitalocean recommends setting it up and how I built it I feel it's relatively safe provided that the security I implemented on ubuntu as recommended and Django's inbuilt security avoiding file browsing outside set path's and accessing info is maintained.

Still though getting this emails thanks to error handling shows someone is trying to access my sock file and I think it's only right this is pointed out to know if there's a known vulnerability.

Invalid HTTP_HOST header: '/home/sammy/webapp/decomagna/deco.sock:'. The domain name provided is not valid according to RFC 1034/1035.

Report at /
Invalid HTTP_HOST header: '/home/sammy/webapp/decomagna/deco.sock:'. The domain name provided is not valid according to RFC 1034/1035.

Request Method: GET
Request URL: http:///home/sammy/webapp/decomagna/deco.sock:/
Django Version: 2.0
Python Executable: /home/sammy/webapp/envs/deco/bin/python3
Python Version: 3.5.2
Python Path: ['/home/sammy/webapp/decomagna', '/home/sammy/webapp/envs/deco/bin', '/home/sammy/webapp/envs/deco/lib/python35.zip', '/home/sammy/webapp/envs/deco/lib/python3.5', '/home/sammy/webapp/envs/deco/lib/python3.5/plat-x86_64-linux-gnu', '/home/sammy/webapp/envs/deco/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/home/sammy/webapp/envs/deco/lib/python3.5/site-packages']
Server time: Thu, 31 Jan 2019 21:16:48 +0000
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'location_field.apps.DefaultConfig',
'mptt',
'ckeditor',
'ckeditor_uploader',
'inventory',
'common',
'pages']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']

Request information:
USER: [unable to retrieve the current user]

GET: No GET data

POST: No POST data

FILES: No FILES data

COOKIES: No cookie data

META:
HTTP_ACCEPT = '*/*'
HTTP_CONNECTION = 'close'
HTTP_USER_AGENT = 'Mozilla/5.0(WindowsNT6.1;rv:31.0)Gecko/20100101Firefox/31.0'
HTTP_X_FORWARDED_FOR = '196.52.43.114'
HTTP_X_FORWARDED_PROTO = 'http'
HTTP_X_REAL_IP = '196.52.43.114'
PATH_INFO = '/'
QUERY_STRING = ''
RAW_URI = '/'
REMOTE_ADDR = ''
REQUEST_METHOD = 'GET'
SCRIPT_NAME = ''
SERVER_NAME = '/home/sammy/webapp/decomagna/deco.sock'
SERVER_PORT = ''
SERVER_PROTOCOL = 'HTTP/1.0'
SERVER_SOFTWARE = 'gunicorn/19.9.0'
gunicorn.socket = <socket.socket fd=10, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/home/sammy/webapp/decomagna/deco.sock>
wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fa284bcea90>
wsgi.file_wrapper = ''
wsgi.input = <gunicorn.http.body.Body object at 0x7fa284bdbe10>
wsgi.multiprocess = True
wsgi.multithread = False
wsgi.run_once = False
wsgi.url_scheme = 'http'
wsgi.version = '(1, 0)'

Settings:
Using settings module decomagna.settings
ABSOLUTE_URL_OVERRIDES = {}
ADMINS = [('Samuel Muiruri', 'muiruri.samuel@gmail.com')]
ALLOWED_HOSTS = ['68.183.98.238']
APPEND_SLASH = True
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS = '********************'
AUTH_USER_MODEL = 'auth.User'
BASE_DIR = '/home/sammy/webapp/decomagna'
CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS = 'default'
CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
CACHE_MIDDLEWARE_SECONDS = 600
CKEDITOR_BASEPATH = '/static/ckeditor/ckeditor/'
CKEDITOR_CONFIGS = {'default': {'toolbar': None, 'allowedContent': True}, 'disableNativeSpellChecker': False, 'basic_ckeditor': {'toolbar': 'Basic'}}
CKEDITOR_UPLOAD_PATH = 'ckeditor/'
CONTACT_ADMINS = []
CSRF_COOKIE_AGE = 31449600
CSRF_COOKIE_DOMAIN = None
CSRF_COOKIE_HTTPONLY = False
CSRF_COOKIE_NAME = 'csrftoken'
CSRF_COOKIE_PATH = '/'
CSRF_COOKIE_SECURE = False
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS = []
CSRF_USE_SESSIONS = False
DATABASES = ...
DATABASE_ROUTERS = []
DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
DATETIME_FORMAT = 'N j, Y, P'
DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y']
DATE_FORMAT = 'N j, Y'
DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = False
DECIMAL_SEPARATOR = '.'
DEFAULT_CHARSET = 'utf-8'
DEFAULT_CONTENT_TYPE = 'text/html'
DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE = ''
DEFAULT_TABLESPACE = ''
DISALLOWED_USER_AGENTS = []
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_PASSWORD = '********************'
EMAIL_HOST_USER = 'no-reply@decomagna.com'
EMAIL_PORT = 587
EMAIL_SSL_CERTFILE = None
EMAIL_SSL_KEYFILE = '********************'
EMAIL_SUBJECT_PREFIX = '[Django] '
EMAIL_TIMEOUT = None
EMAIL_USE_LOCALTIME = False
EMAIL_USE_SSL = False
EMAIL_USE_TLS = True
FILE_CHARSET = 'utf-8'
FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
FILE_UPLOAD_PERMISSIONS = None
FILE_UPLOAD_TEMP_DIR = None
FIRST_DAY_OF_WEEK = 0
FIXTURE_DIRS = []
FORCE_SCRIPT_NAME = None
FORMAT_MODULE_PATH = None
FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
GOOGLE_MAPS_API_KEY = '********************'
IGNORABLE_404_URLS = []
INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'location_field.apps.DefaultConfig', 'mptt', 'ckeditor', 'ckeditor_uploader', 'inventory', 'common', 'pages']
INTERNAL_IPS = []
LANGUAGES = ...
LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
LANGUAGE_CODE = 'en-us'
LANGUAGE_COOKIE_AGE = None
LANGUAGE_COOKIE_DOMAIN = None
LANGUAGE_COOKIE_NAME = 'django_language'
LANGUAGE_COOKIE_PATH = '/'
LOCALE_PATHS = []
LOCATION_FIELD = {'provider.google.map_type': 'ROADMAP', 'provider.mapbox.id': 'mapbox.streets', 'resources.media': {'js': ['/static/location_field/js/jquery.livequery.js', '/static/location_field/js/form.js']}, 'map.provider': 'google', 'provider.mapbox.access_token': '********************', 'provider.mapbox.max_zoom': 18, 'search.suffix': '', 'search.provider': 'google', 'map.zoom': 13, 'provider.google.api': '********************', 'resources.root_path': '/static/location_field', 'provider.google.api_key': '********************', 'provider.openstreetmap.max_zoom': 18}
LOGGING = {}
LOGGING_CONFIG = 'logging.config.dictConfig'
LOGIN_REDIRECT_URL = '/accounts/profile/'
LOGIN_URL = '/sign-up'
LOGOUT_REDIRECT_URL = None
MANAGERS = []
MEDIA_ROOT = '/home/sammy/webapp/decomagna/media'
MEDIA_URL = '/media/'
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
MIGRATION_MODULES = {}
MONTH_DAY_FORMAT = 'F j'
NUMBER_GROUPING = 0
PASSWORD_HASHERS = '********************'
PASSWORD_RESET_TIMEOUT_DAYS = '********************'
PREPEND_WWW = False
ROOT_URLCONF = 'decomagna.urls'
SECRET_KEY = '********************'
SECURE_BROWSER_XSS_FILTER = False
SECURE_CONTENT_TYPE_NOSNIFF = False
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
SECURE_HSTS_PRELOAD = False
SECURE_HSTS_SECONDS = 0
SECURE_PROXY_SSL_HEADER = None
SECURE_REDIRECT_EXEMPT = []
SECURE_SSL_HOST = None
SECURE_SSL_REDIRECT = False
SERVER_EMAIL = 'no-reply@decomagna.com'
SESSION_CACHE_ALIAS = 'default'
SESSION_COOKIE_AGE = 1209600
SESSION_COOKIE_DOMAIN = None
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_NAME = 'sessionid'
SESSION_COOKIE_PATH = '/'
SESSION_COOKIE_SECURE = False
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_FILE_PATH = None
SESSION_SAVE_EVERY_REQUEST = False
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE = 'decomagna.settings'
SHORT_DATETIME_FORMAT = 'm/d/Y P'
SHORT_DATE_FORMAT = 'm/d/Y'
SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS = []
SITE_NAME = 'DecoMagna'
STATICFILES_DIRS = "('/home/sammy/webapp/decomagna/static',)"
STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT = None
STATIC_URL = '/static/'
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'APP_DIRS': True, 'DIRS': ['/home/sammy/webapp/decomagna/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'pages.context_processors.pages']}}]
TEST_NON_SERIALIZED_APPS = []
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR = ','
TIME_FORMAT = 'P'
TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE = 'UTC'
UPLOADCARE = {'pub_key': '********************', 'secret': '********************'}
UPLOAD_DIR = '/home/sammy/webapp/decomagna/media/uploads'
USE_ETAGS = False
USE_I18N = True
USE_L10N = True
USE_THOUSAND_SEPARATOR = False
USE_TZ = True
USE_X_FORWARDED_HOST = False
USE_X_FORWARDED_PORT = False
WSGI_APPLICATION = 'decomagna.wsgi.application'
X_FRAME_OPTIONS = 'SAMEORIGIN'
YEAR_MONTH_FORMAT = 'F Y'

--
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/8d14d16c-4dce-4ddf-9e6f-7396ef8cf997%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Projects for Beginners


On Fri, Feb 1, 2019, 5:48 AM RETAIL CYBER <shawndwytch@gmail.com wrote:
Have tried the polls app or blog app? 

On Thu, Jan 31, 2019, 2:56 PM Vikram Jadhav <vikramujadhav@gmail.com> wrote:
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.

--
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/CAGNKn_AWtZfncy_MQCVCvAiiyfBS%2B0kX%3Dk3MPXYn_JHXpV15wA%40mail.gmail.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/CAG6zOKVkHiFkE%2BpjGRJMsWZg8Nr8gh_SErE2BYEBJEVHwCQ_Ng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Has anyone connected Django with AWS cognito in multi-tenant environment?

I'm new to Django, but not new to web development. I'm picking up Django/Python and I'm interested in setting up a SaaS multi-tenant application which leverages AWS's Cognito Identity/Infrastructure for scaling a SaaS Web application.

In googling this, I found very little. There was a thread about a wrapper for Cognito called warrant, but from what I read, it's no longer supported and it didn't seem stable.
Has anyone else gotten a multi-tenant Django app setup with AWS Cognito as your Identity/Authorization provider?

--
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/f288fd2c-2e04-4ec5-866e-86bddce28462%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Looking for a Django Co-Founder.

Yes, I am interested 

On Fri 1 Feb, 2019, 6:28 AM Lenkoe Gafane <lenkoe.gafane@gmail.com wrote:
Please send me 😏

On Tue, 22 Jan 2019, 05:14 Zack Amaral <zack.j.amaral@gmail.com wrote:
Django Community,

Hey you guys, I'm trying to build a platform as a service similar to twitch.tv, are their any django developers out there that would be interested in co-founding my company and helping me develop a MVP to get a seed round of funding? If you're interested I can send you a link to my business plan and UI/UX Design. 

Respectfully,

Zack Amaral
We Love Music, LLC

--
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/894392e9-e171-47fd-9f2b-17335c7b9189%40googlegroups.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/CAG%2BfqK0LQ-AtF2TRYubYZ5Krky8jXqPnaauzwKULSeJpmcvVPg%40mail.gmail.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/CAFj3zB%2Bk5c-OfN%3DMzqYghf1Yw8RMW%3D_3UX3qO2qO-HDk3-BLbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Need Contributors and beginners for job portal ( Whatsapp group )

I want to build a job portal for companies who sponsor work visas to skilled resources.

1) Candian Employers offering jobs to express entry professionals
2) US Employers offering TN Visas to Canadian Citizens

Other use cases.  I need a group of volunteer people interested to work on this

1) Front end devs
2) Designers
3) Database Architects
4) Django Devs
5) Architects

If you are interested, please send me a whatsapp hello on +1 (604) 630-4292.  If I get sufficient response, we will start the project mid february.

--
--

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/CALX19Ng22NNODPYcUk7i-Odc%2BQeGSxk%3DAodStzO1SQUUCK1GCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Projects for Beginners

Have tried the polls app or blog app? 

On Thu, Jan 31, 2019, 2:56 PM Vikram Jadhav <vikramujadhav@gmail.com> wrote:
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.

--
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/CAGNKn_AWtZfncy_MQCVCvAiiyfBS%2B0kX%3Dk3MPXYn_JHXpV15wA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: HELP FOR BEGINER

I would think it would be users database with tables for user data. But maybe your right 

On Thu, Jan 31, 2019, 3:39 PM Navami K <navamiofficial@gmail.com> wrote:
I have an interview task in which
they told
Whenever a user signs up a registration form a database has to created for each user dynamically
Any idea how this is done??

--
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/e2af53ac-b4f7-4363-a3f4-1e67bb9045cc%40googlegroups.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/CAGNKn_CYrre2WKmF_Rpm_dZaLKaNvyNnZQCzVCjXRxjYd5V44g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Looking for a Django Co-Founder.

Please send me 😏

On Tue, 22 Jan 2019, 05:14 Zack Amaral <zack.j.amaral@gmail.com wrote:
Django Community,

Hey you guys, I'm trying to build a platform as a service similar to twitch.tv, are their any django developers out there that would be interested in co-founding my company and helping me develop a MVP to get a seed round of funding? If you're interested I can send you a link to my business plan and UI/UX Design. 

Respectfully,

Zack Amaral
We Love Music, LLC

--
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/894392e9-e171-47fd-9f2b-17335c7b9189%40googlegroups.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/CAG%2BfqK0LQ-AtF2TRYubYZ5Krky8jXqPnaauzwKULSeJpmcvVPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

django joining two models


Hi,
i have three models LeaveBalance, NewLeave and User. I want to pull date from NewLeave and User, basically displaying the data of users that have apply for a leave. I had difficulty figuring out how to accomplish this. my views and model are below.

The view is throwing an errror:
 

Cannot resolve keyword 'newleave_set' into field. Choices are: date_joined, email, first_name, groups, id, is_active, is_staff, is_superuser, last_login, last_name, leave_balance, logentry, newleave, password, profile, user_permissions, username
Exception Location: /root./virtualenvs/eleave/local/lib/python2.7/site-packages/django/db/models/sql/query.py in names_to_path, line 1352
Python Executable: /root./virtualenvs/eleave/bin/python



views.py
def Allleaves(request):
    allleave=User.objects.filter(newleave_set__isnull=False).distinct()
    return render(request,'allleave.html',locals())



models.py
class Leave_Balance(models.Model):
    user=models.OneToOneField(User,on_delete=models.CASCADE,primary_key=True,)
    Monthly_entitlement=models.FloatField(null=True, blank=True, default=None)
    Monthly_consumption=models.FloatField(null=True, blank=True, default=None)
    Leave_current_balance= models.FloatField(null=True, blank=True, default=None)
    leave_encashment= models.FloatField(null=True, blank=True, default=None)
    Year=models.CharField(max_length=100,default='')
    def __unicode__(self):
         return  self.Year

   

class NewLeave(models.Model):
    user=models.ForeignKey(User,default='',on_delete=models.CASCADE)
    leave_balance=models.ManyToManyField(Leave_Balance)
    leave=(
            ('annual','annual'),
            ('sick','sick'),

        )    Leave_type=models.CharField(max_length=100,choices=leave,blank=False,default='')
    dp=(
        ('test','test'),
        ('test1','test1'),
       
    )
 department=models.CharField(max_length=100,choices=dp,blank=False,default='')
    Start_Date=models.DateField(null=True, blank=False)
    End_Date=models.DateField(null=True, blank=False)
    Total_working_days=models.FloatField(null=True, blank=False)
    Reason=models.TextField(max_length=1000,null=True, blank=False)
   
    def __unicode__(self):
         return  self.Leave_type


 

--
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/CAPCf-y52yvOyEbKdQe0SODWAJLR6WB_S91M6DzLTBU2xYGC_eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

HELP FOR BEGINER

I have an interview task in which
they told
Whenever a user signs up a registration form a database has to created for each user dynamically
Any idea how this is done??

--
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/e2af53ac-b4f7-4363-a3f4-1e67bb9045cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: beginner

I want to be one of the best in the field (python n Django), so I will be happy if you can help as my mentor . 

I'm currently stack on dictionary for the best two day. 

On Thu, 31 Jan 2019 at 9:09 PM, Tim Vogt (Tim Vogt) <timtvogt@gmail.com> wrote:
Wat do you want to accomplish?


Op 31 jan. 2019, om 21:51 heeft Emmanuel klutse <nuelklus@gmail.com> het volgende geschreven:

I'm Emmnuel klutse, and very new to programming. 
CAN I GET SOMEONE TO MENTOR ME PLEASE.
i'm currently taking a python course on udemy and also learning on django via youtube.
I NEED A MENTOR 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+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/63ac66bb-ea6e-402d-aa91-2eb82abaf4d2%40googlegroups.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/31162D20-A423-4EE3-869D-5156F4561910%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/CAAw18mCHakG7vEAfQMgkRJv%2B_FfZpHT-CC80TWVqkez1TXJKzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: help for django interview task

Yeah, don't do this for free. Forget about the job, they just want someone to do their work for free. Think of it as a problem to solve to help you learn Django. It is the kind of thing you will need to do in the real world as a Django developer. But forget about this company, they are taking you for a ride.

On Thu, 31 Jan 2019 at 19:18, <michael@zanyblue.com> wrote:
Hi,

If you do go to the effort of implementing this, you could add copyright notices for yourself and license it under the GPL v3.

Take care,
Michael.

On Thursday, January 31, 2019 at 9:28:06 AM UTC-8, Roshan Shah wrote:
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. <onye...@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...@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/6059b57e-380d-4bbd-ab6b-ab5c7f31d5be%40googlegroups.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/86322da2-03b7-49e4-8ea7-2bbd96743ed5%40googlegroups.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/CAGKjKG1phEr06DRE4%2BLY7sMyDe%2BW3DukDuJgiggvqmgqPy7GWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Projects for Beginners

https://wsvincent.com

tim


Op 31 jan. 2019, om 19:02 heeft Vikram Jadhav <vikramujadhav@gmail.com> het volgende geschreven:

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.

Re: beginner

Wat do you want to accomplish?

Tim
tim@officerebels.nl
Op 31 jan. 2019, om 21:51 heeft Emmanuel klutse <nuelklus@gmail.com> het volgende geschreven:

I'm Emmnuel klutse, and very new to programming. 
CAN I GET SOMEONE TO MENTOR ME PLEASE.
i'm currently taking a python course on udemy and also learning on django via youtube.
I NEED A MENTOR 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+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/63ac66bb-ea6e-402d-aa91-2eb82abaf4d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: My django-admin startproject (project name) is not working

What is the specific error you get when you type the command? Are you actually writing "(project name)"? That will not work  - you are supposed to replace "(project name)" with the actual name of a project as in: django-admin startproject myproject

On Thursday, January 31, 2019 at 6:24:16 AM UTC-5, Vkash Poudel wrote:
My django-admin startproject (project name)  is not working

I have tried alot and alot.But theres always a problem in the cmd 

--
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/174f1dbc-63de-4f2a-8946-46e195b92e27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

beginner

I'm Emmnuel klutse, and very new to programming. 
CAN I GET SOMEONE TO MENTOR ME PLEASE.
i'm currently taking a python course on udemy and also learning on django via youtube.
I NEED A MENTOR 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+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/63ac66bb-ea6e-402d-aa91-2eb82abaf4d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: help for django interview task

Hi,

If you do go to the effort of implementing this, you could add copyright notices for yourself and license it under the GPL v3.

Take care,
Michael.

On Thursday, January 31, 2019 at 9:28:06 AM UTC-8, Roshan Shah wrote:
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. <onye...@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...@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/6059b57e-380d-4bbd-ab6b-ab5c7f31d5be%40googlegroups.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/86322da2-03b7-49e4-8ea7-2bbd96743ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.