Re: django beginner

2014-07-05 Thread ngangsia akumbo


On Wednesday, July 2, 2014 12:25:24 PM UTC+1, Lachlan Musicman wrote:
>
>
>
> Why is this template not outputting the Title area?
I am using django-1.4.13






My test page



News Updates
{% for entry in entries %}
{{entry.headline}}
Posted on {{ entry.pub_date }} by {{ entry.reporter }}
{{entry.content}}
{% endfor %}




 

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3bf72bbb-369a-4e5d-9626-be7926a21071%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Simple History - Field Change

2014-07-05 Thread Cal Leeming [Simplicity Media Ltd]
No problem at all, glad you got it sorted!

Cal


On Sat, Jul 5, 2014 at 6:32 AM, Aaron Reabow  wrote:

> You are totally right.
>
> There is a historical table that required deletion.
>
> This is why you shouldn't debug late on friday afternoon.  I had actually
> looked for that table but somehow missed it.
>
> I will pick up the broader problems with simple history separately.
>
> thanks for taking the time to look through this Cal.
>
> On Friday, 4 July 2014 18:05:43 UTC+2, Cal Leeming [Simplicity Media Ltd]
> wrote:
>
>> It sounds like you haven't applied the table changes to the cloned table
>> which it creates to track changes.
>>
>> I'd advice using something like South to manage your schema changes, and
>> this should work out of the box with django-simple-history.
>>
>> For now, you can delete the cloned table and re-sync, you will naturally
>> lose the historical data but if you deleted the original then this probably
>> won't matter.
>>
>> It's also worth mentioning that the design approach
>> of django-simple-history is completely wrong, and personally I wouldn't
>> recommend using it. Feel free to start a separate thread if you'd like to
>> discuss that further though as it's slightly off topic for this thread.
>>
>> Let us know how you get on.
>>
>> Cal
>>
>>
>> On Fri, Jul 4, 2014 at 4:47 PM, Aaron Reabow  wrote:
>>
>>> Environment:
>>>
>>>
>>> Request Method: POST
>>> Request URL: upon request :)
>>>
>>> Django Version: 1.6.2
>>> Python Version: 2.7.5
>>> Installed Applications:
>>> ('django.contrib.admin',
>>>  'django.contrib.admindocs',
>>>  'django.contrib.auth',
>>>  'django.contrib.sites',
>>>  'django.contrib.contenttypes',
>>>  'django.contrib.sessions',
>>>  'django.contrib.messages',
>>>  'django.contrib.staticfiles',
>>>  'myproject.ngc',
>>>  'registration',
>>>  'crispy_forms',
>>>  'floppyforms',
>>>  'simple_history')
>>> Installed Middleware:
>>> ('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')
>>>
>>>
>>> Traceback:
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/core/handlers/base.py"
>>> in get_response
>>>   114. response = wrapped_callback(request,
>>> *callback_args, **callback_kwargs)
>>> File "/home/metadata/webapps/greenhouse/myproject/myproject/ngc/views.py"
>>> in leadManagementView
>>>   540. model_instance.save()
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/base.py"
>>> in save
>>>   545.force_update=force_update,
>>> update_fields=update_fields)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/base.py"
>>> in save_base
>>>   582.update_fields=update_fields,
>>> raw=raw, using=using)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/dispatch/dispatcher.py"
>>> in send
>>>   185. response = receiver(signal=self, sender=sender,
>>> **named)
>>> File 
>>> "/home/metadata/.local/lib/python2.7/site-packages/simple_history/models.py"
>>> in post_save
>>>   209. self.create_historical_record(instance, created and
>>> '+' or '~')
>>> File 
>>> "/home/metadata/.local/lib/python2.7/site-packages/simple_history/models.py"
>>> in create_historical_record
>>>   222.history_user=history_user, **attrs)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/manager.py"
>>> in create
>>>   157. return self.get_queryset().create(**kwargs)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/query.py"
>>> in create
>>>   319. obj.save(force_insert=True, using=self.db)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/base.py"
>>> in save
>>>   545.force_update=force_update,
>>> update_fields=update_fields)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/base.py"
>>> in save_base
>>>   573. updated = self._save_table(raw, cls, force_insert,
>>> force_update, using, update_fields)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/base.py"
>>> in _save_table
>>>   654. result = self._do_insert(cls._base_manager, using,
>>> fields, update_pk, raw)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/base.py"
>>> in _do_insert
>>>   687.using=using, raw=raw)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/python2.7/django/db/models/manager.py"
>>> in _insert
>>>   232. return insert_query(self.model, objs, fields, **kwargs)
>>> File 
>>> "/home/metadata/webapps/greenhouse/lib/p

