Re: how can i fix ImportError: No module named 'archive.settings'

2017-07-04 Thread James Schneider
  File "", line 969, in _find_and_load
  File "", line 956, in _find_and_load_unlocked
ImportError: No module named 'archive.settings'


If I had to guess, you're missing the settings.py file in the root of your
Django project. That should have been created by the 'django-admin.py
startproject' command.

-James

-- 
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%2Be%2BciX_4c3NQ6hK5n1OUv64wFMGr%2BLrexCioC%3Dj%2BLDsyuNzsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


how can i fix ImportError: No module named 'archive.settings'

2017-07-04 Thread Body Abdo
python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 22, in 
execute_from_command_line(sys.argv)
  File 
"/var/www/project/venv/lib/python3.5/site-packages/django/core/management/__init__.py",
 
line 363, in execute_from_command_line
utility.execute()
  File 
"/var/www/project/venv/lib/python3.5/site-packages/django/core/management/__init__.py",
 
line 307, in execute
settings.INSTALLED_APPS
  File 
"/var/www/project/venv/lib/python3.5/site-packages/django/conf/__init__.py", 
line 56, in __getattr__
self._setup(name)
  File 
"/var/www/project/venv/lib/python3.5/site-packages/django/conf/__init__.py", 
line 41, in _setup
self._wrapped = Settings(settings_module)
  File 
"/var/www/project/venv/lib/python3.5/site-packages/django/conf/__init__.py", 
line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/var/www/project/venv/lib64/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 956, in _find_and_load_unlocked
ImportError: No module named 'archive.settings'


*my setting:*

import os
import sys

# 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/1.11/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'd*d9q(5zn)6uv9ep$-qjsh3e^63=n64j%s&*w#*1voa3+e$x'

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

ALLOWED_HOSTS = []

IMPORT_EXPORT_USE_TRANSACTIONS = True

# Application definition

