Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-02 Thread Daisy
Thank you very much for your reply, and here I my answers:
  * Does the directory show up when you do a *dir* command in projectdir ? It 
does not show up, although it says that there are 2 directories (see 
attachment). 
  * Can you do anything on the *mysite* directory - can you rename it, 
or even delete it ? I can't - system cannot find the file specified.
  * Can you see it in File explorer - No.
  * Can you manually create a directory in your *projectdir* ? - Yes, and 
it is displayed after command *dir*.
  * Can you create a different projectdir - and run *django-admin 
startproject mysite* in there ? - I tried creating it on different 
paths, both on C and D disk, but it was the same behavior.

What can I do now? :)

четвртак, 03. мај 2018. 01.08.04 UTC+2, TonyF-UK је написао/ла:
>
> Lets troubleshoot: 
>
>   * Does the directory show up when you do a *dir* command in projectdir ? 
>   * Can you do anything on the *mysite* directory - can you rename it, 
> or even delete it ? 
>   * Can you see it in File explorer 
>   * Can you manually create a directory in your *projectdir* ? 
>   * Can you create a different projectdir - and run *django-admin 
> startproject mysite* in there ? 
>
> My gut feeling is that this is a diskdrive/OS type issue - rather than 
> Django specific 
>
> You may have a corrupted directory - or a bad section of disk; try the 
> troubleshooting steps above first. 
>
>
>
> On 02/05/18 22:09, Daisy wrote: 
> > I installed django according to provided instructions and I am trying 
> > to follow the Django article: Writing your first Django app, part 1 
> >  but I am 
> > stuck at Creating a project with command: django-admin startproject 
> > mysite. 
> > The problem is that I CAN execute command but when I try to access 
> > directory with cd mysite I get the message "The system cannot find the 
> > path specified." although when I try to execute command startproject 
> > again I get the message that it already exists. (see attachment) 
> > I cannot find new directory via windows explorer neither. 
> > I have installed django 2.0.5 version and python 3.6.3 (32-bit). 
> > -- 
> > 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/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/django-users/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com?utm_medium=email_source=footer>.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
> -- 
> -- 
> Anthony Flury 
> email : *anthon...@btinternet.com * 
> Twitter : *@TonyFlury * 
>
>

-- 
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 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/c93769b1-55ca-47f7-9f8f-474ab07ede88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Integrating cryptoassets.core library in django

2018-05-02 Thread Hitesh Goyal
Yes I did.
1) I installed all the required packages.
2) Added to Installed apps.

Here is my settings.py file :-  