Google App Engine / Django / Django-nonrel Best Practices

2014-07-05 Thread Adam Simon


Hello,

What is the status of Django-nonrel, it seems that there have been a few 
changes recently on github, but not much overall news, especially on their 
website?

If i try to use Django 1.5 (GAE's latest version) are there any good 
tutorials / blogs on how to get it working with NDB other than on the 
Google developers site?

I have found:

GAE Cupboard .. it seems to have stopped updating

Udemy, which has a course that does nto seem to include Django

This is a great one:

  
http://rem4me.me/2013/06/writing-your-first-django-web-app-with-google-app/ 
sadly, there does not seem to be a part 2.


Any other hints would be appreciated!

Thanks,

Adam

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a2baf8ed-0540-4ed1-900b-934335ef3e38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Lookup Fields

2014-07-05 Thread Dean


> LOOKUP_PEOPLE = (
> ('person1', 'person1'),
> ('person2', 'person2'),
> ('person3', 'person3'),
> ) 
>
role_for_who = models.CharField('Role for', max_length=50, 
> choices=LOOKUP_PEOPLE)
>

Thanks in advance for any help. I almost had it - I wish - but don't think 
django liked starting with an empty database.

When defining the models.py, rather than use a handtyped LOOKUP_PEOPLE (as 
above) I would like LOOKUP_PEOPLE to provide the choices from a list of 
forenames. How do I do that, when the forenames are in the same 'class 
People'?
(I understand I won't see these in the models.py file).

Thanks again.


-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3d80243b-a949-4535-8fd1-90f45c938fd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django 1.6 + Mysql

2014-07-05 Thread Henrique Oliveira
hi there,

I am getting this error when using Mysql connector:

File "/opt/b360/lib/python3.4/site-packages/django/core/handlers/base.py", 
line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File 
"/opt/b360/lib/python3.4/site-packages/django/views/generic/base.py", line 
69, in view
return self.dispatch(request, *args, **kwargs)

  File 
"/opt/b360/lib/python3.4/site-packages/django/views/generic/base.py", line 
87, in dispatch
return handler(request, *args, **kwargs)

  File "/opt/b360/lib/python3.4/site-packages/allauth/account/views.py", 
line 194, in get
self.object = self.get_object()

  File "/opt/b360/lib/python3.4/site-packages/allauth/account/views.py", 
line 258, in get_object
return queryset.get(key=self.kwargs["key"].lower())

  File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
line 301, in get
num = len(clone)

  File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
line 77, in __len__
self._fetch_all()

  File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
line 854, in _fetch_all
self._result_cache = list(self.iterator())

  File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
line 220, in iterator
for row in compiler.results_iter():

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
line 709, in results_iter
for rows in self.execute_sql(MULTI):

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
line 772, in execute_sql
sql, params = self.as_sql()

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
line 93, in as_sql
where, w_params = self.query.where.as_sql(qn=qn, 
connection=self.connection)

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
103, in as_sql
sql, params = child.as_sql(qn=qn, connection=connection)

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
106, in as_sql
sql, params = self.make_atom(child, qn, connection)

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
181, in make_atom
lvalue, params = lvalue.process(lookup_type, params_or_value, 
connection)

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
365, in process
connection=connection, prepared=True)

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/fields/__init__.py", 
line 407, in get_db_prep_lookup
prepared=prepared)]

  File 