INSTALLED_APPS = [
'archive',
'import_export',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'bootstrap3',

-- 
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/60c53c4a-3b34-4564-8bbf-b3e292ea16b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django-tables2 and javascript

2017-07-04 Thread James Schneider
On Jul 4, 2017 1:31 PM, "yingi keme"  wrote:

I want to know. How do you access a table generated by django-tables2 in
your client side using javascript?

Does django-tables2 provide a mechanism to access table contents via client
side.? A traditional html  tags do have an id or a classname for
access purpose. How will you do such with a django generated table.?


You can add an HTML class or id to the  tag by specifying it in your
python Table class:

http://django-tables2.readthedocs.io/en/latest/pages/custom-rendering.html#css

Once that is done, you can identify the table in the DOM with JS and
perform whatever manipulations you need.

To answer your question specifically, Django-tables2 is strictly
server-side, so there is no direct connection between it and your JS (which
is only client-side).

-James

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


Re: django-tables2 and javascript

2017-07-04 Thread Владислав Котвицкий
Sorry, i dont know django-tables2, but i try use DOJO framework DataGrid 
and this framework have all mechanism

вторник, 4 июля 2017 г., 23:31:04 UTC+3 пользователь yingi keme написал:
>
> I want to know. How do you access a table generated by django-tables2 in 
> your client side using javascript?
>
> Does django-tables2 provide a mechanism to access table contents via 
> client side.? A traditional html  tags do have an id or a classname 
> for access purpose. How will you do such with a django generated table.?
>

-- 
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/07acaf2e-8822-44fb-8cf2-83d8ad2ca9c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django-tables2 and javascript

2017-07-04 Thread yingi keme
I want to know. How do you access a table generated by django-tables2 in your 
client side using javascript?

Does django-tables2 provide a mechanism to access table contents via client 
side.? A traditional html  tags do have an id or a classname for access 
purpose. How will you do such with a django generated table.?

-- 
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/d23b7d9c-282a-43e7-82bb-e0bb46e0c5ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Class Based Views : filter items by users

2017-07-04 Thread Nabil BOUDERBALA


As you can see from my template below, i have a list of users who posted 
items and I would like to get the list of items for each user. However, 
using the view below I only get the list for the current logged user. How 
can I modify my views.py so that it filters items for each one of the 
listed users?

my template.html


{% if user %}

{% for user in user_list %}
{% if user.item_set.count > 0 %}

{{ user.username }} [{{ user.item_set.count }}]

{% endif %}
{% endfor %}

{% endif %}


*In addition the DCF proxy user class in the models.py is below :*

class DcfUser(User):class Meta:
proxy = Truedef allow_add_item(self):
if self.item_set.count() > settings.DCF_ITEM_PER_USER_LIMIT:
return False
else:
return True

*class based views.py*

class UserItemsView(ListView):
template_name = 'dcf/template.html'
def get_queryset(self):   return Item.objects.filter()

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/53b06618-1de5-445e-a0ed-095ffc3dcd75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django webframework

2017-07-04 Thread Mark Phillips
Hi Arun!

If tomcat is required for this project, then are you supposed to code the
project in java? If so, then python and django are not what you need. Maybe
Ruby, or Wicket is better suited for your project.

Mark

On Tue, Jul 4, 2017 at 7:26 AM, Vivek Shrivastava 
wrote:

> Well, I would caution against jumping right in Django without having any
> experience in web developement or in Python. I would rather you learn
> fundamentals of web development and then pick a simple framework like
> web2py with low learning curve.
>
> You might find Django convenient once you experience web development
> implementation and maintenance nightmares.
>
> On Mon, Jul 3, 2017 at 1:48 AM, arun kumar  wrote:
>
>> Hi,
>>
>> My name is arun and i am a junior software engineer.i am very new with
>> python and i want to develop a web project so first i have selected python
>> script but after doing some online research i found routing is very
>> difficult in python if you are a new programmer in pyhton
>>
>> so i finally decided to do this project with django because it supports
>> mvc.so i need your valuable suggestion if  i am new with pyhton is it ok to
>> go for django framework because i think documentation for django is very
>> good and it has less code and it supports many databases also.
>>
>> so please help me currently i am using windows so i want to ask which is
>> better linux or windows and apache tomcat is also required for this web
>> application project so basically i need a overview for django how to use
>> whether to use.
>>
>> --
>> 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/0942dee0-72c3-4f64-8e0c-a7d3607253b2%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/CAGaCEHt%2BqZ%3DFJG5hm%3DcD0NzWyZW%
> 3DbZsOP%2BxOVngYBPcK8NwXYQ%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/CAEqej2NGarbF9dVmP67Dz4r9yOJYtC2ZZt7ob9CNVpneYVhGpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django webframework

2017-07-04 Thread Vivek Shrivastava
Well, I would caution against jumping right in Django without having any
experience in web developement or in Python. I would rather you learn
fundamentals of web development and then pick a simple framework like
web2py with low learning curve.

You might find Django convenient once you experience web development
implementation and maintenance nightmares.

On Mon, Jul 3, 2017 at 1:48 AM, arun kumar  wrote:

> Hi,
>
> My name is arun and i am a junior software engineer.i am very new with
> python and i want to develop a web project so first i have selected python
> script but after doing some online research i found routing is very
> difficult in python if you are a new programmer in pyhton
>
> so i finally decided to do this project with django because it supports
> mvc.so i need your valuable suggestion if  i am new with pyhton is it ok to
> go for django framework because i think documentation for django is very
> good and it has less code and it supports many databases also.
>
> so please help me currently i am using windows so i want to ask which is
> better linux or windows and apache tomcat is also required for this web
> application project so basically i need a overview for django how to use
> whether to use.
>
> --
> 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/0942dee0-72c3-4f64-8e0c-a7d3607253b2%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/CAGaCEHt%2BqZ%3DFJG5hm%3DcD0NzWyZW%3DbZsOP%2BxOVngYBPcK8NwXYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django, permission error saving on disk, why?

2017-07-04 Thread Александр Христюхин (roboslone)
Looks like Linux permission issue. Are you sure user that runs Django is 
allowed to write anything to given directory?

> On 4 Jul 2017, at 14:37, Antonis Christofides  
> wrote:
> 
> Is it possible to show full traceback and error message?
> Antonis Christofides
> http://djangodeployment.com 
> On 2017-07-04 14:33, miguel vfx wrote:
>> Hello,I'm getting a Permissions Error [Errno 13] Permission Denied when a 
>> workbook on disk using openpyxl:
>> wb.save(path)
>> No file is uploaded. It's a request then the file is generated and delivered 
>> (downloaded), and that part works fine. What I'm trying to do is save a copy 
>> of that file on disk.
>> 
>> 
>> So far I have rw to both group and others. Same error.
>> 
>> 
>> Has anyone tried this before? Is this a Django issue or Linux/Permission? 
>> Thank you for the help.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users+unsubscr...@googlegroups.com 
>> .
>> To 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/1d973104-6c3f-4b67-865a-389ab58f39a8%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/72cbeb2d-cc8b-7bdd-7423-79dd698e6f8c%40djangodeployment.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/70E25BBC-9264-4B17-B7B1-6AB489000BB6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django, permission error saving on disk, why?

2017-07-04 Thread Antonis Christofides
Is it possible to show full traceback and error message?

Antonis Christofides
http://djangodeployment.com

On 2017-07-04 14:33, miguel vfx wrote:
> Hello,I'm getting a Permissions Error [Errno 13] Permission Denied when a
> workbook on disk using openpyxl:
>
> |wb.save(path)|
> ||
>
> No file is uploaded. It's a request then the file is generated and delivered
> (downloaded), and that part works fine. What I'm trying to do is save a copy
> of that file on disk.
>
>
> So far I have rw to both group and others. Same error.
>
>
> Has anyone tried this before? Is this a Django issue or Linux/Permission?
> Thank you for the help.
>
> -- 
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com
> .
> To 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/1d973104-6c3f-4b67-865a-389ab58f39a8%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/72cbeb2d-cc8b-7bdd-7423-79dd698e6f8c%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


Django, permission error saving on disk, why?

2017-07-04 Thread miguel vfx
Hello,I'm getting a Permissions Error [Errno 13] Permission Denied when a 
workbook on disk using openpyxl:

wb.save(path)

No file is uploaded. It's a request then the file is generated and 
delivered (downloaded), and that part works fine. What I'm trying to do is 
save a copy of that file on disk.


So far I have rw to both group and others. Same error.


Has anyone tried this before? Is this a Django issue or Linux/Permission? 
Thank you for the help.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To 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/1d973104-6c3f-4b67-865a-389ab58f39a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: save cropped image with PIL to database

2017-07-04 Thread Andréas Kühne
Sorry - can't help you there. I prefer using pip packages than writing my
own code - where possible. :-)