"""
Django settings for crypto project.

Generated by 'django-admin startproject' using Django 2.0.

For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""

import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'll8(-7j1l%$xmr269^s1%k(wkdki72zd=ngg@$mnr5-ac!%_8-'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'cryptoassets.django',  
'cryptoassets.core',
]

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',
]

ROOT_URLCONF = 'crypto.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'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',
],
},
},
]

WSGI_APPLICATION = 'crypto.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}


# Password validation
# 
https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'


# TESTNET settings
CRYPTOASSETS = {

# It is recommended to use separate database for cryptoassets,
# but you can share the database with Django as well.
# In any case, cryptoassets
# will use a separate db connection.
# cryptoassets.django does not read the existing DATABASES setting.
# Configure the connection using SQLAlchemy syntax:
# http://cryptoassetscore.readthedocs.org/en/latest/config.html#database
"database": {
"url": "postgresql:///cryptoassets",
"echo": False,
},

# Configure block.io API service with Bitcoin testnet
# (let's not play around with real Bitcoins yet)
"coins": {
"btc": {
"backend": {
"class": "cryptoassets.core.backend.blockio.BlockIo",
"api_key": "887c-1a48-6c1f-ev64",
"network": "btctest",
"pin": "icemanuser",
# Cryptoassets helper process will use this UNIX named pipe 
to communicate
# with bitcoind
"walletnotify": {
"class": 
"cryptoassets.core.backend.sochainwalletnotify.SochainWalletNotifyHandler",
"pusher_app_key": "e9f5cc20074501ca7395"
},
}
},
},

# Bind cryptoassets.core event handler to Django dispacth wrapper
"events": {
"django": {
"class": "cryptoassets.core.event.python.InProcessEventHandler",
"callback": "cryptoassets.django.incoming.handle_tx_update"
}
},

# Start simple status at port 9001 for diagnostics
"status_server": {
"ip": "127.0.0.1",
"port": 9001
}
}


On Wednesday, May 2, 2018 at 8:55:11 PM UTC+5:30, 

Re: need help

2018-05-02 Thread Gerald Brown
Have you tried "pip install django" without the "== 2.0.5". I think that 
if you do not specify a version pip will install the latest version.



On Thursday, 03 May, 2018 12:46 AM, umarkamb...@gmail.com wrote:
please  this is the massage i keep on getting when trying to install 
django.. what do i do?



C:\Users\Admin>pip install Django==2.0.5
Collecting Django==2.0.5
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): 
Read timed out. (read timeout=15)",)': /simple/django/
  Downloading 
https://files.pythonhosted.org/packages/23/91/2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3/Django-2.0.5-py3-none-any.whl 
(7.1MB)
    0% |                                | 10kB 1.2kB/s eta 
1:36:24Exception:

Traceback (most recent call last):
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", 
line 302, in _error_catcher

    yield
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", 
line 384, in read

    data = self._fp.read(amt)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", 
line 60, in read

    data = self.__fp.read(amt)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py", 
line 449, in read

    n = self.readinto(b)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py", 
line 493, in readinto

    n = self.fp.readinto(b)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py", 
line 586, in readinto

    return self._sock.recv_into(b)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
line 1009, in recv_into

    return self.read(nbytes, buffer)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
line 871, in read

    return self._sslobj.read(len, buffer)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
line 631, in read

    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py", 
line 215, in main

    status = self.run(options, args)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py", 
line 324, in run

    requirement_set.prepare_files(finder)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", 
line 380, in prepare_files

    ignore_dependencies=self.ignore_dependencies))
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", 
line 620, in _prepare_file

    session=self.session, hashes=hashes)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", 
line 821, in unpack_url

    hashes=hashes
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", 
line 659, in unpack_http_url

    hashes)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", 
line 882, in _download_http_url

    _download_url(resp, link, content_file, hashes)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", 
line 603, in _download_url

    hashes.check_against_chunks(downloaded_chunks)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\hashes.py", 
line 46, in check_against_chunks

    for chunk in chunks:
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", 
line 571, in written_chunks

    for chunk in chunks:
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\ui.py", 
line 139, in iter

    for x in it:
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", 
line 560, in resp_read

    decode_content=False):
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", 
line 436, in stream

    data = self.read(amt=amt, decode_content=decode_content)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", 
line 401, in read

    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\contextlib.py", 
line 99, in __exit__

    self.gen.throw(type, value, traceback)
  File 

Re: Admin site and ModelAdmin

2018-05-02 Thread Mike Dewhirst

On 3/05/2018 10:33 AM, Mike Dewhirst wrote:

On 3/05/2018 7:00 AM, jt.oldn...@gmail.com wrote:
I'm new to Django and web development in general (C++ background) and 
I've got amazingly far very quickly, but there's one thing I've been 
struggling with for a couple days now :-(. Forgive me if I screw up 
the lingo.


I've got a ModelAdmin page for registrants of a conference which has 
fields for Employee ID, Name, email etc. The registrant does not have 
to be an employee, but if they are I could lookup their name, email 
etc. from an external source (already have the Python code for this). 
I'd like to have a button next to the employee id field which would 
lookup the employee's details and fill in the appropriate fields. 
This seems to me that it shouldn't be too hard but I am spinning my 
wheels here.  Do I need to ditch ModelAdmin?  Can someone please 
point me in the right direction.


You may not need a button which, in the Admin, implies javascript and 
an API. In your model you can intercept the save() method to visit 
another database/system to fetch the detail before the record is 
saved. There are probably many ways to do this. One uses a pre-save 
signal [1] but I prefer to override save() [2].


class Employee(models.Model):

    ... all the fields etc

    fetchdata = models.BooleanField(default=False, blank=True)

    def save(self, *args, **kwargs):
    if self.fetchdata:
    self.fetchdata = False
            try:
        self.this, self.that = self.fetch_data()
    except Exception:
    # avoid losing other changes
    pass

 super(Employee, self).save(*args, **kwargs)

Sorry - should have read what I pasted in


super(Substance, self).save(*args, **kwargs)

    def fetch_data(self):
        #call external database with employee ID and return necessary 
detail

    return this, that

[1] https://docs.djangoproject.com/en/1.11/ref/signals/#pre-save
[2] 
https://docs.djangoproject.com/en/2.0/ref/models/instances/#saving-objects


hth



Thanks,
JT
--
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 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/1324e38c-ed15-4f3c-8e1e-cd7df220b96e%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+unsubscr...@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/88249111-78d2-5076-0ea9-b0cb5d5d5ae6%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Adding to all templates context via Middleware

2018-05-02 Thread Bernd Wechner
 This interests me:


https://teamtreehouse.com/community/django-how-can-i-retrieve-a-value-from-the-middleware

alas no answer there, and time has changed things.

I have checked form experience, that stuff added to response.context_data 
in middleware is not seen in templates (perhaps comes too late!).

Another pager here:

https://mlvin.xyz/django-templates-context-processors.html

describes how to add to context used context processors. Searching the web 
is nightmare in this space because of how Django has changed over time and 
the different methods in different versions.

The problem I have with that sample above is he's replicating code by 
including in settings.py:

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, "templates"),],
'APP_DIRS': True,
'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',
# our custom context processor
'utils.context_processors.active_shows',
],
},
},]


most of which is standard. Is there not a much more DRY way to add a 
context processor? Would this work?

TEMPLATES = [
{
'OPTIONS': {
'context_processors': [
'utils.context_processors.active_shows',
],
},
},]


Probably not at a guess.  But is there a nicer way to do it?

Another way might be to patch the response.content in the middleware but 
that too seems messy.

Surely there's a nice way for middlware to take some timing stats around 
the:

response = self.get_response(request)

invocation that typically returns a response (and which I presume has 
already been through the whole template processing and has finalised 
response.content by the time it's done, so taking a timestamp after it's 
done is easy but making the result available in the templates via a context 
variable like {{execution_time}} would seem structurally impossible if 
context processing has already happened. 

I can only imagine a trick using another context key like 
%%execution_time%% say and replacing that response.content.

I wonder if I'm on the right track here? Or if someone has a better idea?

Regards,

Bernd.


-- 
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 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/aa664e82-187c-4c4b-907d-9ef2aa335e13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site and ModelAdmin

2018-05-02 Thread Mike Dewhirst

On 3/05/2018 7:00 AM, jt.oldn...@gmail.com wrote:
I'm new to Django and web development in general (C++ background) and 
I've got amazingly far very quickly, but there's one thing I've been 
struggling with for a couple days now :-(. Forgive me if I screw up 
the lingo.


I've got a ModelAdmin page for registrants of a conference which has 
fields for Employee ID, Name, email etc. The registrant does not have 
to be an employee, but if they are I could lookup their name, email 
etc. from an external source (already have the Python code for this). 
I'd like to have a button next to the employee id field which would 
lookup the employee's details and fill in the appropriate fields. This 
seems to me that it shouldn't be too hard but I am spinning my wheels 
here.  Do I need to ditch ModelAdmin?  Can someone please point me in 
the right direction.


You may not need a button which, in the Admin, implies javascript and an 
API. In your model you can intercept the save() method to visit another 
database/system to fetch the detail before the record is saved. There 
are probably many ways to do this. One uses a pre-save signal [1] but I 
prefer to override save() [2].


class Employee(models.Model):

    ... all the fields etc

    fetchdata = models.BooleanField(default=False, blank=True)

    def save(self, *args, **kwargs):
    if self.fetchdata:
    self.fetchdata = False
            try:
        self.this, self.that = self.fetch_data()
    except Exception:
    # avoid losing other changes
    pass
    super(Substance, self).save(*args, **kwargs)

    def fetch_data(self):
        #call external database with employee ID and return necessary 
detail

    return this, that

[1] https://docs.djangoproject.com/en/1.11/ref/signals/#pre-save
[2] 
https://docs.djangoproject.com/en/2.0/ref/models/instances/#saving-objects


hth



Thanks,
JT
--
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 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/1324e38c-ed15-4f3c-8e1e-cd7df220b96e%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+unsubscr...@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/add76f8e-b999-e9df-be5f-01bd2de26c3f%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-02 Thread 'Anthony Flury' via Django users

Lets troubleshoot:

 * Does the directory show up when you do a *dir* command in projectdir ?
 * Can you do anything on the *mysite* directory - can you rename it,
   or even delete it ?
 * Can you see it in File explorer
 * Can you manually create a directory in your *projectdir* ?
 * Can you create a different projectdir - and run *django-admin
   startproject mysite* in there ?

My gut feeling is that this is a diskdrive/OS type issue - rather than 
Django specific


You may have a corrupted directory - or a bad section of disk; try the 
troubleshooting steps above first.




On 02/05/18 22:09, Daisy wrote:
I installed django according to provided instructions and I am trying 
to follow the Django article: Writing your first Django app, part 1 
 but I am 
stuck at Creating a project with command: django-admin startproject 
mysite.
The problem is that I CAN execute command but when I try to access 
directory with cd mysite I get the message "The system cannot find the 
path specified." although when I try to execute command startproject 
again I get the message that it already exists. (see attachment)

I cannot find new directory via windows explorer neither.
I have installed django 2.0.5 version and python 3.6.3 (32-bit).
--
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 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/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.



--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury *

--
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 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/77f18454-13a5-4e03-f791-7da59016e379%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.


Re: Channels 2: Consumer lifecycle when run in a worker process

2018-05-02 Thread Alexander Prokhorov
Thank you very much!

четверг, 3 мая 2018 г., 1:07:22 UTC+3 пользователь Andrew Godwin написал:
>
> At the level of abstraction of the Worker, you can't prevent it pulling 
> more messages off the queue - if you want that level of control, you would 
> have to subclass it and change the logic yourself, I imagine.
>
> Andrew
>
> On Wed, May 2, 2018 at 1:12 PM Alexander Prokhorov  > wrote:
>
>>
>> Indeed, that is exactly what I am doing - run processing in the 
>> background with
>>
>> task = asyncio.ensure_future(database_sync_to_async(self._process)(
>> message))
>>
>> and then keep track of that running tasks. Actually, I am quite happy 
>> with this except one thing. I would like to limit the number if messages 
>> processed at the same time by a single worker. The logic is straightforward 
>> - once I start a new task I check if the "tasks per worker limit" has 
>> reached and if so - just invoke
>>
>> asyncio.wait(self._tasks, return_when=asyncio.FIRST_COMPLETED)
>>
>> so I block the consumer's message handler until some task finishes. I did 
>> not make experiments, but from the worker's code 
>> 
>>  
>> I can conclude that worker will anyway extract messages from the channel 
>> and put them into the application's queue which (according to this this 
>> )
>>  has 
>> unlimited size. And that is what bothers me the most. My logic is simple, 
>> if a worker has already reached the "tasks per worker" limit, then I do not 
>> want this worker to extract message from the channel, cause there is 
>> probably another worker process willing to process it. Frankly, I do not 
>> understand how to achieve this... sorry for bothering, but probably you 
>> have some bright idea, please?
>>
>> Anyway, thank you for explanation you have already gave me, it helps, and 
>> it is always pleasure to chat with you :-)
>>
>> среда, 2 мая 2018 г., 22:35:08 UTC+3 пользователь Andrew Godwin написал:
>>>
>>> Ah, my apologies - you are entirely right, the scope is the same so it 
>>> will re-use a single existing instance, which means that it will process 
>>> messages synchronously and lose them, as you suggested.
>>>
>>> Using sync_to_async won't help as, while it runs in a threadpool, it 
>>> also blocks the coroutine until that thread completes.
>>>
>>> Without modifying the underlying worker implementation, the best way to 
>>> process things in parallel would be to spin off things into their own 
>>> coroutines within your handler - either manually, using 
>>> EventLoop.create_task, or I guess you could slew it out into 
>>> different-named channels.
>>>
>>> Andrew
>>>
>>> On Wed, May 2, 2018 at 11:51 AM Alexander Prokhorov  
>>> wrote:
>>>
 Andrew, thank you for quick response!

 Unfortunately I see something different. If I raise `StopConsumer` 
 after processing a single message, the next one is lost. From the code 
 https://github.com/django/asgiref/blob/master/asgiref/server.py#L75 I 
 see that `get_or_create_application_instance` returns existing 
 application instance, so when message arrives it is put into the queue of 
 the existing application. If I raise `StopConsumer` this application 
 got killed and the message is lost.

 Another observation: when message handler awaits something (like in my 
 snippet `await some_process()`) this application instance does not 
 process new messages. When one message handler function exits - the next 
 one starts.

 Actually, I was offloading message processing to the threadpool (using `
 sync_to_async`) and trying to limit the number of messages being 
 processed at the same time. I hoped that if I await for some coroutine the 
 worker will stop accepting messages, so other workers can process them 
 until this one gets free again. Can you give me a clue how to achieve this 
 bevaviour?


 среда, 2 мая 2018 г., 18:39:01 UTC+3 пользователь Andrew Godwin написал:
>
>
>- Will `MyConsumer` receive new `wakeup` messages while awaiting `
>some_process`?
>
> Yes. The worker server runs as many application instances as there are 
> messages coming in, even though they all have the same scope. You can see 
> the main listening loop here: 
> https://github.com/django/channels/blob/master/channels/worker.py#L32
>
>- When do I need to raise `StopConsumer`? I can do it after each 
>processing of `wakeup` message (like in the code above) is that 
>correct? What will happen with all the `pending` messages in such 
>case?
>
> You need to raise it when the specific application instance you have 
> is completed - because there's a different instance for each 

Re: Channels 2: Consumer lifecycle when run in a worker process

2018-05-02 Thread Andrew Godwin
At the level of abstraction of the Worker, you can't prevent it pulling
more messages off the queue - if you want that level of control, you would
have to subclass it and change the logic yourself, I imagine.

Andrew

On Wed, May 2, 2018 at 1:12 PM Alexander Prokhorov 
wrote:

>
> Indeed, that is exactly what I am doing - run processing in the background
> with
>
> task = asyncio.ensure_future(database_sync_to_async(self._process)(message
> ))
>
> and then keep track of that running tasks. Actually, I am quite happy with
> this except one thing. I would like to limit the number if messages
> processed at the same time by a single worker. The logic is straightforward
> - once I start a new task I check if the "tasks per worker limit" has
> reached and if so - just invoke
>
> asyncio.wait(self._tasks, return_when=asyncio.FIRST_COMPLETED)
>
> so I block the consumer's message handler until some task finishes. I did
> not make experiments, but from the worker's code
> 
> I can conclude that worker will anyway extract messages from the channel
> and put them into the application's queue which (according to this this
> )
>  has
> unlimited size. And that is what bothers me the most. My logic is simple,
> if a worker has already reached the "tasks per worker" limit, then I do not
> want this worker to extract message from the channel, cause there is
> probably another worker process willing to process it. Frankly, I do not
> understand how to achieve this... sorry for bothering, but probably you
> have some bright idea, please?
>
> Anyway, thank you for explanation you have already gave me, it helps, and
> it is always pleasure to chat with you :-)
>
> среда, 2 мая 2018 г., 22:35:08 UTC+3 пользователь Andrew Godwin написал:
>>
>> Ah, my apologies - you are entirely right, the scope is the same so it
>> will re-use a single existing instance, which means that it will process
>> messages synchronously and lose them, as you suggested.
>>
>> Using sync_to_async won't help as, while it runs in a threadpool, it also
>> blocks the coroutine until that thread completes.
>>
>> Without modifying the underlying worker implementation, the best way to
>> process things in parallel would be to spin off things into their own
>> coroutines within your handler - either manually, using
>> EventLoop.create_task, or I guess you could slew it out into
>> different-named channels.
>>
>> Andrew
>>
>> On Wed, May 2, 2018 at 11:51 AM Alexander Prokhorov 
>> wrote:
>>
>>> Andrew, thank you for quick response!
>>>
>>> Unfortunately I see something different. If I raise `StopConsumer`
>>> after processing a single message, the next one is lost. From the code
>>> https://github.com/django/asgiref/blob/master/asgiref/server.py#L75 I
>>> see that `get_or_create_application_instance` returns existing
>>> application instance, so when message arrives it is put into the queue of
>>> the existing application. If I raise `StopConsumer` this application
>>> got killed and the message is lost.
>>>
>>> Another observation: when message handler awaits something (like in my
>>> snippet `await some_process()`) this application instance does not
>>> process new messages. When one message handler function exits - the next
>>> one starts.
>>>
>>> Actually, I was offloading message processing to the threadpool (using `
>>> sync_to_async`) and trying to limit the number of messages being
>>> processed at the same time. I hoped that if I await for some coroutine the
>>> worker will stop accepting messages, so other workers can process them
>>> until this one gets free again. Can you give me a clue how to achieve this
>>> bevaviour?
>>>
>>>
>>> среда, 2 мая 2018 г., 18:39:01 UTC+3 пользователь Andrew Godwin написал:


- Will `MyConsumer` receive new `wakeup` messages while awaiting `
some_process`?

 Yes. The worker server runs as many application instances as there are
 messages coming in, even though they all have the same scope. You can see
 the main listening loop here:
 https://github.com/django/channels/blob/master/channels/worker.py#L32

- When do I need to raise `StopConsumer`? I can do it after each
processing of `wakeup` message (like in the code above) is that
correct? What will happen with all the `pending` messages in such
case?

 You need to raise it when the specific application instance you have is
 completed - because there's a different instance for each message, that
 means "raise when you've finished processing the message". Nothing happens
 to other messages as they're being handled by different instances.

 Andrew

 On Wed, May 2, 2018 at 7:50 AM Alexander Prokhorov 

Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-02 Thread Daisy
I installed django according to provided instructions and I am trying to 
follow the Django article: Writing your first Django app, part 1 
 but I am stuck at 
Creating a project with command: django-admin startproject mysite.
The problem is that I CAN execute command but when I try to access 
directory with cd mysite I get the message "The system cannot find the path 
specified." although when I try to execute command startproject again I get 
the message that it already exists. (see attachment)
I cannot find new directory via windows explorer neither.

I have installed django 2.0.5 version and python 3.6.3 (32-bit).

-- 
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 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/c574d479-a1b6-4c20-91ab-208ae42d4996%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Admin site and ModelAdmin

2018-05-02 Thread jt . oldnews
I'm new to Django and web development in general (C++ background) and I've 
got amazingly far very quickly, but there's one thing I've been struggling 
with for a couple days now :-(. Forgive me if I screw up the lingo.

I've got a ModelAdmin page for registrants of a conference which has fields 
for Employee ID, Name, email etc. The registrant does not have to be an 
employee, but if they are I could lookup their name, email etc. from an 
external source (already have the Python code for this). I'd like to have a 
button next to the employee id field which would lookup the employee's 
details and fill in the appropriate fields. This seems to me that it 
shouldn't be too hard but I am spinning my wheels here.  Do I need to ditch 
ModelAdmin?  Can someone please point me in the right direction.

Thanks,
JT

-- 
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 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/1324e38c-ed15-4f3c-8e1e-cd7df220b96e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Channels 2: Consumer lifecycle when run in a worker process

2018-05-02 Thread Alexander Prokhorov

Indeed, that is exactly what I am doing - run processing in the background 
with

task = asyncio.ensure_future(database_sync_to_async(self._process)(message))

and then keep track of that running tasks. Actually, I am quite happy with 
this except one thing. I would like to limit the number if messages 
processed at the same time by a single worker. The logic is straightforward 
- once I start a new task I check if the "tasks per worker limit" has 
reached and if so - just invoke

asyncio.wait(self._tasks, return_when=asyncio.FIRST_COMPLETED)

so I block the consumer's message handler until some task finishes. I did 
not make experiments, but from the worker's code 

 
I can conclude that worker will anyway extract messages from the channel 
and put them into the application's queue which (according to this this 
)
 has 
unlimited size. And that is what bothers me the most. My logic is simple, 
if a worker has already reached the "tasks per worker" limit, then I do not 
want this worker to extract message from the channel, cause there is 
probably another worker process willing to process it. Frankly, I do not 
understand how to achieve this... sorry for bothering, but probably you 
have some bright idea, please?

Anyway, thank you for explanation you have already gave me, it helps, and 
it is always pleasure to chat with you :-)

среда, 2 мая 2018 г., 22:35:08 UTC+3 пользователь Andrew Godwin написал:
>
> Ah, my apologies - you are entirely right, the scope is the same so it 
> will re-use a single existing instance, which means that it will process 
> messages synchronously and lose them, as you suggested.
>
> Using sync_to_async won't help as, while it runs in a threadpool, it also 
> blocks the coroutine until that thread completes.
>
> Without modifying the underlying worker implementation, the best way to 
> process things in parallel would be to spin off things into their own 
> coroutines within your handler - either manually, using 
> EventLoop.create_task, or I guess you could slew it out into 
> different-named channels.
>
> Andrew
>
> On Wed, May 2, 2018 at 11:51 AM Alexander Prokhorov  > wrote:
>
>> Andrew, thank you for quick response!
>>
>> Unfortunately I see something different. If I raise `StopConsumer` after 
>> processing a single message, the next one is lost. From the code 
>> https://github.com/django/asgiref/blob/master/asgiref/server.py#L75 I 
>> see that `get_or_create_application_instance` returns existing 
>> application instance, so when message arrives it is put into the queue of 
>> the existing application. If I raise `StopConsumer` this application got 
>> killed and the message is lost.
>>
>> Another observation: when message handler awaits something (like in my 
>> snippet `await some_process()`) this application instance does not 
>> process new messages. When one message handler function exits - the next 
>> one starts.
>>
>> Actually, I was offloading message processing to the threadpool (using `
>> sync_to_async`) and trying to limit the number of messages being 
>> processed at the same time. I hoped that if I await for some coroutine the 
>> worker will stop accepting messages, so other workers can process them 
>> until this one gets free again. Can you give me a clue how to achieve this 
>> bevaviour?
>>
>>
>> среда, 2 мая 2018 г., 18:39:01 UTC+3 пользователь Andrew Godwin написал:
>>>
>>>
>>>- Will `MyConsumer` receive new `wakeup` messages while awaiting `
>>>some_process`?
>>>
>>> Yes. The worker server runs as many application instances as there are 
>>> messages coming in, even though they all have the same scope. You can see 
>>> the main listening loop here: 
>>> https://github.com/django/channels/blob/master/channels/worker.py#L32
>>>
>>>- When do I need to raise `StopConsumer`? I can do it after each 
>>>processing of `wakeup` message (like in the code above) is that 
>>>correct? What will happen with all the `pending` messages in such 
>>>case?
>>>
>>> You need to raise it when the specific application instance you have is 
>>> completed - because there's a different instance for each message, that 
>>> means "raise when you've finished processing the message". Nothing happens 
>>> to other messages as they're being handled by different instances.
>>>
>>> Andrew
>>>
>>> On Wed, May 2, 2018 at 7:50 AM Alexander Prokhorov  
>>> wrote:
>>>
 Dear Andrew,

 I would like to ask couple of questions about the lifecycle of 
 consumers running in Channels workers and serving custom channels.

 Consider a consumer:

 # myconsumer.py
 class MyConsumer(channels.consumer.AsyncConsumer):
 async def wakeup(self, message):
  await some_process()

Re: Channels 2: Consumer lifecycle when run in a worker process

2018-05-02 Thread Andrew Godwin
Ah, my apologies - you are entirely right, the scope is the same so it will
re-use a single existing instance, which means that it will process
messages synchronously and lose them, as you suggested.

Using sync_to_async won't help as, while it runs in a threadpool, it also
blocks the coroutine until that thread completes.

Without modifying the underlying worker implementation, the best way to
process things in parallel would be to spin off things into their own
coroutines within your handler - either manually, using
EventLoop.create_task, or I guess you could slew it out into
different-named channels.

Andrew

On Wed, May 2, 2018 at 11:51 AM Alexander Prokhorov 
wrote:

> Andrew, thank you for quick response!
>
> Unfortunately I see something different. If I raise `StopConsumer` after
> processing a single message, the next one is lost. From the code
> https://github.com/django/asgiref/blob/master/asgiref/server.py#L75 I see
> that `get_or_create_application_instance` returns existing application
> instance, so when message arrives it is put into the queue of the existing
> application. If I raise `StopConsumer` this application got killed and
> the message is lost.
>
> Another observation: when message handler awaits something (like in my
> snippet `await some_process()`) this application instance does not
> process new messages. When one message handler function exits - the next
> one starts.
>
> Actually, I was offloading message processing to the threadpool (using `
> sync_to_async`) and trying to limit the number of messages being
> processed at the same time. I hoped that if I await for some coroutine the
> worker will stop accepting messages, so other workers can process them
> until this one gets free again. Can you give me a clue how to achieve this
> bevaviour?
>
>
> среда, 2 мая 2018 г., 18:39:01 UTC+3 пользователь Andrew Godwin написал:
>>
>>
>>- Will `MyConsumer` receive new `wakeup` messages while awaiting `
>>some_process`?
>>
>> Yes. The worker server runs as many application instances as there are
>> messages coming in, even though they all have the same scope. You can see
>> the main listening loop here:
>> https://github.com/django/channels/blob/master/channels/worker.py#L32
>>
>>- When do I need to raise `StopConsumer`? I can do it after each
>>processing of `wakeup` message (like in the code above) is that
>>correct? What will happen with all the `pending` messages in such
>>case?
>>
>> You need to raise it when the specific application instance you have is
>> completed - because there's a different instance for each message, that
>> means "raise when you've finished processing the message". Nothing happens
>> to other messages as they're being handled by different instances.
>>
>> Andrew
>>
>> On Wed, May 2, 2018 at 7:50 AM Alexander Prokhorov 
>> wrote:
>>
>>> Dear Andrew,
>>>
>>> I would like to ask couple of questions about the lifecycle of consumers
>>> running in Channels workers and serving custom channels.
>>>
>>> Consider a consumer:
>>>
>>> # myconsumer.py
>>> class MyConsumer(channels.consumer.AsyncConsumer):
>>> async def wakeup(self, message):
>>>  await some_process()
>>>  raise channels.exceptions.StopConsumer()
>>>
>>> which I "register" to process messages in the channel `my_channel`:
>>>
>>> # routing.py
>>> application = channels.routing.ProtocolTypeRouter({
>>> 'channel': channels.routing.ChannelNameRouter({
>>> 'my_channel': MyConsumer
>>> })
>>> })
>>>
>>> and eventually I run designated Channels worker to process `my_channel`
>>> messages.
>>>
>>> ./manage.py runworker my_channel
>>>
>>> So the questions are:
>>>
>>>- Will `MyConsumer` receive new `wakeup` messages while awaiting `
>>>some_process`?
>>>- When do I need to raise `StopConsumer`? I can do it after each
>>>processing of `wakeup` message (like in the code above) is that
>>>correct? What will happen with all the `pending` messages in such
>>>case?
>>>
>>> Actually, I do not raise "StopConsumer" in the implementation I
>>> currently have, but this leads to an issue with tests. In tests I need to
>>> somehow wait until all workers finish processing their messages. I tried
>>> calling `channels.testing.ApplicationCommunicator.wait()` but as I see it
>>> from the code it waits the application/consumer to finish, i.e. to raise
>>> `StopConsumer` exception. Probably you can share some recommendations.
>>> Thanks in advance.
>>>
>>> Best regards,
>>> Alexander.
>>>
>>> --
>>> 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
>>> 

Re: Channels 2: Consumer lifecycle when run in a worker process

2018-05-02 Thread Alexander Prokhorov
Andrew, thank you for quick response!

Unfortunately I see something different. If I raise `StopConsumer` after 
processing a single message, the next one is lost. From the code 
https://github.com/django/asgiref/blob/master/asgiref/server.py#L75 I see 
that `get_or_create_application_instance` returns existing application 
instance, so when message arrives it is put into the queue of the existing 
application. If I raise `StopConsumer` this application got killed and the 
message is lost.

Another observation: when message handler awaits something (like in my 
snippet `await some_process()`) this application instance does not process 
new messages. When one message handler function exits - the next one starts.

Actually, I was offloading message processing to the threadpool (using `
sync_to_async`) and trying to limit the number of messages being processed 
at the same time. I hoped that if I await for some coroutine the worker 
will stop accepting messages, so other workers can process them until this 
one gets free again. Can you give me a clue how to achieve this bevaviour?


среда, 2 мая 2018 г., 18:39:01 UTC+3 пользователь Andrew Godwin написал:
>
>
>- Will `MyConsumer` receive new `wakeup` messages while awaiting `
>some_process`?
>
> Yes. The worker server runs as many application instances as there are 
> messages coming in, even though they all have the same scope. You can see 
> the main listening loop here: 
> https://github.com/django/channels/blob/master/channels/worker.py#L32
>
>- When do I need to raise `StopConsumer`? I can do it after each 
>processing of `wakeup` message (like in the code above) is that 
>correct? What will happen with all the `pending` messages in such case?
>
> You need to raise it when the specific application instance you have is 
> completed - because there's a different instance for each message, that 
> means "raise when you've finished processing the message". Nothing happens 
> to other messages as they're being handled by different instances.
>
> Andrew
>
> On Wed, May 2, 2018 at 7:50 AM Alexander Prokhorov  > wrote:
>
>> Dear Andrew,
>>
>> I would like to ask couple of questions about the lifecycle of consumers 
>> running in Channels workers and serving custom channels.
>>
>> Consider a consumer:
>>
>> # myconsumer.py
>> class MyConsumer(channels.consumer.AsyncConsumer):
>> async def wakeup(self, message):
>>  await some_process()
>>  raise channels.exceptions.StopConsumer()
>>
>> which I "register" to process messages in the channel `my_channel`:
>>
>> # routing.py
>> application = channels.routing.ProtocolTypeRouter({
>> 'channel': channels.routing.ChannelNameRouter({
>> 'my_channel': MyConsumer
>> })
>> })
>>
>> and eventually I run designated Channels worker to process `my_channel` 
>> messages.
>>
>> ./manage.py runworker my_channel
>>
>> So the questions are:
>>
>>- Will `MyConsumer` receive new `wakeup` messages while awaiting `
>>some_process`?
>>- When do I need to raise `StopConsumer`? I can do it after each 
>>processing of `wakeup` message (like in the code above) is that 
>>correct? What will happen with all the `pending` messages in such 
>>case?
>>
>> Actually, I do not raise "StopConsumer" in the implementation I 
>> currently have, but this leads to an issue with tests. In tests I need to 
>> somehow wait until all workers finish processing their messages. I tried 
>> calling `channels.testing.ApplicationCommunicator.wait()` but as I see it 
>> from the code it waits the application/consumer to finish, i.e. to raise 
>> `StopConsumer` exception. Probably you can share some recommendations. 
>> Thanks in advance.
>>
>> Best regards,
>> Alexander.
>>
>> -- 
>> 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/00e6398b-a71f-4509-a95b-3ced88b26ee0%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+unsubscr...@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 

Re: need help

2018-05-02 Thread Aditya Singh
You're most welcome

On Wed, May 2, 2018, 11:04 PM Umar Kambala  wrote:

> Thanks
> On May 2, 2018 5:33 PM, "Aditya Singh" 
> wrote:
>
>> Try to upgrade your internet connection or set up a hotspot from a mobile
>> device having a good signal strength and internet speed and try again.
>> Should work for sure
>>
>> On Wed, May 2, 2018, 11:01 PM Umar Kambala  wrote:
>>
>>> So wat do I do then?
>>> On May 2, 2018 5:28 PM, "Aditya Singh" 
>>> wrote:
>>>
 Sure it is mate

 On Wed, May 2, 2018, 10:51 PM Umar Kambala 
 wrote:

> I believe its low connection
> On May 2, 2018 5:16 PM, "Jani Tiainen"  wrote:
>
>> Looks like your machine doesn't have connection to (some parts) of
>> internet for some reason, or you do have very slow connection.
>>
>> On Wed, May 2, 2018 at 7:46 PM,  wrote:
>>
>>> please  this is the massage i keep on getting when trying to install
>>> django.. what do i do?
>>>
>>>
>>> C:\Users\Admin>pip install Django==2.0.5
>>> Collecting Django==2.0.5
>>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>>> status=None)) after connection broken by
>>> 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443):
>>> Read timed out. (read timeout=15)",)': /simple/django/
>>>   Downloading
>>> https://files.pythonhosted.org/packages/23/91/2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3/Django-2.0.5-py3-none-any.whl
>>> (7.1MB)
>>> 0% || 10kB 1.2kB/s eta
>>> 1:36:24Exception:
>>> Traceback (most recent call last):
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
>>> line 302, in _error_catcher
>>> yield
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
>>> line 384, in read
>>> data = self._fp.read(amt)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py",
>>> line 60, in read
>>> data = self.__fp.read(amt)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>> line 449, in read
>>> n = self.readinto(b)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>> line 493, in readinto
>>> n = self.fp.readinto(b)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>>> line 586, in readinto
>>> return self._sock.recv_into(b)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
>>> line
>>> 1009, in recv_into
>>> return self.read(nbytes, buffer)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
>>> line
>>> 871, in read
>>> return self._sslobj.read(len, buffer)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
>>> line
>>> 631, in read
>>> v = self._sslobj.read(len, buffer)
>>> socket.timeout: The read operation timed out
>>>
>>> During handling of the above exception, another exception occurred:
>>>
>>> Traceback (most recent call last):
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py",
>>> line 215, in main
>>> status = self.run(options, args)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py",
>>> line 324, in run
>>> requirement_set.prepare_files(finder)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
>>> line 380, in prepare_files
>>> ignore_dependencies=self.ignore_dependencies))
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
>>> line 620, in _prepare_file
>>> session=self.session, hashes=hashes)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 821, in unpack_url
>>> hashes=hashes
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 659, in unpack_http_url
>>> hashes)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 882, in _download_http_url
>>> _download_url(resp, link, content_file, hashes)
>>>   

Re: need help

2018-05-02 Thread Umar Kambala
Thanks
On May 2, 2018 5:33 PM, "Aditya Singh"  wrote:

> Try to upgrade your internet connection or set up a hotspot from a mobile
> device having a good signal strength and internet speed and try again.
> Should work for sure
>
> On Wed, May 2, 2018, 11:01 PM Umar Kambala  wrote:
>
>> So wat do I do then?
>> On May 2, 2018 5:28 PM, "Aditya Singh" 
>> wrote:
>>
>>> Sure it is mate
>>>
>>> On Wed, May 2, 2018, 10:51 PM Umar Kambala 
>>> wrote:
>>>
 I believe its low connection
 On May 2, 2018 5:16 PM, "Jani Tiainen"  wrote:

> Looks like your machine doesn't have connection to (some parts) of
> internet for some reason, or you do have very slow connection.
>
> On Wed, May 2, 2018 at 7:46 PM,  wrote:
>
>> please  this is the massage i keep on getting when trying to install
>> django.. what do i do?
>>
>>
>> C:\Users\Admin>pip install Django==2.0.5
>> Collecting Django==2.0.5
>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>> status=None)) after connection broken by 'ReadTimeoutError("
>> HTTPSConnectionPool(host='pypi.org', port=443): Read timed out.
>> (read timeout=15)",)': /simple/django/
>>   Downloading https://files.pythonhosted.org/packages/23/91/
>> 2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3
>> /Django-2.0.5-py3-none-any.whl (7.1MB)
>> 0% || 10kB 1.2kB/s eta
>> 1:36:24Exception:
>> Traceback (most recent call last):
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in
>> _error_catcher
>> yield
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
>> data = self._fp.read(amt)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60,
>> in read
>> data = self.__fp.read(amt)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>> line 449, in read
>> n = self.readinto(b)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>> line 493, in readinto
>> n = self.fp.readinto(b)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>> line 586, in readinto
>> return self._sock.recv_into(b)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 1009, in recv_into
>> return self.read(nbytes, buffer)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 871, in read
>> return self._sslobj.read(len, buffer)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 631, in read
>> v = self._sslobj.read(len, buffer)
>> socket.timeout: The read operation timed out
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\basecommand.py", line 215, in main
>> status = self.run(options, args)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\commands\install.py", line 324, in run
>> requirement_set.prepare_files(finder)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
>> ignore_dependencies=self.ignore_dependencies))
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
>> session=self.session, hashes=hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\download.py", line 821, in unpack_url
>> hashes=hashes
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\download.py", line 659, in unpack_http_url
>> hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\download.py", line 882, in _download_http_url
>> _download_url(resp, link, content_file, hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> lib\site-packages\pip\download.py", line 603, in _download_url
>> hashes.check_against_chunks(downloaded_chunks)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>> 

Re: need help

2018-05-02 Thread Aditya Singh
Try to upgrade your internet connection or set up a hotspot from a mobile
device having a good signal strength and internet speed and try again.
Should work for sure

On Wed, May 2, 2018, 11:01 PM Umar Kambala  wrote:

> So wat do I do then?
> On May 2, 2018 5:28 PM, "Aditya Singh" 
> wrote:
>
>> Sure it is mate
>>
>> On Wed, May 2, 2018, 10:51 PM Umar Kambala  wrote:
>>
>>> I believe its low connection
>>> On May 2, 2018 5:16 PM, "Jani Tiainen"  wrote:
>>>
 Looks like your machine doesn't have connection to (some parts) of
 internet for some reason, or you do have very slow connection.

 On Wed, May 2, 2018 at 7:46 PM,  wrote:

> please  this is the massage i keep on getting when trying to install
> django.. what do i do?
>
>
> C:\Users\Admin>pip install Django==2.0.5
> Collecting Django==2.0.5
>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
> status=None)) after connection broken by
> 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443):
> Read timed out. (read timeout=15)",)': /simple/django/
>   Downloading
> https://files.pythonhosted.org/packages/23/91/2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3/Django-2.0.5-py3-none-any.whl
> (7.1MB)
> 0% || 10kB 1.2kB/s eta
> 1:36:24Exception:
> Traceback (most recent call last):
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
> line 302, in _error_catcher
> yield
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
> line 384, in read
> data = self._fp.read(amt)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py",
> line 60, in read
> data = self.__fp.read(amt)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
> line 449, in read
> n = self.readinto(b)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
> line 493, in readinto
> n = self.fp.readinto(b)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
> line 586, in readinto
> return self._sock.recv_into(b)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
> line
> 1009, in recv_into
> return self.read(nbytes, buffer)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
> line
> 871, in read
> return self._sslobj.read(len, buffer)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", 
> line
> 631, in read
> v = self._sslobj.read(len, buffer)
> socket.timeout: The read operation timed out
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py",
> line 215, in main
> status = self.run(options, args)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py",
> line 324, in run
> requirement_set.prepare_files(finder)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
> line 380, in prepare_files
> ignore_dependencies=self.ignore_dependencies))
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
> line 620, in _prepare_file
> session=self.session, hashes=hashes)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
> line 821, in unpack_url
> hashes=hashes
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
> line 659, in unpack_http_url
> hashes)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
> line 882, in _download_http_url
> _download_url(resp, link, content_file, hashes)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
> line 603, in _download_url
> hashes.check_against_chunks(downloaded_chunks)
>   File
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\hashes.py",
> line 46, in check_against_chunks
> for chunk in chunks:
>   File
> 

Re: need help

2018-05-02 Thread Umar Kambala
So wat do I do then?
On May 2, 2018 5:28 PM, "Aditya Singh"  wrote:

> Sure it is mate
>
> On Wed, May 2, 2018, 10:51 PM Umar Kambala  wrote:
>
>> I believe its low connection
>> On May 2, 2018 5:16 PM, "Jani Tiainen"  wrote:
>>
>>> Looks like your machine doesn't have connection to (some parts) of
>>> internet for some reason, or you do have very slow connection.
>>>
>>> On Wed, May 2, 2018 at 7:46 PM,  wrote:
>>>
 please  this is the massage i keep on getting when trying to install
 django.. what do i do?


 C:\Users\Admin>pip install Django==2.0.5
 Collecting Django==2.0.5
   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
 status=None)) after connection broken by 'ReadTimeoutError("
 HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read
 timeout=15)",)': /simple/django/
   Downloading https://files.pythonhosted.org/packages/23/91/
 2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3
 /Django-2.0.5-py3-none-any.whl (7.1MB)
 0% || 10kB 1.2kB/s eta
 1:36:24Exception:
 Traceback (most recent call last):
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in
 _error_catcher
 yield
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
 data = self._fp.read(amt)
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60,
 in read
 data = self.__fp.read(amt)
   File 
 "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
 line 449, in read
 n = self.readinto(b)
   File 
 "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
 line 493, in readinto
 n = self.fp.readinto(b)
   File 
 "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
 line 586, in readinto
 return self._sock.recv_into(b)
   File 
 "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
 line 1009, in recv_into
 return self.read(nbytes, buffer)
   File 
 "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
 line 871, in read
 return self._sslobj.read(len, buffer)
   File 
 "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
 line 631, in read
 v = self._sslobj.read(len, buffer)
 socket.timeout: The read operation timed out

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\basecommand.py", line 215, in main
 status = self.run(options, args)
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\commands\install.py", line 324, in run
 requirement_set.prepare_files(finder)
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
 ignore_dependencies=self.ignore_dependencies))
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
 session=self.session, hashes=hashes)
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\download.py", line 821, in unpack_url
 hashes=hashes
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\download.py", line 659, in unpack_http_url
 hashes)
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\download.py", line 882, in _download_http_url
 _download_url(resp, link, content_file, hashes)
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\download.py", line 603, in _download_url
 hashes.check_against_chunks(downloaded_chunks)
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\utils\hashes.py", line 46, in
 check_against_chunks
 for chunk in chunks:
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\download.py", line 571, in written_chunks
 for chunk in chunks:
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\utils\ui.py", line 139, in iter
 for x in it:
   File "c:\users\admin\appdata\local\programs\python\python36-32\
 lib\site-packages\pip\download.py", 

Re: need help

2018-05-02 Thread Aditya Singh
Sure it is mate

On Wed, May 2, 2018, 10:51 PM Umar Kambala  wrote:

> I believe its low connection
> On May 2, 2018 5:16 PM, "Jani Tiainen"  wrote:
>
>> Looks like your machine doesn't have connection to (some parts) of
>> internet for some reason, or you do have very slow connection.
>>
>> On Wed, May 2, 2018 at 7:46 PM,  wrote:
>>
>>> please  this is the massage i keep on getting when trying to install
>>> django.. what do i do?
>>>
>>>
>>> C:\Users\Admin>pip install Django==2.0.5
>>> Collecting Django==2.0.5
>>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>>> status=None)) after connection broken by
>>> 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
>>> timed out. (read timeout=15)",)': /simple/django/
>>>   Downloading
>>> https://files.pythonhosted.org/packages/23/91/2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3/Django-2.0.5-py3-none-any.whl
>>> (7.1MB)
>>> 0% || 10kB 1.2kB/s eta
>>> 1:36:24Exception:
>>> Traceback (most recent call last):
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
>>> line 302, in _error_catcher
>>> yield
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
>>> line 384, in read
>>> data = self._fp.read(amt)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py",
>>> line 60, in read
>>> data = self.__fp.read(amt)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>> line 449, in read
>>> n = self.readinto(b)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>> line 493, in readinto
>>> n = self.fp.readinto(b)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>>> line 586, in readinto
>>> return self._sock.recv_into(b)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line
>>> 1009, in recv_into
>>> return self.read(nbytes, buffer)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line
>>> 871, in read
>>> return self._sslobj.read(len, buffer)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line
>>> 631, in read
>>> v = self._sslobj.read(len, buffer)
>>> socket.timeout: The read operation timed out
>>>
>>> During handling of the above exception, another exception occurred:
>>>
>>> Traceback (most recent call last):
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py",
>>> line 215, in main
>>> status = self.run(options, args)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py",
>>> line 324, in run
>>> requirement_set.prepare_files(finder)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
>>> line 380, in prepare_files
>>> ignore_dependencies=self.ignore_dependencies))
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
>>> line 620, in _prepare_file
>>> session=self.session, hashes=hashes)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 821, in unpack_url
>>> hashes=hashes
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 659, in unpack_http_url
>>> hashes)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 882, in _download_http_url
>>> _download_url(resp, link, content_file, hashes)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 603, in _download_url
>>> hashes.check_against_chunks(downloaded_chunks)
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\hashes.py",
>>> line 46, in check_against_chunks
>>> for chunk in chunks:
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 571, in written_chunks
>>> for chunk in chunks:
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\ui.py",
>>> line 139, in iter
>>> for x in it:
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>>> line 560, in resp_read
>>> decode_content=False):
>>>   File
>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
>>> 

Re: need help

2018-05-02 Thread Umar Kambala
I believe its low connection
On May 2, 2018 5:16 PM, "Jani Tiainen"  wrote:

> Looks like your machine doesn't have connection to (some parts) of
> internet for some reason, or you do have very slow connection.
>
> On Wed, May 2, 2018 at 7:46 PM,  wrote:
>
>> please  this is the massage i keep on getting when trying to install
>> django.. what do i do?
>>
>>
>> C:\Users\Admin>pip install Django==2.0.5
>> Collecting Django==2.0.5
>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>> status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnec
>> tionPool(host='pypi.org', port=443): Read timed out. (read
>> timeout=15)",)': /simple/django/
>>   Downloading https://files.pythonhosted.org
>> /packages/23/91/2245462e57798e9251de87c88b2b8f996d10ddcb6820
>> 6a8a020561ef7bd3/Django-2.0.5-py3-none-any.whl (7.1MB)
>> 0% || 10kB 1.2kB/s eta
>> 1:36:24Exception:
>> Traceback (most recent call last):
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\urllib3\response.py", line 302, in
>> _error_catcher
>> yield
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
>> data = self._fp.read(amt)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in
>> read
>> data = self.__fp.read(amt)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>> line 449, in read
>> n = self.readinto(b)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>> line 493, in readinto
>> n = self.fp.readinto(b)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>> line 586, in readinto
>> return self._sock.recv_into(b)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 1009, in recv_into
>> return self.read(nbytes, buffer)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 871, in read
>> return self._sslobj.read(len, buffer)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 631, in read
>> v = self._sslobj.read(len, buffer)
>> socket.timeout: The read operation timed out
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\basecommand.py", line 215, in main
>> status = self.run(options, args)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\commands\install.py", line 324, in run
>> requirement_set.prepare_files(finder)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\req\req_set.py", line 380, in prepare_files
>> ignore_dependencies=self.ignore_dependencies))
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\req\req_set.py", line 620, in _prepare_file
>> session=self.session, hashes=hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 821, in unpack_url
>> hashes=hashes
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 659, in unpack_http_url
>> hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 882, in _download_http_url
>> _download_url(resp, link, content_file, hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 603, in _download_url
>> hashes.check_against_chunks(downloaded_chunks)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
>> for chunk in chunks:
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 571, in written_chunks
>> for chunk in chunks:
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\utils\ui.py", line 139, in iter
>> for x in it:
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 560, in resp_read
>> decode_content=False):
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\urllib3\response.py", line 436, in stream
>> data = self.read(amt=amt, decode_content=decode_content)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\urllib3\response.py", line 401, in read
>> raise 

Re: django admin and logout

2018-05-02 Thread Umar Kambala
Don't get u.. The problem is that I can't install it
On May 2, 2018 5:15 PM, "Jani Tiainen"  wrote:

> Hi,
>
> It really depends on your definition of "no activity".
>
> By default login is tied to session which expiracy you can set (default 2
> weeks).
>
> Session expiry is by default only updated when session is changed, so for
> example pure reads that don't touch session do not count as activity. This
> can be changed so that every request touches session.
>
> HTH.
>
> On Wed, May 2, 2018 at 7:38 PM, Hervé Edorh  wrote:
>
>> It is possible to make django admin application to logout after 5 minutes
>> of no activity? 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 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/ms
>> gid/django-users/1b1bc621-e252-49a7-810d-3b894ad4a19f%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jani Tiainen
>
> - Well planned is half done, and a half done has been sufficient before...
>
> --
> 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 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/CAHn91of-U9-9LWHCUhPx4W%3DaqOKfx%3DSUT-
> q_YoUT9QU8Rt_vjw%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+unsubscr...@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/CAPkbFbayY7oQSPzv497DuzWopE_cxoH5Yt5SYY%2BXUJO66Aa6MQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: need help

2018-05-02 Thread Aditya Singh
This has surely to do with your internet connection mate.

On Wed, May 2, 2018, 10:46 PM Jani Tiainen  wrote:

> Looks like your machine doesn't have connection to (some parts) of
> internet for some reason, or you do have very slow connection.
>
> On Wed, May 2, 2018 at 7:46 PM,  wrote:
>
>> please  this is the massage i keep on getting when trying to install
>> django.. what do i do?
>>
>>
>> C:\Users\Admin>pip install Django==2.0.5
>> Collecting Django==2.0.5
>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>> status=None)) after connection broken by
>> 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
>> timed out. (read timeout=15)",)': /simple/django/
>>   Downloading
>> https://files.pythonhosted.org/packages/23/91/2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3/Django-2.0.5-py3-none-any.whl
>> (7.1MB)
>> 0% || 10kB 1.2kB/s eta
>> 1:36:24Exception:
>> Traceback (most recent call last):
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
>> line 302, in _error_catcher
>> yield
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
>> line 384, in read
>> data = self._fp.read(amt)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py",
>> line 60, in read
>> data = self.__fp.read(amt)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>> line 449, in read
>> n = self.readinto(b)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>> line 493, in readinto
>> n = self.fp.readinto(b)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>> line 586, in readinto
>> return self._sock.recv_into(b)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line
>> 1009, in recv_into
>> return self.read(nbytes, buffer)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line
>> 871, in read
>> return self._sslobj.read(len, buffer)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line
>> 631, in read
>> v = self._sslobj.read(len, buffer)
>> socket.timeout: The read operation timed out
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py",
>> line 215, in main
>> status = self.run(options, args)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py",
>> line 324, in run
>> requirement_set.prepare_files(finder)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
>> line 380, in prepare_files
>> ignore_dependencies=self.ignore_dependencies))
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
>> line 620, in _prepare_file
>> session=self.session, hashes=hashes)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>> line 821, in unpack_url
>> hashes=hashes
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>> line 659, in unpack_http_url
>> hashes)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>> line 882, in _download_http_url
>> _download_url(resp, link, content_file, hashes)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>> line 603, in _download_url
>> hashes.check_against_chunks(downloaded_chunks)
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\hashes.py",
>> line 46, in check_against_chunks
>> for chunk in chunks:
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>> line 571, in written_chunks
>> for chunk in chunks:
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\ui.py",
>> line 139, in iter
>> for x in it:
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
>> line 560, in resp_read
>> decode_content=False):
>>   File
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
>> line 436, in stream
>> data = self.read(amt=amt, decode_content=decode_content)
>>   File
>> 

Django with mongo

2018-05-02 Thread Aditya Singh
Kindly help me with the mist efficient and easy method of integrating mongo
with django.I have tried djongo but need to expand my approach.
Kind Regards,
Aditya

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


Re: need help

2018-05-02 Thread Jani Tiainen
Looks like your machine doesn't have connection to (some parts) of internet
for some reason, or you do have very slow connection.

On Wed, May 2, 2018 at 7:46 PM,  wrote:

> please  this is the massage i keep on getting when trying to install
> django.. what do i do?
>
>
> C:\Users\Admin>pip install Django==2.0.5
> Collecting Django==2.0.5
>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
> status=None)) after connection broken by 'ReadTimeoutError("
> HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read
> timeout=15)",)': /simple/django/
>   Downloading https://files.pythonhosted.org/packages/23/91/
> 2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3
> /Django-2.0.5-py3-none-any.whl (7.1MB)
> 0% || 10kB 1.2kB/s eta
> 1:36:24Exception:
> Traceback (most recent call last):
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in
> _error_catcher
> yield
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
> data = self._fp.read(amt)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in
> read
> data = self.__fp.read(amt)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
> line 449, in read
> n = self.readinto(b)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
> line 493, in readinto
> n = self.fp.readinto(b)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
> line 586, in readinto
> return self._sock.recv_into(b)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 1009, in recv_into
> return self.read(nbytes, buffer)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 871, in read
> return self._sslobj.read(len, buffer)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 631, in read
> v = self._sslobj.read(len, buffer)
> socket.timeout: The read operation timed out
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\basecommand.py", line 215, in main
> status = self.run(options, args)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\commands\install.py", line 324, in run
> requirement_set.prepare_files(finder)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
> ignore_dependencies=self.ignore_dependencies))
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
> session=self.session, hashes=hashes)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\download.py", line 821, in unpack_url
> hashes=hashes
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\download.py", line 659, in unpack_http_url
> hashes)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\download.py", line 882, in _download_http_url
> _download_url(resp, link, content_file, hashes)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\download.py", line 603, in _download_url
> hashes.check_against_chunks(downloaded_chunks)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
> for chunk in chunks:
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\download.py", line 571, in written_chunks
> for chunk in chunks:
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\utils\ui.py", line 139, in iter
> for x in it:
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\download.py", line 560, in resp_read
> decode_content=False):
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\_vendor\urllib3\response.py", line 436, in stream
> data = self.read(amt=amt, decode_content=decode_content)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\pip\_vendor\urllib3\response.py", line 401, in read
> raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\contextlib.py",
> line 99, in __exit__
> self.gen.throw(type, 

Re: django admin and logout

2018-05-02 Thread Jani Tiainen
Hi,

It really depends on your definition of "no activity".

By default login is tied to session which expiracy you can set (default 2
weeks).

Session expiry is by default only updated when session is changed, so for
example pure reads that don't touch session do not count as activity. This
can be changed so that every request touches session.

HTH.

On Wed, May 2, 2018 at 7:38 PM, Hervé Edorh  wrote:

> It is possible to make django admin application to logout after 5 minutes
> of no activity? 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 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/1b1bc621-e252-49a7-810d-3b894ad4a19f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
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 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/CAHn91of-U9-9LWHCUhPx4W%3DaqOKfx%3DSUT-q_YoUT9QU8Rt_vjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


need help

2018-05-02 Thread umarkambala
please  this is the massage i keep on getting when trying to install 
django.. what do i do?


C:\Users\Admin>pip install Django==2.0.5
Collecting Django==2.0.5
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read 
timed out. (read timeout=15)",)': /simple/django/
  Downloading 
https://files.pythonhosted.org/packages/23/91/2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3/Django-2.0.5-py3-none-any.whl
 
(7.1MB)
0% || 10kB 1.2kB/s eta 1:36:24Exception:
Traceback (most recent call last):
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
 
line 302, in _error_catcher
yield
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
 
line 384, in read
data = self._fp.read(amt)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py",
 
line 60, in read
data = self.__fp.read(amt)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py", 
line 449, in read
n = self.readinto(b)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py", 
line 493, in readinto
n = self.fp.readinto(b)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py", 
line 586, in readinto
return self._sock.recv_into(b)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line 
1009, in recv_into
return self.read(nbytes, buffer)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line 
871, in read
return self._sslobj.read(len, buffer)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line 
631, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py",
 
line 215, in main
status = self.run(options, args)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py",
 
line 324, in run
requirement_set.prepare_files(finder)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
 
line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py",
 
line 620, in _prepare_file
session=self.session, hashes=hashes)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
 
line 821, in unpack_url
hashes=hashes
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
 
line 659, in unpack_http_url
hashes)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
 
line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
 
line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\hashes.py",
 
line 46, in check_against_chunks
for chunk in chunks:
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
 
line 571, in written_chunks
for chunk in chunks:
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\ui.py",
 
line 139, in iter
for x in it:
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py",
 
line 560, in resp_read
decode_content=False):
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
 
line 436, in stream
data = self.read(amt=amt, decode_content=decode_content)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
 
line 401, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\contextlib.py", 
line 99, in __exit__
self.gen.throw(type, value, traceback)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py",
 
line 307, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: 
HTTPSConnectionPool(host='files.pythonhosted.org', 

django admin and logout

2018-05-02 Thread Hervé Edorh
It is possible to make django admin application to logout after 5 minutes 
of no activity? 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 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/1b1bc621-e252-49a7-810d-3b894ad4a19f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add extra fields to a ModelAdmin form

2018-05-02 Thread 'James Foley' via Django users
Hey Mark,

I've not actually found a solution yet, I've just sort of put it at the 
bottom of my pile of problems...

Here is the post that I used to get where I 
am https://stackoverflow.com/a/35797311/3173119

It just doesn't feel very Django like, and I feel that there must be an 
easier way to simply add a non-model field to a model admin form. My fields 
are also added at run time which is whats causing me issues.

My actual goal is to convert a flat JSON string stored in a JSON field, 
into fields for each key. Then once saved it coverts them all back into a 
JSON string and stored them back on the one JSON field.

James.

On Wednesday, 2 May 2018 16:02:51 UTC+1, mark wrote:
>
> James,
>
> Did you ever get a response to this issue? I am having a devil of a time 
> adding some extra non-model fields to an admin inline form. My added 
> complication is that the fields are only defined at run time, so I have to 
> have a loop that creates them based on a different model in my app. 
>
> Would you be willing to share your code with me? In particular, I am not 
> sure where and how you are using self.form.declared_fields. 
>
> I am running django 1.11.
>
> Thanks!
>
> Mark
>
> On Mon, Apr 30, 2018 at 1:41 AM, 'James Foley' via Django users <
> django...@googlegroups.com > wrote:
>
>> So, I have a ModelAdmin that I need to add extra fields to. These fields 
>> do not exist on the model, but will be dynamically added to a custom 
>> ModelForm through the __init__ method, and logic inside clean will handle 
>> the returned data on save.
>>
>> I can't seem to find any solid information related to adding custom 
>> non-model fields to a ModelAdmin form. The closest I have come is by 
>> overriding get_fields on the ModelAdmin class and updating 
>> self.form.declared_fields with the new fields I'd like to add. 
>>
>> This just doesn't feel very clean to me and I was curious if there was a 
>> better way to add new fields to a ModelAdmin dynamically?
>>
>> -- 
>> 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/a590e54f-1f36-497b-b508-cba339c5f2fc%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+unsubscr...@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/9889680c-d447-4217-bc37-fc394772b512%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django performances issue

2018-05-02 Thread prakash sharma
Hi @Julio
I am also planning to go for the job/message queue, but for this we have to 
change the default follow so this not feasible at this moment for me.

For now what can be the best approach.


Like server scaling, worker count


> On Wednesday, May 2, 2018 at 6:54:23 PM UTC+5:30, prakash sharma wrote:
>
> I have developed the API using DRF but facing the major performances 
> issue. 
>
> Here is what the scenario is: I am using DRF. Our API call is growing 
> towards 5k per day. Each API call is taking 3 to 10 minutes of time while 
> responding ( as It creates upto 300 pdf label unique format) 
>
> I am using uwsgi( many worker) now with the Apache. 
>
> We have implemented the caching but not able improve very much 
> performances level. 
>
> Primary query: 
>
> Shall we use gunicorn instead of uwsgi? What about message/ job queue? Is 
> this work. 
>
> My current server RAM is only 32 GB. Shall I have to increase this if yes 
> how much ( we personal don't want to go for vertical scaling) 
>
> Please suggest the approach, first time I am handling such level of 
> performance issue. 
>
> I am very optimistic about message/ job queue and gunicorn.

-- 
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 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/20d63701-2cd3-47fa-b9ca-1d4fad257a9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Channels 2: Consumer lifecycle when run in a worker process

2018-05-02 Thread Andrew Godwin
   - Will `MyConsumer` receive new `wakeup` messages while awaiting `
   some_process`?

Yes. The worker server runs as many application instances as there are
messages coming in, even though they all have the same scope. You can see
the main listening loop here:
https://github.com/django/channels/blob/master/channels/worker.py#L32

   - When do I need to raise `StopConsumer`? I can do it after each
   processing of `wakeup` message (like in the code above) is that correct?
   What will happen with all the `pending` messages in such case?

You need to raise it when the specific application instance you have is
completed - because there's a different instance for each message, that
means "raise when you've finished processing the message". Nothing happens
to other messages as they're being handled by different instances.

Andrew

On Wed, May 2, 2018 at 7:50 AM Alexander Prokhorov 
wrote:

> Dear Andrew,
>
> I would like to ask couple of questions about the lifecycle of consumers
> running in Channels workers and serving custom channels.
>
> Consider a consumer:
>
> # myconsumer.py
> class MyConsumer(channels.consumer.AsyncConsumer):
> async def wakeup(self, message):
>  await some_process()
>  raise channels.exceptions.StopConsumer()
>
> which I "register" to process messages in the channel `my_channel`:
>
> # routing.py
> application = channels.routing.ProtocolTypeRouter({
> 'channel': channels.routing.ChannelNameRouter({
> 'my_channel': MyConsumer
> })
> })
>
> and eventually I run designated Channels worker to process `my_channel`
> messages.
>
> ./manage.py runworker my_channel
>
> So the questions are:
>
>- Will `MyConsumer` receive new `wakeup` messages while awaiting `
>some_process`?
>- When do I need to raise `StopConsumer`? I can do it after each
>processing of `wakeup` message (like in the code above) is that
>correct? What will happen with all the `pending` messages in such case?
>
> Actually, I do not raise "StopConsumer" in the implementation I currently
> have, but this leads to an issue with tests. In tests I need to somehow
> wait until all workers finish processing their messages. I tried calling
> `channels.testing.ApplicationCommunicator.wait()` but as I see it from the
> code it waits the application/consumer to finish, i.e. to raise
> `StopConsumer` exception. Probably you can share some recommendations.
> Thanks in advance.
>
> Best regards,
> Alexander.
>
> --
> 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 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/00e6398b-a71f-4509-a95b-3ced88b26ee0%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+unsubscr...@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/CAFwN1urq6%2B7GJO-8rA-0V%3DmzmCe5_1OvF-ix8H7phOFB5H8BCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Integrating cryptoassets.core library in django

2018-05-02 Thread Mario R. Osorio
You need to give more details, such as:


   - Did you PIP the application?
   - Did you remember to add it to INSTALLED_APPS?
   

On Wednesday, May 2, 2018 at 7:10:31 AM UTC-4, Hitesh Goyal wrote:
>
> Hi, 
> I am trying to configure the cryptoassets.core library for bitcoin 
> applications using the following url : -
> https://pypi.org/project/cryptoassets.django/
>  
> When i run the command :- 
>
> "python manage.py cryptoassets_helper_service" I am getting the following 
> error :- 
>
> ImportError: No module named 
> 'cryptoassets.core.backend.sochainwalletnotify'
>
> I want to ask where and how to configure the cryptoassets_helper_service. 
> Please suggest how can i integrate the library.
>

-- 
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 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/c7d30347-6a2f-4517-920a-6cadb4372cc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add extra fields to a ModelAdmin form

2018-05-02 Thread Mark Phillips
James,

Did you ever get a response to this issue? I am having a devil of a time
adding some extra non-model fields to an admin inline form. My added
complication is that the fields are only defined at run time, so I have to
have a loop that creates them based on a different model in my app.

Would you be willing to share your code with me? In particular, I am not
sure where and how you are using self.form.declared_fields.

I am running django 1.11.

Thanks!

Mark

On Mon, Apr 30, 2018 at 1:41 AM, 'James Foley' via Django users <
django-users@googlegroups.com> wrote:

> So, I have a ModelAdmin that I need to add extra fields to. These fields
> do not exist on the model, but will be dynamically added to a custom
> ModelForm through the __init__ method, and logic inside clean will handle
> the returned data on save.
>
> I can't seem to find any solid information related to adding custom
> non-model fields to a ModelAdmin form. The closest I have come is by
> overriding get_fields on the ModelAdmin class and updating
> self.form.declared_fields with the new fields I'd like to add.
>
> This just doesn't feel very clean to me and I was curious if there was a
> better way to add new fields to a ModelAdmin dynamically?
>
> --
> 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 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/a590e54f-1f36-497b-b508-cba339c5f2fc%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+unsubscr...@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/CAEqej2NFGCaTbL2%3Dp8mBGbQfYGqjM4RbRYE5WOxK90zZL-ArsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Channels 2: Consumer lifecycle when run in a worker process

2018-05-02 Thread Alexander Prokhorov
Dear Andrew,

I would like to ask couple of questions about the lifecycle of consumers 
running in Channels workers and serving custom channels.

Consider a consumer:

# myconsumer.py
class MyConsumer(channels.consumer.AsyncConsumer):
async def wakeup(self, message):
 await some_process()
 raise channels.exceptions.StopConsumer()

which I "register" to process messages in the channel `my_channel`:

# routing.py
application = channels.routing.ProtocolTypeRouter({
'channel': channels.routing.ChannelNameRouter({
'my_channel': MyConsumer
})
})

and eventually I run designated Channels worker to process `my_channel` 
messages.

./manage.py runworker my_channel

So the questions are:

   - Will `MyConsumer` receive new `wakeup` messages while awaiting `
   some_process`?
   - When do I need to raise `StopConsumer`? I can do it after each 
   processing of `wakeup` message (like in the code above) is that correct? 
   What will happen with all the `pending` messages in such case?

Actually, I do not raise "StopConsumer" in the implementation I currently 
have, but this leads to an issue with tests. In tests I need to somehow 
wait until all workers finish processing their messages. I tried calling 
`channels.testing.ApplicationCommunicator.wait()` but as I see it from the 
code it waits the application/consumer to finish, i.e. to raise 
`StopConsumer` exception. Probably you can share some recommendations. 
Thanks in advance.

Best regards,
Alexander.

-- 
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 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/00e6398b-a71f-4509-a95b-3ced88b26ee0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django performances issue

2018-05-02 Thread Julio Biason
Hi Prakash,

Do you need to answer the PDF directly? I mean, can't you just use the API
to async-ly create the PDFs (using Celery, for example) and just return a
jobId of sorts? The use will, then, make calls to check the jobid status;
when the PDF is done, the job is changed to complete and you let the user
use another URL to download said PDF.

On Wed, May 2, 2018 at 9:59 AM, prakash sharma 
wrote:

> I have developed the API using DRF but facing the major performances issue.
>
> Here is what the scenario is: I am using DRF. Our API call is growing
> towards 5k per day. Each API call is taking 3 to 10 minutes of time while
> responding ( as It creates upto 300 pdf label unique format)
>
> I am using uwsgi( many worker) now with the Apache.
>
> We have implemented the caching but not able improve very much
> performances level.
>
> Primary query:
>
> Shall we use gunicorn instead of uwsgi? What about message/ job queue? Is
> this work.
>
> My current server RAM is only 32 GB. Shall I have to increase this if yes
> how much ( we personal don't want to go for vertical scaling)
>
> Please suggest the approach, first time I am handling such level of
> performance issue.
>
> I am very optimistic about message/ job queue and gunicorn.
>
> --
> 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 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/86e487d8-6dfe-4049-89a6-5e90a9175d48%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Julio Biason*, Sofware Engineer
*AZION*  |  Deliver. Accelerate. Protect.
Office: +55 51 3083 8101   |  Mobile: +55 51
*99907 0554*

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


Re: Django performances issue

2018-05-02 Thread Avraham Serour
How many workers do you have?
What those requests do? Even 3 minutes sounds like too much, do they just
query from the DB and render a template?
How caching didn't help? did you count the cache miss/hit? What are you
caching?

On Wed, May 2, 2018 at 3:59 PM, prakash sharma 
wrote:

> I have developed the API using DRF but facing the major performances issue.
>
> Here is what the scenario is: I am using DRF. Our API call is growing
> towards 5k per day. Each API call is taking 3 to 10 minutes of time while
> responding ( as It creates upto 300 pdf label unique format)
>
> I am using uwsgi( many worker) now with the Apache.
>
> We have implemented the caching but not able improve very much
> performances level.
>
> Primary query:
>
> Shall we use gunicorn instead of uwsgi? What about message/ job queue? Is
> this work.
>
> My current server RAM is only 32 GB. Shall I have to increase this if yes
> how much ( we personal don't want to go for vertical scaling)
>
> Please suggest the approach, first time I am handling such level of
> performance issue.
>
> I am very optimistic about message/ job queue and gunicorn.
>
> --
> 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 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/86e487d8-6dfe-4049-89a6-5e90a9175d48%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+unsubscr...@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/CAFWa6tKk5HwduoRVkz-7tCx48Udqg8QQW73%2BGB14TTtuUPfcxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django performances issue

2018-05-02 Thread prakash sharma
I have developed the API using DRF but facing the major performances issue.

Here is what the scenario is: I am using DRF. Our API call is growing towards 
5k per day. Each API call is taking 3 to 10 minutes of time while responding ( 
as It creates upto 300 pdf label unique format)

I am using uwsgi( many worker) now with the Apache.

We have implemented the caching but not able improve very much performances 
level.

Primary query:

Shall we use gunicorn instead of uwsgi? What about message/ job queue? Is this 
work.

My current server RAM is only 32 GB. Shall I have to increase this if yes how 
much ( we personal don't want to go for vertical scaling)

Please suggest the approach, first time I am handling such level of performance 
issue.

I am very optimistic about message/ job queue and gunicorn.

-- 
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 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/86e487d8-6dfe-4049-89a6-5e90a9175d48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: OperationalError

2018-05-02 Thread Matthew Pava
“random letters & numbers”

That looks like merge conflicts with Git.  You’ll want to fix those up, not 
just by deleting those lines, but by verifying the code does what you want it 
to.
You may want to just delete all of your migrations files and start anew if 
they’re not important to you.


From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Gerald Brown
Sent: Wednesday, May 2, 2018 4:08 AM
To: Anthony Flury; django-users@googlegroups.com
Subject: Re: OperationalError


Thanks for the reply.

I have done the makemigrations/migrate numerous times.  Each time it says there 
is an error in the previous migration file so I have to comment out most of the 
file.  I then just deleted all of the self generated migration files and 
started fresh.

I was also getting some weird characters in my files like "random letters & 
numbers.  I deleted all of those & ran the migrations again.

The weird thing is that now when I click on the link it says "unknown column 
telephone in field list", previously it was first_name that was unknown.

I have this application running on a "similar" computer and it has NO problems 
with this area so maybe there are some other applications running that cause 
the problem even though this one is in a virtualenv.

On Wednesday, 02 May, 2018 03:00 PM, Anthony Flury wrote:
At first glance it looks like you haven't applied a migration to this computer.

at the command line on this computer  - in the man project directory :

If you have not copied the migration scripts from your development machine do 
this first :

   $ python manage.py makemigrations

and then do this :

   $ python manage.py migrate

--
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 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/5499b870-33e8-52db-85e2-df835be17e87%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+unsubscr...@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/21802186cf2749e6b6e191e8fc78ce26%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


Re: DJANGO Migrations from older version : South db

2018-05-02 Thread Ankush Sharma
I tried it and getting this error

INFO 2018-05-02 15:15:22,713 CATMAID was unable to load the h5py library,
which is an optional dependency. HDF5 tiles are therefore disabled. To
enable, install h5py.
WARNING 2018-05-02 15:15:22,982 NeuroML module could not be loaded.
Traceback (most recent call last):
  File "manage.py", line 11, in 
execute_from_command_line(sys.argv)
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/__init__.py",
line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/base.py",
line 283, in run_from_argv
self.execute(*args, **cmd_options)
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/base.py",
line 330, in execute
output = self.handle(*args, **options)
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/core/management/commands/makemigrations.py",
line 96, in handle
loader = MigrationLoader(None, ignore_no_migrations=True)
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/db/migrations/loader.py",
line 52, in __init__
self.build_graph()
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/db/migrations/loader.py",
line 203, in build_graph
self.load_disk()
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/site-packages/django/db/migrations/loader.py",
line 114, in load_disk
migration_module = import_module("%s.%s" % (module_name,
migration_name))
  File
"/home/ankush/.virtualenvs/catmaid/lib/python3.5/importlib/__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in _find_and_load_unlocked
  File "", line 673, in _load_unlocked
  File "", line 665, in exec_module
  File "", line 222, in
_call_with_frames_removed
  File
"/home/ankush/catmaid/django/applications/catmaid/migrations/0004_auto__add_tool_display_to_user_profiles.py",
line 3, in 
from south.db import db
ImportError: No module named 'south'

Best regards
​Ankush ​


On Wed, May 2, 2018 at 11:48 AM Gerald Brown  wrote:

> If you have the original models.py files just run "python manage.py
> makemigrations" and then "python manage.py migrate".
>
> On Wednesday, 02 May, 2018 05:11 PM, Ank wrote:
>
> Dear All,
>
> I would like to do some migrations that are compatible with older django
> version using southdb to the newer version. How can these files be
> updated.iḿ attaching one of the file that is needed to be migrated.
>
> Any help will be appreciated
>
>  Best
> Ank
> --
> 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 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/043a69c6-4ea9-48b8-9b42-b088e02ddd37%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+unsubscr...@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/b35c7fd6-6af9-fe90-fdad-f2220f968363%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+unsubscr...@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/CAALWEk14yLR8LNexZE5u9KtBerYfZGnAYYJgYRmeQfBN1Aryag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: url () to path()

2018-05-02 Thread Kayode Oladipo
Thanks a Lot! That was very helpful
On May 2, 2018 08:36, "Daniel Hepper"  wrote:
>
> Hi!
>
> First of all, you still can use regular expressions to define URLs by
using django.urls.re_path. You could even the old django.conf.urls.url,
which is still available, so you don't have to change any existing code.
>
> What you are asking for is the corresponding path converter to a regular
expression.
>
> Django comes with five predefined path converters, which just use a
regular expression under the hood:
>
> int[0-9]+
> str[^/]+
> path   .+
> slug   [-a-zA-Z0-9_]+
> uuid   [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
>
> https://docs.djangoproject.com/en/2.0/topics/http/urls/#path-converters
>
https://github.com/django/django/blob/stable/2.0.x/django/urls/converters.py
>
> Note that those also do type conversion when appropriate, the int path
converter passes an int to your view, the uuid converter a uuid.
>
> If those don't fit your needs, you can also build your own:
>
https://docs.djangoproject.com/en/2.0/topics/http/urls/#registering-custom-path-converters
>
> Or, as mentioned at the beginning, just keep using regular expressions:
>
https://docs.djangoproject.com/en/2.0/topics/http/urls/#using-regular-expressions
>
> I've just put together a small article that sums up everything:
https://consideratecode.com/2018/05/02/django-2-0-url-to-path-cheatsheet/
>
> Hope that helps,
> Daniel
>
> On Tue, May 1, 2018 at 7:53 AM, Kayode Oladipo 
wrote:
>>
>> Hi there again! Beginner here using Django 2.0.
>> I'm following a tutorial (coupled with the official doc for
compatibility) and I discovered that <2.0 versions use RegEx with the url
but 2.0> uses the simplified path() function.
>> My question is how do I find the right corresponding path() function to
a url (),
>> A cheat sheet would be wonderful.
>>
>> Cheers!
>>
>> --
>> 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 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/CA%2BARzD8HO26aTwpdYe1km9_%3DykDgBF_y%3DRfkNhrpFvHmSsea6w%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+unsubscr...@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/CAHEnUVVsYBhwCsJQ1fkf1eb-6EwHMVQKbTH_eEtVbJ4-roLKVg%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+unsubscr...@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/CA%2BARzD9Ov9RUhVQcuh%3DvoBmyygAOtnSp-M3tMz%2BU1_fT4zn1kQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django dependecies

2018-05-02 Thread Avraham Serour
The admin app uses it, you can make your app without worrying about it, one
won't affect the other

On Wed, 2 May 2018, 14:09 Mauro Ribeiro, 
wrote:

> Hi,
>
> Why does django include jquery?
>
> django/django/contrib/admin/static/admin/js/vendor/jquery/jquery.js
>
> What use does it make of it?
> I cant have that version of jquery in my app so I want to know that
> impacts of jquery on django.
>
> Thanks
>
> --
> 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 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/542460bf-3dee-480a-b0ea-7716671a3fd7%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+unsubscr...@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/CAFWa6tK4jJxg%2ByKGbX4rJvT47rCV-mVF5ejGmpwf_SndOnCFAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Integrating cryptoassets.core library in django

2018-05-02 Thread Hitesh Goyal
Hi, 
I am trying to configure the cryptoassets.core library for bitcoin 
applications using the following url : -
https://pypi.org/project/cryptoassets.django/
 
When i run the command :- 

"python manage.py cryptoassets_helper_service" I am getting the following 
error :- 

ImportError: No module named 'cryptoassets.core.backend.sochainwalletnotify'

I want to ask where and how to configure the cryptoassets_helper_service. 
Please suggest how can i integrate the library.

-- 
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 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/9db6d747-b798-45e7-a1fa-8680b69efa7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django dependecies

2018-05-02 Thread Mauro Ribeiro
Hi,

Why does django include jquery?

django/django/contrib/admin/static/admin/js/vendor/jquery/jquery.js

What use does it make of it?
I cant have that version of jquery in my app so I want to know that impacts 
of jquery on django.

Thanks

-- 
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 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/542460bf-3dee-480a-b0ea-7716671a3fd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DJANGO Migrations from older version : South db

2018-05-02 Thread Gerald Brown
If you have the original models.py files just run "python manage.py 
makemigrations" and then "python manage.py migrate".



On Wednesday, 02 May, 2018 05:11 PM, Ank wrote:

Dear All,

I would like to do some migrations that are compatible with older 
django version using southdb to the newer version. How can these files 
be updated.iḿ attaching one of the file that is needed to be migrated.


Any help will be appreciated

 Best
Ank
--
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 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/043a69c6-4ea9-48b8-9b42-b088e02ddd37%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+unsubscr...@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/b35c7fd6-6af9-fe90-fdad-f2220f968363%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


DJANGO Migrations from older version : South db

2018-05-02 Thread Ank
Dear All, 

I would like to do some migrations that are compatible with older django 
version using southdb to the newer version. How can these files be 
updated.iḿ attaching one of the file that is needed to be migrated.  

Any help will be appreciated 

 Best 
Ank

-- 
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 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/043a69c6-4ea9-48b8-9b42-b088e02ddd37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

def forwards(self, orm):
# Deleting model 'Component'
db.delete_table('component')

# Adding model 'ConstraintsToSegmentMap'
db.create_table('catmaid_constraintstosegmentmap', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('origin_section', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('target_section', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('segments', self.gf('catmaid.fields.IntegerArrayField')()),
))
db.send_create_signal('catmaid', ['ConstraintsToSegmentMap'])

# Adding model 'SliceContoursHighres'
db.create_table('catmaid_slicecontourshighres', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('coordinates', self.gf('catmaid.fields.IntegerArrayField')()),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('node_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
('length', self.gf('django.db.models.fields.FloatField')(null=True)),
))
db.send_create_signal('catmaid', ['SliceContoursHighres'])

# Adding model 'SliceContours'
db.create_table('catmaid_slicecontours', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('coordinates', self.gf('catmaid.fields.IntegerArrayField')()),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('node_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
('length', self.gf('django.db.models.fields.FloatField')(null=True)),
))
db.send_create_signal('catmaid', ['SliceContours'])

# Adding model 'Slices'
db.create_table('catmaid_slices', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('creation_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('edition_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('assembly', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.ClassInstance'], null=True)),
('sectionindex', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('slice_id', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('node_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
('min_x', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('min_y', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('max_x', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('max_y', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('center_x', 

Re: OperationalError

2018-05-02 Thread Gerald Brown

Thanks for the reply.

I have done the makemigrations/migrate numerous times.  Each time it 
says there is an error in the previous migration file so I have to 
comment out most of the file.  I then just deleted all of the self 
generated migration files and started fresh.


I was also getting some weird characters in my files like "random 
letters & numbers.  I deleted all of those & ran the migrations again.


The weird thing is that now when I click on the link it says "unknown 
column telephone in field list", previously it was first_namethat was 
unknown.


I have this application running on a "similar" computer and it has *NO* 
problems with this area so maybe there are some other applications 
running that cause the problem even though this one is in a virtualenv.



On Wednesday, 02 May, 2018 03:00 PM, Anthony Flury wrote:
At first glance it looks like you haven't applied a migration to this 
computer.


at the command line on this computer  - in the man project directory :

If you have not copied the migration scripts from your development 
machine do this first :


   $ python manage.py makemigrations

and then do this :

   $ python manage.py migrate



--
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 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/5499b870-33e8-52db-85e2-df835be17e87%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: url () to path()

2018-05-02 Thread Daniel Hepper
Hi!

First of all, you still can use regular expressions to define URLs by using
django.urls.re_path. You could even the old django.conf.urls.url, which is
still available, so you don't have to change any existing code.

What you are asking for is the corresponding path converter to a regular
expression.

Django comes with five predefined path converters, which just use a regular
expression under the hood:

int[0-9]+
str[^/]+
path   .+
slug   [-a-zA-Z0-9_]+
uuid   [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

https://docs.djangoproject.com/en/2.0/topics/http/urls/#path-converters
https://github.com/django/django/blob/stable/2.0.x/django/urls/converters.py

Note that those also do type conversion when appropriate, the int path
converter passes an int to your view, the uuid converter a uuid.

If those don't fit your needs, you can also build your own:
https://docs.djangoproject.com/en/2.0/topics/http/urls/#registering-custom-path-converters

Or, as mentioned at the beginning, just keep using regular expressions:
https://docs.djangoproject.com/en/2.0/topics/http/urls/#using-regular-expressions

I've just put together a small article that sums up everything:
https://consideratecode.com/2018/05/02/django-2-0-url-to-path-cheatsheet/

Hope that helps,
Daniel

On Tue, May 1, 2018 at 7:53 AM, Kayode Oladipo 
wrote:

> Hi there again! Beginner here using Django 2.0.
> I'm following a tutorial (coupled with the official doc for compatibility)
> and I discovered that <2.0 versions use RegEx with the url but 2.0> uses
> the simplified path() function.
> My question is how do I find the right corresponding path() function to a
> url (),
> A cheat sheet would be wonderful.
>
> Cheers!
>
> --
> 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 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/CA%2BARzD8HO26aTwpdYe1km9_%3DykDgBF_y%
> 3DRfkNhrpFvHmSsea6w%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+unsubscr...@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/CAHEnUVVsYBhwCsJQ1fkf1eb-6EwHMVQKbTH_eEtVbJ4-roLKVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Tools in the django ecosystem for managing contact databases

2018-05-02 Thread quentin . agren
Hi,


This is a question regarding tools that might be available in the
django ecosystem meeting the rather simple requirements briefly
summarized below. 


I am looking for a web-based solution that, at its core, would be able
to handle a contact database. With the following constraint: think of
the contacts as being partitioned among different groups (one per
country, in an international setting for example), each group being
managed by a privileged set of users. These "managers" would be able
to create contact records via CSV uploads (which as a side effect 
would create user accounts for contacts), and interact with the
contacts (via mail or in-app messages). Contact groups should be
independent of one another, in that managers of one group do not have
access to the personal data of contact members belonging to other
groups.


Now I feel that this may be rather common problems, and whishing to
avoid reinventing to many wheels, would like to know if anyone could
provide useful pointers in the django ecosystem of applications
providing similar base functionalities.


Thanks a lot,
Quentin

-- 
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 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/15acf4fa-8e68-4a35-9017-a21251682d58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: OperationalError

2018-05-02 Thread 'Anthony Flury' via Django users
At first glance it looks like you haven't applied a migration to this 
computer.


at the command line on this computer  - in the man project directory :

If you have not copied the migration scripts from your development 
machine do this first :


   $ python manage.py makemigrations

and then do this :

   $ python manage.py migrate

--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury 

*On 02/05/18 00:56, Gerald Brown wrote:
I have a Django application that I am having problems with.  In the 
Admin page I have 3 sections, ABC, DEF & XYZ. Each has 1 option to 
"Add/Change".  In 2 of them when I click on the option it works fine. 
The third gives me the following error "
*1054, "Unknown column 'xyz_xyz.first_name' in "field list" *The 
Exception location is: 
*/home/medrec1/.virtualenvs/medrecproj/lib/python3.5/site-packages/*MySQLdb*/connections.py 
in query, line 277* On another system (both running the same code) I 
was also getting a different error also in *site-packages/MySQLdb* but 
I was able correct that by installing 2 DEV packages and then  installing MySQLClient, which I also did on this computer.  The other

system does NOT give this error.

Any ideas, suggestions, solutions on how to solve this error and any other 
errors in the Django code?

Thanks.

--
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 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/74790172-8bf5-43b6-9bad-bab68ae11a4a%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.



--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury *

--
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 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/ee20f787-ae18-f407-de84-b4122d9f304d%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.