"/opt/b360/lib/python3.4/site-packages/django/db/models/fields/__init__.py", 
line 912, in get_db_prep_value
return connection.ops.value_to_db_datetime(value)

  File 
"/opt/b360/lib/python3.4/site-packages/mysql/connector/django/base.py", 
line 398, in value_to_db_datetime
return self.connection.connection.converter._datetime_to_mysql(value)

AttributeError: 'NoneType' object has no attribute 'converter'

Any Ideas?

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/55de3ab9-1734-400c-8873-1359d0ffacad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.6 + Mysql

2014-07-05 Thread Dean
The first place I look is in the last line of the error message. I don't 
think you have a MySQL connection, check in your error log file.


On Sunday, July 6, 2014 8:03:56 AM UTC+8, Henrique Oliveira wrote:
>
> hi there,
>
> I am getting this error when using Mysql connector:
>
> File "/opt/b360/lib/python3.4/site-packages/django/core/handlers/base.py", 
> line 114, in get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/views/generic/base.py", line 
> 69, in view
> return self.dispatch(request, *args, **kwargs)
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/views/generic/base.py", line 
> 87, in dispatch
> return handler(request, *args, **kwargs)
>
>   File "/opt/b360/lib/python3.4/site-packages/allauth/account/views.py", 
> line 194, in get
> self.object = self.get_object()
>
>   File "/opt/b360/lib/python3.4/site-packages/allauth/account/views.py", 
> line 258, in get_object
> return queryset.get(key=self.kwargs["key"].lower())
>
>   File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
> line 301, in get
> num = len(clone)
>
>   File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
> line 77, in __len__
> self._fetch_all()
>
>   File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
> line 854, in _fetch_all
> self._result_cache = list(self.iterator())
>
>   File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
> line 220, in iterator
> for row in compiler.results_iter():
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
> line 709, in results_iter
> for rows in self.execute_sql(MULTI):
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
> line 772, in execute_sql
> sql, params = self.as_sql()
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
> line 93, in as_sql
> where, w_params = self.query.where.as_sql(qn=qn, 
> connection=self.connection)
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
> 103, in as_sql
> sql, params = child.as_sql(qn=qn, connection=connection)
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
> 106, in as_sql
> sql, params = self.make_atom(child, qn, connection)
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
> 181, in make_atom
> lvalue, params = lvalue.process(lookup_type, params_or_value, 
> connection)
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
> 365, in process
> connection=connection, prepared=True)
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/fields/__init__.py", 
> line 407, in get_db_prep_lookup
> prepared=prepared)]
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/django/db/models/fields/__init__.py", 
> line 912, in get_db_prep_value
> return connection.ops.value_to_db_datetime(value)
>
>   File 
> "/opt/b360/lib/python3.4/site-packages/mysql/connector/django/base.py", 
> line 398, in value_to_db_datetime
> return self.connection.connection.converter._datetime_to_mysql(value)
>
> AttributeError: 'NoneType' object has no attribute 'converter'
>
> Any Ideas?
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e0bff0f9-ff81-40c6-a239-d41bf785725b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: models

2014-07-05 Thread Dean
You could start here http://www.djangobook.com/en/2.0/chapter05.html and 
look at a 1/3 down the page at the heading 'Your First Model'.

Taking 'events' as an example, think about the data you need to record. For 
example, each event normally has a title, location, start date and time, 
end date and time and perhaps a link to the promoters main website, where 
the event is featured. As a rough example:

class NgangsiaEvent(models.Model):
title = models.CharField(max_length=100)
location = models.CharField(max_length=75)
starting = models.DateTimeField(auto_now=False, auto_now_add=False)
it_ending = = models.DateTimeField(auto_now=False, auto_now_add=False)
website = models.URLField()