Regards,

Andréas

2017-07-04 10:15 GMT+02:00 shahab emami :

> but i want to do it myself.
>
> when i write code i can improve it as much as i can.
> can anybody please tell me about my mistake please
>
> On Monday, July 3, 2017 at 9:12:55 PM UTC+4:30, Andréas Kühne wrote:
>>
>> I would have a look at the easy-thumbnails plugin (
>> http://easy-thumbnails.readthedocs.io/en/2.1/). It uses pillow behind
>> the scenes and it is very easy to do the cropping and everything that you
>> need and you don't need to write it yourself :-)
>>
>> Regards,
>>
>> Andréas
>>
>> 2017-07-03 12:09 GMT+02:00 shahab emami :
>>
>>> hello
>>>
>>> i have a question and i cant find answer with search.
>>>
>>> i want to save cropped image in database then :
>>> this is my model:
>>>
>>> class Photo(models.Model):
>>> file= models.ImageField(upload_to='%Y/%m/%d', 
>>> blank=True,null=True)
>>>
>>>
>>> i have a form then user can select image and send to view like this:
>>>
>>> 
>>> {% csrf_token %}
>>>
>>>   
>>>
>>> 
>>>
>>>   
>>>
>>>
>>> and in the view i have this :
>>>
>>> from PIL import Image
>>>
>>>
>>> def save_photo(request):
>>>
>>> _photo, created = models.Photo.objects.get_or_create(pk=1)
>>>
>>> if request.method == 'POST':
>>> photo = request.FILES.get('file')
>>>
>>> image = Image.open(photo)
>>>
>>> cropped_image = image.crop((100, 100, 200, 200))
>>> resized_image = cropped_image.resize((200, 200), Image.ANTIALIAS)
>>> _photo.file = resized_image
>>> _photo.save()
>>>
>>>
>>> return HttpResponse("your image has been saved")
>>>
>>>
>>>
>>>
>>>
>>> but i get this error:
>>>
>>> 'Image' object has no attribute '_committed'
>>>
>>>
>>>
>>> i'm sure my mistake is in views.py but i dont now how to fix it. how can
>>> put resized_image that is an object of Image class to
>>> a model.
>>> can you help me please?
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@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/ms
>>> gid/django-users/362887c4-6b41-47e2-a9f5-f4a129b2538d%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/7be760c5-b5e3-4066-bb27-e953e829d68c%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/CAK4qSCciZ86du_A9K8ShTdnDNpy1W7%2BA7o_0pspLeVZcv%2BGBwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: save cropped image with PIL to database

2017-07-04 Thread shahab emami
but i want to do it myself.

when i write code i can improve it as much as i can. 
can anybody please tell me about my mistake please

On Monday, July 3, 2017 at 9:12:55 PM UTC+4:30, Andréas Kühne wrote:
>
> I would have a look at the easy-thumbnails plugin (
> http://easy-thumbnails.readthedocs.io/en/2.1/). It uses pillow behind the 
> scenes and it is very easy to do the cropping and everything that you need 
> and you don't need to write it yourself :-)
>
> Regards,
>
> Andréas
>
> 2017-07-03 12:09 GMT+02:00 shahab emami 
> :
>
>> hello
>>
>> i have a question and i cant find answer with search.
>>
>> i want to save cropped image in database then :
>> this is my model:
>>
>> class Photo(models.Model):
>> file= models.ImageField(upload_to='%Y/%m/%d', 
>> blank=True,null=True)
>>
>>
>> i have a form then user can select image and send to view like this:
>>
>> 
>> {% csrf_token %}
>>
>>   
>>
>> 
>>
>>   
>>
>>
>> and in the view i have this :
>>
>> from PIL import Image
>>
>>
>> def save_photo(request):
>>
>> _photo, created = models.Photo.objects.get_or_create(pk=1)
>>
>> if request.method == 'POST':
>> photo = request.FILES.get('file')
>>
>> image = Image.open(photo)
>>
>> cropped_image = image.crop((100, 100, 200, 200))
>> resized_image = cropped_image.resize((200, 200), Image.ANTIALIAS)
>> _photo.file = resized_image
>> _photo.save()
>>
>>
>> return HttpResponse("your image has been saved")
>>
>>
>>
>>
>>
>> but i get this error:
>>
>> 'Image' object has no attribute '_committed'
>>
>>
>>
>> i'm sure my mistake is in views.py but i dont now how to fix it. how can 
>> put resized_image that is an object of Image class to 
>> a model.
>> can you help me please?
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@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/362887c4-6b41-47e2-a9f5-f4a129b2538d%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/7be760c5-b5e3-4066-bb27-e953e829d68c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django webframework

2017-07-04 Thread Avraham Serour
I recommend against trying to make python run inside the JVM, specially if
you are not familiar with python. Just use the normal python 3.6 and be
happy

On Mon, Jul 3, 2017 at 5:33 PM, Vinicius Assef 
wrote:

> Hi Arun.
>
> Certainly you can learn Python and Django at the same time. But if you're
> really new to Python, I'd suggest you to follow the official Python
> tutorial [1] beforehand. You should understand basic Python datatypes, how
> OO works in Python and something about modules and packages.
>
> You're right, Django docs are awesome. I personally use Linux to develop
> and run Django. You can run Django in a JVM with some incompatibilities.
> Read the documentation Vijay sent you.
>
> [1] https://docs.python.org/3/tutorial/index.html
>
> --
> Vinicius Assef
>
>
>
> On 3 July 2017 at 02:48, arun kumar  wrote:
>
>> Hi,
>>
>> My name is arun and i am a junior software engineer.i am very new with
>> python and i want to develop a web project so first i have selected python
>> script but after doing some online research i found routing is very
>> difficult in python if you are a new programmer in pyhton
>>
>> so i finally decided to do this project with django because it supports
>> mvc.so i need your valuable suggestion if  i am new with pyhton is it ok to
>> go for django framework because i think documentation for django is very
>> good and it has less code and it supports many databases also.
>>
>> so please help me currently i am using windows so i want to ask which is
>> better linux or windows and apache tomcat is also required for this web
>> application project so basically i need a overview for django how to use
>> whether to use.
>>
>> --
>> 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/0942dee0-72c3-4f64-8e0c-a7d3607253b2%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/CAFmXjSCMtmj4rbagpnbcsc7%3DUU1Oie6rrtTpdT4VHEgkKQGjfA%
> 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/CAFWa6tKAJ%2B7BnmuePeCn97_DqLE-GPzf-xED%3D-%2BF_W5z11jNAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.