Hope that helps!

On Saturday, June 28, 2014 5:22:30 PM UTC+8, ngangsia akumbo wrote:
>
> please what can go within these models
>
> page, events, news,  offers,  room types, services
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d25c7d02-505b-41cc-ac55-d2b64a5bcb71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DateTimeField always returns None

2014-07-05 Thread Dean
I think there is a restriction in using 'date' in MySQL as a field name as 
it's some sort of inbuilt function. 

On Friday, July 4, 2014 5:01:15 PM UTC+8, William Granli wrote:
>
> I am trying to create a queryset for getting the values of a DateTimeField 
> which is DATETIME in the DB.
>
> The class in models.py:
>
> class ChangeMetrics(models.Model):
> id = models.IntegerField(primary_key=True)
> file_id = models.ForeignKey(File, db_column = 'file_id')
> version_id = models.ForeignKey(Version, db_column = 'version_id')
> function_id = models.ForeignKey(Function, blank=True, db_column = 
> 'function_id')
> date = models.DateTimeField(blank=True, null=True)
> user = models.TextField(blank=True)
> changed = models.IntegerField(blank=True, null=True)
>
> The field in the SQL DB:
>
> date DATETIME
>
> The tuples are populated in the database and running SQL queries directly 
> on the DB is working perfectly.
>
> This is the queryset I am currently using in Django:
>
> queryset = ChangeMetrics.objects.filter(~Q(changed=None), ~Q(date=None), 
> ~Q(version_id=None))
>
> I have tried a raw query and also a version of the query that uses 
> exclude(), but that still returns None for date.
>
> I am accessing the entries in the queryset through a for loop and simply 
> accessing date through entry.date inside the for loop.
>
> I am using Django version 1.6.5. I have also tried getting the values 
> through the Django shell, to no success.
>
> Any ideas on what could be wrong? I have tried a multitude of queries, 
> none of them change the returned value of date. I have tried resyncing the 
> DB. I've looked over the models and everything seems to be correct. 
> Everything except the date works fine.
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20994464-f99b-40bf-a16e-aaff87ff9d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.6 + Mysql

2014-07-05 Thread Henrique Oliveira
Hi Dean,

I have a MySQL connection because I can log in.


On Saturday, July 5, 2014 10:48:35 PM UTC-3, Dean wrote:
>
> The first place I look is in the last line of the error message. I don't 
> think you have a MySQL connection, check in your error log file.
>
>
> On Sunday, July 6, 2014 8:03:56 AM UTC+8, Henrique Oliveira wrote:
>>
>> hi there,
>>
>> I am getting this error when using Mysql connector:
>>
>> File 
>> "/opt/b360/lib/python3.4/site-packages/django/core/handlers/base.py", line 
>> 114, in get_response
>> response = wrapped_callback(request, *callback_args, 
>> **callback_kwargs)
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/views/generic/base.py", line 
>> 69, in view
>> return self.dispatch(request, *args, **kwargs)
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/views/generic/base.py", line 
>> 87, in dispatch
>> return handler(request, *args, **kwargs)
>>
>>   File "/opt/b360/lib/python3.4/site-packages/allauth/account/views.py", 
>> line 194, in get
>> self.object = self.get_object()
>>
>>   File "/opt/b360/lib/python3.4/site-packages/allauth/account/views.py", 
>> line 258, in get_object
>> return queryset.get(key=self.kwargs["key"].lower())
>>
>>   File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
>> line 301, in get
>> num = len(clone)
>>
>>   File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
>> line 77, in __len__
>> self._fetch_all()
>>
>>   File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
>> line 854, in _fetch_all
>> self._result_cache = list(self.iterator())
>>
>>   File "/opt/b360/lib/python3.4/site-packages/django/db/models/query.py", 
>> line 220, in iterator
>> for row in compiler.results_iter():
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
>> line 709, in results_iter
>> for rows in self.execute_sql(MULTI):
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
>> line 772, in execute_sql
>> sql, params = self.as_sql()
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/compiler.py", 
>> line 93, in as_sql
>> where, w_params = self.query.where.as_sql(qn=qn, 
>> connection=self.connection)
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
>> 103, in as_sql
>> sql, params = child.as_sql(qn=qn, connection=connection)
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
>> 106, in as_sql
>> sql, params = self.make_atom(child, qn, connection)
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
>> 181, in make_atom
>> lvalue, params = lvalue.process(lookup_type, params_or_value, 
>> connection)
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/sql/where.py", line 
>> 365, in process
>> connection=connection, prepared=True)
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/fields/__init__.py", 
>> line 407, in get_db_prep_lookup
>> prepared=prepared)]
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/django/db/models/fields/__init__.py", 
>> line 912, in get_db_prep_value
>> return connection.ops.value_to_db_datetime(value)
>>
>>   File 
>> "/opt/b360/lib/python3.4/site-packages/mysql/connector/django/base.py", 
>> line 398, in value_to_db_datetime
>> return self.connection.connection.converter._datetime_to_mysql(value)
>>
>> AttributeError: 'NoneType' object has no attribute 'converter'
>>
>> Any Ideas?
>>
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/036e4d1c-0045-457d-a07c-3f5d19ea9da2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to install Django on Windows - pip, command prompt.

2014-07-05 Thread Sen
I was going 
through 
https://docs.djangoproject.com/en/1.6/howto/windows/#how-to-install-django-on-windows
I could follow until "In the command prompt, execute the following command: 
pip install django. This will download and install Django."
I'm not sure which command prompt and "pip install django" doesn't work on 
either powershell or python shell.
"pip" is not a proper comlet and "install" is not a proper syntax in python 
shell.
I'm not sure what I'm missing. Is there any other way to install django?

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/72edd907-1b13-428c-aa8e-8f3853d0534b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to install Django on Windows - pip, command prompt.

2014-07-05 Thread Setiaman Lee
You can get and install python from activestate.com where pip is included.
So you can run pip from command prompt.

Rgrds
Setiaman
On 6 Jul 2014 11:44, "Sen"  wrote:

> I was going through
> https://docs.djangoproject.com/en/1.6/howto/windows/#how-to-install-django-on-windows
> I could follow until "In the command prompt, execute the following
> command: pip install django. This will download and install Django."
> I'm not sure which command prompt and "pip install django" doesn't work on
> either powershell or python shell.
> "pip" is not a proper comlet and "install" is not a proper syntax in
> python shell.
> I'm not sure what I'm missing. Is there any other way to install django?
>
> --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/72edd907-1b13-428c-aa8e-8f3853d0534b%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADPvYxhwAi55Jxtkbq55G9hqmhmDumJqt6EN_nNjn0sRY2FOPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to install Django on Windows - pip, command prompt.

2014-07-05 Thread Mike Dewhirst


http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows

On 6/07/2014 1:24 PM, Sen wrote:

I was going
through 
https://docs.djangoproject.com/en/1.6/howto/windows/#how-to-install-django-on-windows
I could follow until "In the command prompt, execute the following
command: pip install django. This will download and install Django."
I'm not sure which command prompt and "pip install django" doesn't work
on either powershell or python shell.
"pip" is not a proper comlet and "install" is not a proper syntax in
python shell.
I'm not sure what I'm missing. Is there any other way to install django?

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/72edd907-1b13-428c-aa8e-8f3853d0534b%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53B8DD26.6030503%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


[Django-admin] Popup for inline model

2014-07-05 Thread Aeh. ABID
In the inline models when using TabularInline, is it possible to use a 
popup to add/edit an item  when we have a number of fields that can't hold 
in the page without horizontal scrolling ?

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/220a1581-3658-423b-9734-2e56cff6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.