Re: associate Developers for Google

2023-06-18 Thread Angel E Castrillo
Hola, buen dia.

Principiante.
*Saludos Cordiales.*

*Atentamente.*

Ing. Angel E. Castrillo
Tel. +580412-7440405
Celular Whatsapp +58-0412-7440405.



El dom, 18 jun 2023 a las 7:01, Cisco Gmail ()
escribió:

> Hello,
> What kind of profile you’re looking for Google ?
> Beginner ? Advanced ?
>
> Bien cordialement,
>
> Julien Munar.
>
>
> Le 17 juin 2023 à 16:56, Fabiano Leite  a
> écrit :
>
> 
>
> Yes, im here
>
> Em sáb., 17 de jun. de 2023 às 11:55, Mz Gz 
> escreveu:
>
>> Yes me please.
>>
>> On Sat, 17 Jun 2023, 5:43 pm Peter Benjamin Ani, <
>> benjaminpari...@gmail.com> wrote:
>>
>>>
>>> Yes please, how can I hit you hit for the application please
>>> On Sat, 17 Jun 2023 at 15:11, Ashish Rawat 
>>> wrote:
>>>
>>>> Yes i am looking
>>>>
>>>> On Sat, Jun 17, 2023, 7:39 PM Lucifer Black 
>>>> wrote:
>>>>
>>>>> Is there anyone that wants a job at google developer at home looking
>>>>> for three people
>>>>>
>>>>>
>>>>> Get Outlook for Android <https://aka.ms/AAb9ysg>
>>>>>
>>>>> --
>>>>> 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 view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/DB9P193MB15964FB814BFEBE1A8A33AEFF45BA%40DB9P193MB1596.EURP193.PROD.OUTLOOK.COM
>>>>> <https://groups.google.com/d/msgid/django-users/DB9P193MB15964FB814BFEBE1A8A33AEFF45BA%40DB9P193MB1596.EURP193.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAJf3DrLj%3Dxn46MV34VGRw%3DHx1d9WMSv8i%2Bi%2BvacSDPOswFYaMw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAJf3DrLj%3Dxn46MV34VGRw%3DHx1d9WMSv8i%2Bi%2BvacSDPOswFYaMw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAPxt_2V0H342GvDTURO5OxH%2BB48a6WK3G-Jt9VTuEHuqQbxUOw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPxt_2V0H342GvDTURO5OxH%2BB48a6WK3G-Jt9VTuEHuqQbxUOw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHV4E-dCU39yteKAAOVpONwj_WjBt0Ey6AiSRfTDaSTww20Mpg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHV4E-dCU39yteKAAOVpONwj_WjBt0Ey6AiSRfTDaSTww20Mpg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
>  Atenciosamente,
>
>  Fabiano Leite - (82) 98898-2103 / 99934-2422
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF3XPR66PkjBXMAP9E0a1KgiMvVLZqu4VHXyREmC8PtUgoJUEg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF3XPR66PkjBXMAP9E0a1KgiMvVLZqu4VHXyREmC8PtUgoJUEg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7935454D-2F78-4BAD-8920-6CE118110EFE%40gmail.com
> <https://groups.google.com/d/msgid/django-users/7935454D-2F78-4BAD-8920-6CE118110EFE%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGLJVkdqdSqhmv7rSMtd47YuBF-1bRPB2Mi6DRsHLJ4fx0L68Q%40mail.gmail.com.


Setting up private temperature sensor system?

2023-01-26 Thread Richard E. Cooke
Where I want to see my temperature sensor data does not have an internet 
connection.

So I need to set up my own system using LHT65N sensors and LPS8N gateway(s).

Reading some older user manuals, I noticed at one time they included The 
Things Network stack in firmware!  Thats cool!  Is that a package I can add 
back to my current LPS8N gateway?

Also, if I have a sensor too far from my LPS8N, how can I extend my range?  
I'm out in the middle of nowhere, nothing and nobody around.

I saw a photo of a "mesh" Lora network.  But it did not say which device 
models?

Thanks in Advance!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/234ff9ab-f7b9-4b6e-8fde-e13e5f7f15e9n%40googlegroups.com.


any solutions guys on the ERROR admin E108 on list_display[2] attributes not callable

2023-01-10 Thread E Mollz
: (admin.E108) The value of 
'list_display[2]' refers to 'stock', which is not a callable, an attribute 
of 'ProductAdmin', or an attribute or method on 'products.Product'.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/916dc855-ffaa-451c-929a-8502d6b4fe07n%40googlegroups.com.


enumerate login in django

2022-08-31 Thread Dilja E G
how to create a function to login with user nam e. if user name and 
password is already exist, but want to login with user for super user.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/92a4fb37-819b-4478-b501-d66bad01546dn%40googlegroups.com.


auto complete djangofilter

2022-02-09 Thread Dilja E G
class PlayerFilter(django_filters.FilterSet):
name = django_filters.ModelChoiceFilter(label='Name' 
,queryset=Player.objects.all())
team__name = 
django_filters.ModelChoiceFilter(label='Team',queryset=Team.objects.all() )
team__game__name = 
django_filters.ModelChoiceFilter(label='Game',queryset=Game.objects.all() )
team__company__name = 
django_filters.ModelChoiceFilter(label='Company',queryset=Company.objects.all())
class Meta:
model = Player
fields =['name','team__name','team__game__name','team__company__name']
this is my filter , how can i add auto complte filtter ?
and how can i customize style of filtter filds?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/931d5a46-6d95-4bd7-aa20-c31ae6a69589n%40googlegroups.com.


django-admin-autocomplete-filter

2022-02-09 Thread Dilja E G
How to add django-admin-autocomplete-filter ? in my django filtter?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJeNHmyrYUNiJN7VJWH0baWxh-dd9dTYd1f_PmfQnm6S9_ch2A%40mail.gmail.com.


Re: Is it possible to use REST API on Django template ?

2020-11-29 Thread sree e

Hi 
find this link 
https://github.com/sumasreeeduru/Textyfi
And go through "api" app , where you will find adding the api in easy way.
On Sunday, November 29, 2020 at 12:36:44 PM UTC+5:30 bharath...@gmail.com 
wrote:

> Hi 
> Use JavaScript or jQuery to call APIs in frontend of Django template.
> You can use fetch API using vanilla JavaScript.
> You can perform all CRUD operations.
> All the best 👍
>
> On Sun, 29 Nov 2020, 11:57 am Aman Modi,  wrote:
>
>> I know how to create API but i just want to know how to use in Django 
>> template.
>>
>> On Wednesday, November 25, 2020 at 8:07:47 PM UTC+5:30 omkar...@gmail.com 
>> wrote:
>>
>>> Creating REST API in Django is similar to any app on Django. All you 
>>> need to do is, install the djangorestframework library, and serialize your 
>>> models. 
>>>
>>> YT video 👇
>>> https://youtu.be/TmsD8QExZ84
>>> On Wed, Nov 25, 2020, 7:48 PM Aman Modi  wrote:
>>>


 Hello Django lovers.

 I want to use REST API  on the Django template but I have no idea how 
 can I do that.
 I want to use the same API on the android app and the Django template.

 Any suggestion.

>>>
 Thanks and regard
 Aman Modi

 -- 
 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 view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/99c6d921-9ea7-4f3b-9d69-03b06fbbd5d8n%40googlegroups.com
  
 
 .

>>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/9219ddfb-a07d-40b4-9e64-8324520043f7n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5bea74b3-647b-45ca-9623-4951b08c911fn%40googlegroups.com.


Need the create statements for my Django models

2020-08-07 Thread Saahitya E
Hi,

I was recently porting a legacy DB to Django by using the inspectdb command 
and then manually comparing the model to the corresponding table 
description. I want to confirm that I have not made any mistakes by getting 
the corresponding SQL create commands that migrate would have used to 
create the model and then comparing it to the original SQL create queries 
in my DB. I saw that there was a python3 manage.py sql  to do 
exactly that, but it seems to be depreciated. 

Thanks and regards
Saahitya


PS: Using migrations is not possible as other services are using the DB.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d9560bc8-aef5-4e1b-b31f-c63c72e3d268n%40googlegroups.com.


REUTILISER UN CITE DJANGO

2020-07-05 Thread C L A S S E 1
*BONJOUR A TOUTES   A TOUS*

*si je décharge  un site(une application django)   est ce que je peut l 
utiliser sur mon environnement de développement  qui lui contient déjà 
porte un site  qui existe déjà. ou je dois créer  un environnement appart.  
si possible comment   merci*

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a1e9d327-0220-4fce-85e7-dcbb6380c281o%40googlegroups.com.


how to use a cite in my envir django

2020-07-05 Thread C L A S S E 1
if i download  a cite how to use this cite  in my envir django with my cite 
django... sould I do an auther envir . if possible how ?  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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/64e26484-ef87-4ac9-875e-3b1958e0e804o%40googlegroups.com.


Django 2.2 cache keys in bytes

2020-01-17 Thread E kamande
Hi , I am having an issue with django that seems to arise from  
`"/usr/local/lib/python3.7/site-packages/django/core/cache/backends/base.py" 
in validate_key` . This is after i updated from django 1.11.x to django 2.2 
for python 3.5 to 3.7. the logs are a shown.
File "/code/frontend/views.py" in _checklogin
  95. return view_func(request, *args, **kwargs)File 
"/code/frontend/views.py" in get_progress
  200. data['status'] = task.statusFile 
"/usr/local/lib/python3.7/site-packages/celery/result.py" in state
  475. return self._get_task_meta()['status']File 
"/usr/local/lib/python3.7/site-packages/celery/result.py" in _get_task_meta
  414. return self._maybe_set_cache(self.backend.get_task_meta(
self.id))File 
"/usr/local/lib/python3.7/site-packages/celery/backends/base.py" in 
get_task_meta
  451. meta = self._get_task_meta_for(task_id)File 
"/usr/local/lib/python3.7/site-packages/celery/backends/base.py" in 
_get_task_meta_for
  771. meta = self.get(self.get_key_for_task(task_id))File 
"/usr/local/lib/python3.7/site-packages/django_celery_results/backends/cache.py"
 
in get
  19. return self.cache_backend.get(key)File 
"/usr/local/lib/python3.7/site-packages/django/core/cache/backends/db.py" in 
get
  52. return self.get_many([key], version).get(key, default)File 
"/usr/local/lib/python3.7/site-packages/django/core/cache/backends/db.py" in 
get_many
  60. self.validate_key(key)File 
"/usr/local/lib/python3.7/site-packages/django/core/cache/backends/base.py" 
in validate_key
  251. if ord(char) < 33 or ord(char) == 127:Exception Type: 
TypeError at /scheduling/get_progress/
Exception Value: ord() expected string of length 1, but int found

After further debugging I found out it was a celery task id that was being 
used to monitor task progress that was causing this issue because it was in 
bytes, how can I go about this, if I switch branch to django 1.11 it works 
fine.
b'celery-task-meta-23d118e8-144c-4178-bf1e-beeb9b04cb7f'

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6159a25b-83d7-4c13-b3d3-a6a7bf42a289%40googlegroups.com.


Re: Django Project Server not starting when running on linux server but running on local windows desktop

2019-07-26 Thread Abhijith E
It's the latest version.
Also I am using Anaconda Distribution with Python 3.5

On Sat, Jul 27, 2019, 8:44 AM Jorge Gimeno  wrote:

> What version of Django are you running?
>
> On Fri, Jul 26, 2019, 7:34 AM abhijithez  wrote:
>
>> Hi All,
>>
>> I have created a Django Project that is working fine on local desktop but
>> when I am starting the same on linux server using python manage.py
>> runserver it shows the following:
>>
>> $python manage.py runserver
>>
>> Watching for file changes with StatReloader
>> Performing system checks...
>> System check identified no issues (0 silenced).
>> Traceback (most recent call last):
>>   File "manage.py", line 21, in 
>> main()
>>   File "manage.py", line 17, in main
>> execute_from_command_line(sys.argv)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/core/managemen
>>
>>
>>t/__init__.py", line 381, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/core/managemen
>>
>>
>>t/__init__.py", line 375, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/core/managemen
>>
>>
>>t/base.py", line 323, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/core/managemen
>>
>>
>>t/commands/runserver.py", line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/core/managemen
>>
>>
>>t/base.py", line 364, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/core/managemen
>>
>>
>>t/commands/runserver.py", line 95, in handle
>> self.run(**options)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/core/managemen
>>
>>
>>t/commands/runserver.py", line 102, in run
>> autoreload.run_with_reloader(self.inner_run, **options)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 587, in run_with_reloader
>> start_django(reloader, main_func, *args, **kwargs)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 572, in start_django
>> reloader.run(django_main_thread)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 290, in run
>> self.run_loop()
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 296, in run_loop
>> next(ticker)
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 336, in tick
>> for filepath, mtime in self.snapshot_files():
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 352, in snapshot_files
>> for file in self.watched_files():
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 251, in watched_files
>> yield from iter_all_python_module_files()
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 103, in iter_all_python_module_files
>> return iter_modules_and_files(modules, frozenset(_error_files))
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/django/utils/autorelo
>>
>>
>>ad.py", line 116, in iter_modules_and_files
>> if module.__name__ == '__main__':
>>   File
>> "/home/mluser/anaconda3/lib/python3.5/site-packages/py/_apipkg.py", line
>>
>>
>>   171, in __getattribute__
>> return getattr(getmod(), name)
>>   File "/home/mluser/anaconda3/lib/python3.5/site-packages/py/_error.py",
>> line 4
>>
>>3, in __getattr__
>> raise AttributeError(name)
>> AttributeError: __name__
>>
>> What could be the issue?
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/b2e867f4-3d12-4a5e-b035-cabc7419e294%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANfN%3DK97Xge0BRLvfXvaSUCzExXLNRqVJqSx3%3DsZPe3qYm7cAw%40mail.gmail.com
> 

Re: Query on 2 non related models

2019-05-20 Thread Rafael E. Ferrero
Hello Ivan... you say Unrelated but I see you have a relation with
VendorGroup... why don't use a ForeignKey?... any way you can use the pipe
charater " | " to concatenate two querysets.

https://simpleisbetterthancomplex.com/tips/2016/06/20/django-tip-5-how-to-merge-querysets.html


Cheers!

Rafael E. Ferrero


El lun., 20 may. 2019 a las 9:12, Ivan Martić ()
escribió:

> Hi guys, hope you can help me.
> I have 2 models and i want to make a count query on them. I need a count
> on how many articles i have in every category.
>
> Models:
> class Vendors(models.Model):
> id = models.AutoField(db_column='id', primary_key=True, blank=False,
> unique=True)
> name = models.CharField(db_column='name', max_length=150, blank=True,
> null=True)
> groupid = models.IntegerField(db_column='groupid', blank=True,
> null=True)
>
>
> class VendorGroup(models.Model):
> id = models.AutoField(db_column='ID', primary_key=True, null=False,
> max_length=255, blank=True)
> vendor_group = models.CharField(db_column='Vendor Group',
> max_length=255, blank=True, null=True)
>
> view:
> def vendorsgrouping_view(request):
> list_vendor = VendorGroup.objects.all().order_by('vendor_group')
>
> context = {
> 'lista_vendora':lista_vendora,
> }
> return render(request, "templates/vendorgroup.html", context)
>
> I have list of vendors listed in template:
> {% for item in lista_vendora %}
> {{ item.vendor_group }}
> {% endfor %}
>
> Prefetch, annotate, select related dont work since they are not connected.
> I know it is easier to give foreign key to fields but what about this?
>
> 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/f0413341-91b2-4308-afd5-ae486b09a71e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f0413341-91b2-4308-afd5-ae486b09a71e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XZ00Sw%2B-o%3D%2B7xY7cHP6wL_TqMMeHmR7RSC5k71hvvRfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Customising django user model

2019-05-20 Thread Rafael E. Ferrero
Hello, you must to extend User model... search on google with this
aproach!!

Cheers!

Rafael E. Ferrero


El dom., 19 may. 2019 a las 14:13, Sipum () escribió:

> Hello Friends,
>
> I want to customise django default user table and which should consist of
> name,phone, email and gender.
> And after that when every time a user logs in, he/she should able to log
> in through an OTP to phone or email.
>
> can anyone guide me  What to do here.??
>
> Thanks.
> Sipum
>
> --
> 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/9b92fdc5-8f36-45e7-809e-b32d4ab41687%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/9b92fdc5-8f36-45e7-809e-b32d4ab41687%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XYD7zGAOmaezmS_sGoDr5R0gz1Y44y6ED-sn-dxzj02A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


System check Framework error checking Admin Fieldsets in 2.1

2018-09-04 Thread Richard E. Cooke
This Field set definition:


fieldsets = (
('Job Work Sheet', {
'fields': (
('number', 'job_history', 'hw_customer',),
('status', 'contracted_out',),
('adn_parts_required', 'atn_required', 'atn_tech', 
'cancel_job',),
('date_quoted', 'po_number', 'tag',),
('date_in', 'priority',),
('hw_description', 'hw_make', 'hw_model', 'hw_serial', 
),
('technician', 'bin', ),
('assessment_time', 'hours_worked',),
('parts_cost', 'parts_shipping',),
('problem',),
)
}),
('Hardware Details', {
'classes': ('grp-collapse grp-closed',),
'fields': (('hw_customer', 'hardware', ), ('hw_description', 
'hw_make', 'hw_model', 'hw_serial',), ('hw_comments',),)
}),
('Repair Details', {
'fields': (('work_done',), ('comments',),)
}),
)


Gets no errors with Django 2.0.6, but with 2.1 I get:


(dj21py37) $ ./manage.py check
SystemCheckError: System check identified some issues:

ERRORS:
: (admin.E012) There are duplicate field(s) 
in 'fieldsets[1][1]'.
: (admin.E012) There are duplicate field(s) 
in 'fieldsets[2][1]'.

System check identified 2 issues (0 silenced).



I presume its complaining about the field 'hw_customer', but since it is in 
readonly_fields this should not be an error.  Nothing in the docs about not 
being able to have a read only field display twice.

Has a bug been introduced to the latest checker?

Rich.





-- 
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/5f97f1d5-0da6-4900-9332-364a3bca9e5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


System check Framework error checking Admin Fieldsets in 2.1

2018-08-31 Thread Richard E. Cooke
This Field set definition:

fieldsets = (
('Job Work Sheet', {
'fields': (
('number', 'job_history', 'hw_customer',),
('status', 'contracted_out',),
('adn_parts_required', 'atn_required', 'atn_tech', 
'cancel_job',),
('date_quoted', 'po_number', 'tag',),
('date_in', 'priority',),
('hw_description', 'hw_make', 'hw_model', 'hw_serial', 
),
('technician', 'bin', ),
('assessment_time', 'hours_worked',),
('parts_cost', 'parts_shipping',),
('problem',),
)
}),
('Hardware Details', {
'classes': ('grp-collapse grp-closed',),
'fields': (('hw_customer', 'hardware', ), ('hw_description', 
'hw_make', 'hw_model', 'hw_serial',), ('hw_comments',),)
}),
('Repair Details', {
'fields': (('work_done',), ('comments',),)
}),
)

Gets no errors with Django 2.0.6, but with 2.1 I get:

(dj21py37) $ ./manage.py check
SystemCheckError: System check identified some issues:

ERRORS:
: (admin.E012) There are duplicate field(s) 
in 'fieldsets[1][1]'.
: (admin.E012) There are duplicate field(s) 
in 'fieldsets[2][1]'.

System check identified 2 issues (0 silenced).



I presume its complaining about the field 'hw_customer', but since it is in 
readonly_fields this should not be an error, correct?

Rich.

-- 
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/5c78dd4e-d86a-4367-8c09-de2c34773f69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: installation help please

2018-05-31 Thread Rafael E. Ferrero
please use some kind of virtual environment... in linux its virtualenvs


Rafael E. Ferrero

2018-05-31 8:06 GMT-03:00 kailash jangu :

> guys i installed django version 2.0.5 in windows but when i use
> django-admin command it shows me error what path i should i go with to get
> start with my newproject and do database api driver has role in it. i have
> my django-admin executive and python file in pyhton36/scripts what do i do
> help 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+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/139a9b30-7301-4ac9-a0af-816621fda116%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/139a9b30-7301-4ac9-a0af-816621fda116%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XS%2BdX_sTQUXQcLPrDSFaszLzhoAqayWHZF0Ax2bp4ptQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Fwd: [django] Excluir un ítem de un dropdown en el admin de django

2017-06-19 Thread Rafael E. Ferrero
I have to make a parent relation between two people (brother/sister,
father/mother, etc) in my projec.
I have a Person class and a child class named Firefighter. What I need it's
to indicate the parent relation between the selected Firefighter and the
selected Person, for that I have two dropdown in my Django Admin.

The trouble it's because Firefighter class is a child of Person class so
the Firefighter item are in the two dropdowns and it shouldn't

How can I exclude the selected Firefighter item from Person's dropdown ??

Best regards!!

Rafael E. Ferrero

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


Re: Django and Nginx through uwsgi is not working

2017-03-16 Thread Rafael E. Ferrero
I've been using this
<https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04>
tutorial on a Salix Linux and everythings goes well


Rafael E. Ferrero

2017-03-16 15:04 GMT-03:00 valerio orfano :

> I got it here "http://uwsgi-docs.readthedocs.io/en/latest/Nginx.html"; and
> others actually
>
> On Thursday, March 16, 2017 at 4:51:35 PM UTC+1, Melvyn Sopacua wrote:
>>
>> On Thursday 16 March 2017 05:25:32 valerio orfano wrote:
>>
>>
>>
>> > Here my configurations files.
>>
>> >
>>
>> > [uwsgi]
>>
>> > chdir = /home/elastic/workspace/ES_Brevetti
>>
>> > wsgi-file = ES_Brevetti/wsgi.py
>>
>> > master = true
>>
>> > processes = 5
>>
>> > uid = nginx
>>
>> > gid = nginx
>>
>> > socket = unix:///socket/uwsgi.sock
>>
>>
>>
>> Where did you read the unix prototol is a network protocol that requires
>> two slashes to indicate it is? And then add another to reference the root
>> of the network domain?
>>
>>
>>
>> > uwsgi_pass unix:///socket/uwsgi.sock;
>>
>>
>>
>> See above.
>>
>> --
>>
>> Melvyn Sopacua
>>
> --
> 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/f2255468-2f43-4b5c-92d7-7b6ceaf9338d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f2255468-2f43-4b5c-92d7-7b6ceaf9338d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8UxZeLk-52ncju6RsPseAmwjgOjh%3DvEZE95rfoT1UBH9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Uplaod execl file to populate django database

2017-03-13 Thread Rafael E. Ferrero
2017-03-13 3:51 GMT-03:00 JJEMBA KENNETH :

> Hello guyz,
> Can any one help with this. I want to upload an excel file with data and i
> use this data to populate the database.
>
> --
> Jjemba kenneth
>
> --
>

I used this https://github.com/pyexcel/django-excel

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


Email attachments in Django1.10 failing

2017-02-01 Thread E kamande
Hi Kindly need help to be able attaching a logo and a pdf when emailing, I 
have been following this great articles 1 

 
and 2 

 
 but it seems am always getting something wrong.
Here is a sample code of mine , It fails the following error 
 " is not JSON 
serializable"

connection = mail.get_connection()
msg = EmailMultiAlternatives(
subject, from_email, receiver)

msg.attach_alternative(mail_body, 'text/html')
image = MIMEImage(insurer.company_logo.read())
image.add_header('Content-ID', '<{}>'.format('logo.png'))

msg.attach('logo.png',image, 'image/png')
msg.send()
connection.send_messages([msg])



-- 
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/422ff42f-6d18-4d4b-8fd6-0bef2a40c15d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site - prepopulating field based on foreign key

2016-11-04 Thread Rafael E. Ferrero
Or you can filter the select with this
<https://docs.djangoproject.com/es/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_foreignkey>


Rafael E. Ferrero

2016-11-04 12:36 GMT-03:00 Derek :

> You need a third-party app e.g.
>
> https://github.com/digi604/django-smart-selects
>
>
> On Thursday, 3 November 2016 19:21:14 UTC+2, dod...@gmail.com wrote:
>>
>> I'm having trouble with my admin site, would appreciate any pointers.
>>
>> I have these three models in my database with relationships as shown:
>>
>> class Customer(models.Model):
>>   name=models.CharField(max_length=30)
>>
>> class Location(models.Model):
>>   name=models.CharField(max_length=30)
>>   customer = models.ForeignKey(Customer, on_delete = models.PROTECT)
>>
>> class License(models.Model):
>>   location=models.ForeignKey(Location, on_delete=models.PROTECT)
>>
>>
>> When the user creates a new License on the admin site, at the moment they
>> have to choose what location the License is at via a dropdown box (a very
>> long, confusing list), or create a new one if necessary.
>>
>> It would be much better if they could choose what Customer the license
>> belongs to, and then choose the Location from the list of locations that
>> have that customer as their foreign key.  They still may need to add a new
>> location or even a new customer when doing this.
>>
>> What is the easiest way to do this on the admin site?
>>
>> I am thinking that I will have to create a new widget with two dropdowns,
>> and have the selection of the first make an AJAX query to populate the
>> second.  Am I on the right track?  How can I then tie in this custom widget
>> for the location field in License?
>>
>> I'm sure that this isn't a unique situation, but I haven't been able to
>> find any tutorial or solution showing how to handle a follow-the-foreign
>> key relationship.
>>
> --
> 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/3dddffa5-a4c1-4e64-a3fe-a15b0d39c701%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3dddffa5-a4c1-4e64-a3fe-a15b0d39c701%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8WdOBZ1m%2BO%3DA9KSCcch58N_u47rL7hEmbBaa76rEfM4fA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using Socket Programmaing with django(for a chat room web app)

2016-10-25 Thread Rafael E. Ferrero
Maybe you can use Tornado for the websockets


Rafael E. Ferrero

2016-10-25 10:08 GMT-03:00 CHAITANYA BHATIA <
chaitanya.bhatia.cs...@itbhu.ac.in>:

> I want to create a chat room web application without using django Chains
> (i.e. I need to use the socket module provided by Python by default). I am
> facing a difficulty in submitting the input from the html page to the
> client function.The only way I know of submitting the input from the
> webpage to the client function is using forms but the problem is that using
> submit option reloads the webpage and thus calls the client function
> everytime a message has to be sent because of this no message can be sent.
> Please suggest a way of doing this.
>
> --
> 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/608ffb46-5bc6-4b15-9eaa-cbee034cedad%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/608ffb46-5bc6-4b15-9eaa-cbee034cedad%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8V-HQfvtXY4pW0VPmXO63rBx-zcC8561SbbJodwab2ELg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Hi. i'm new to django, i have lot of doubts about AD

2016-08-26 Thread Rafael E. Ferrero
you can use the AllAuth app for accomplish gmail login

Cheers!!


Rafael E. Ferrero

2016-08-26 2:27 GMT-03:00 rajeshkmr9583 :

> i'm trying to login with gmail account in django admin login page... i
> don't know how to write script... send me any in-build script available for
> learning
>
> On Thursday, 25 August 2016 19:27:35 UTC+5:30, M Hashmi wrote:
>>
>> What is your code and what you are trying to achieve?
>>
>> On Thu, Aug 25, 2016 at 5:18 AM, rajeshkmr9583 
>> wrote:
>>
>>> Hi guys,
>>> i'm new to django framework and now my doubt id how to create AD for
>>> login page
>>>
>>> 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...@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/b866-4026-4f3d-9b0f-1840ab90a57a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/b866-4026-4f3d-9b0f-1840ab90a57a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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/4d1a031b-2659-4dda-bf16-63830ad927f4%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4d1a031b-2659-4dda-bf16-63830ad927f4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8UqB8%3DquW%2BZQvoBv%2B5Kt0zZz9YRqh-QudDBN9CSYUPZ1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploy django with nginx

2016-07-15 Thread Rafael E. Ferrero
I used this link without any trouble
https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04


Rafael E. Ferrero

2016-07-15 7:47 GMT-03:00 1351552...@qq.com <1351552...@qq.com>:

> hi everyone:
>
> I am tring to deploy my site by nginx and uwagi
> in my project yaohang,i have these files:
>
> #yaohang_uwsgi.ini
> [uwsgi]
> socket = :8001
> chmod-socket= 664
> master = true
> module = yaohang_uwsgi
> processes = 8
> listen = 120
> enable-threads = true
> daemonize = /home/wangwei/yaohang/yaohang_uwsgi.log
> pidfile = /home/wangwei/yaohang/yaohang_uwsgi.pid
> pythonpath = /home/wangwei/yaohang/
> pythonpath = /home/wangwei/yaohang/yaohang_uwsgi
> pythonpath = /home/wangwei/yaohang/yaohang
> buffer-size = 32768
> reload-mercy = 8
> vacuum = true
>
> #yaohang_uwsgi.py
> import os
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "yaohang.settings")
>
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
> #yaohang_uwsgi.conf
> server {
> listen  8000;
> server_name192.168.70.32; # this is my server's addr
> charset UTF-8;
>
> client_max_body_size 75M;
>
> location / {
> include uwsgi_params;
> uwsgi_pass 127.0.0.1:8001;
> uwsgi_read_timeout 2;
> }
> location /static {
> expires 30d;
> autoindex on;
> add_header Cache-Control private;
> alias /home/wangwei/yaohang/static/;
> }
> }
>
> run nginx and
> >>uwsgi --http 192.168.70.32:8001 --wsgi-file yaohang_uwsgi.py
>
> and then by my client browser:192.168.70.32:8000
> it show:502 Bad Gateway
>
> and with the message in file /var/log/nginx/error.log :
> connect() to unix:///home/wangwei/yaohang/yaohang.sock failed (13:
> Permission denied) while connecting to upstream, client: 192.168.71.3,
> server: 192.168.70.32, request: "GET / HTTP/1.1", upstream:
> "uwsgi://unix:///home/wangwei/yaohang/yaohang.sock:", host: "
> 192.168.70.32:8000"
>
> who can tell me where is wrong?
>
> thank you!
>
> wblueboat
>
>
>
> --
> 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/201607151847061918789%40qq.com
> <https://groups.google.com/d/msgid/django-users/201607151847061918789%40qq.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UxOJ0j%3DoCTyho744Qvie8U7NiMTZ%3D4OmC16--_j5aaNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any one tried of Django Postgres with Ngnix?

2016-07-14 Thread Rafael E. Ferrero
YES, I do !!


Rafael E. Ferrero

2016-07-14 11:16 GMT-03:00 :

>
>  Any one tried of Django Postgres with Ngnix?
>
> --
> 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/e3f5d76a-a844-44a0-847c-eb0e18c3c3da%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e3f5d76a-a844-44a0-847c-eb0e18c3c3da%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8VQLt5pqHzV7q96tFqiwyChS4%3DkTFKY1OHMNQ0L62Hm5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTTP2 Server Push with Django?

2016-07-01 Thread Alcides Viamontes E

Take a look to ShimmerCat and it's Django support: 

https://www.shimmercat.com/en/info/articles/guides-django/

ShimmerCat's raison d'etre is to be a viable alternative to CDNs for 
lowering the effects of latency in webpages. But regarding your question: 

- It implements HTTP/2 Push
- It implements cache digests via Cookies. 

As of shimmercat.com, it is run on ShimmerCat + uWSGI and it has been so 
for more than six months now. 


On Tuesday, June 28, 2016 at 2:46:26 PM UTC+2, Bobby Mozumder wrote:
>
> Does anyone know of an http/2 server with server push capability that can 
> work with Django? 
>
> It looks like nginx supports http2 with uWSGI, but it doesn’t actually 
> support server push capability. 
>
> I also found the h2o server, but it doesn’t look like it supports uWSGI 
> yet.. 
>
> Any other options out there for http2 server push, preferably with 
> cache-aware server push? 
>
> (I’d set http “Link” headers in my app to direct server push.) 
>
> -bobby

-- 
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/187ecd14-e1de-48f7-bc85-7388ac4aaa33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Installation Advice - Win/PostgreSQL/Django

2016-06-02 Thread Rafael E. Ferrero
Where did you unzipped Django? (use pip command to install Django, and
please use venv, virtualenvwrapper o virtualenvironment)

Take a look of this https://docs.djangoproject.com/en/1.8/howto/windows/



Rafael E. Ferrero

2016-06-02 15:30 GMT-03:00 :

> Hi, folks,
>
> I have found a lot of Django installation checklists out there. Most are
> for very old versions. Others are rather vague, since they cover so many
> options. Still others assume that everything is hosted somewhere else. I
> have not yet been able to get the whole stack working in a local
> environment.
>
> Here's what I have done so far for my Windows development machine. If any
> of you could advise on how to get to the next steps, I would really
> appreciate it.
>
>
>- Working, stable installation of Windows 7 (x64)
>- Installed PostgreSQL 9.5.2
>- Created a schema
>   - Created some tables
>   - Imported some data
>   - So far so good
>- Installed Python 3.5.0
>- (Started with 3.6 but had to downgrade repeatedly to find a version
>   compatible with psycopg2)
>   - Win 64
>   - C:\> python -- version returns 3.5.0
>   - Again, so far so good
>- Installed psycopg2
>   - Version 2.6.1
>   - Win 64 (psycopg2-2.6.1.win-amd64-py3.5.exe)
>   - Seems to be installed correctly
>   - This is the latest version. (It seems to be a beta-test release.
>   It's a little hard to tell. However, it supports Python 3.5.)
>- Django 1.9.6
>- Downloaded and unzipped
>   - Didn't get any errors
>   - >>> import django
>   - No joy.
>- PIP
>- Whatever comes built into Python
>   - Not entirely sure what version
>   - Command line responds
>   - Not sure what to do with it
>
> Are there more layers to install? Do you see any obvious version issues?
> One thing I noticed is that my Windows PATH environment variable is very
> long. If any of these modules are appending to it, that may not be working.
> I could try weeding stuff out of my PATH, but that seems like a long shot.
>
> Thanks a million!
>
> --
> 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/296c0f10-2e6b-45cd-8407-2b78ec5ba716%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/296c0f10-2e6b-45cd-8407-2b78ec5ba716%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XWG6pRR28FR1%2B%2BK1K7RjPpJ7WhyzRTycgZ50W2s31aoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: DJANGO TUTORIAL

2016-03-22 Thread Rafael E. Ferrero
do you already have your site on setttings.py ?


Rafael E. Ferrero

2016-03-21 20:24 GMT-03:00 Anthony W Smith :

> When I follow django tutorial on the django site for the polls app I keep
> getting the error after runnig the python manage.py runserver command it
> says no modsule named my site.  Please help
> Anthony
>
> --
> 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/ac171014-6e1b-4a93-bf07-daa90f2d6475%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ac171014-6e1b-4a93-bf07-daa90f2d6475%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8WTBL3osKxSqCbOWnpxVzocSPaJd2J5cxp%2BzxFs%2BJJPag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Newbie - Tutorial Recommendations?

2016-03-19 Thread Rafael E. Ferrero
The main Django project website has an amazing good tutorial and
documentation for start.



Rafael E. Ferrero

2016-03-18 6:54 GMT-03:00 Santosh Srinivas :

> Hi Folks,
>
> I'm new to both Python and Django.
> I am looking for high quality video tutorials on Django and Python from
> your experience (paid is also fine).
>
> Please advise.
>
> Thank you.
> Santosh
>
> --
> 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/aedc789c-f8d7-4314-b52a-ccb764c56edb%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/aedc789c-f8d7-4314-b52a-ccb764c56edb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8U-S41fwJNDgLXquKy9UY4VTdA-XA5Yj%3DUW1meNmTQvJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Managing the Django Sqlite development db with respect to Git

2016-02-25 Thread Rafael E. Ferrero
I put my sqlite files into .gitignore.


Rafael E. Ferrero

2016-02-25 12:55 GMT-03:00 cortez :

> Hi,
>
> I'm using the out-of-the-box Sqlite database integration with my Django
> project, and I'm wondering how to manage it with respect to Git. Currently
> I have it checked in, but I suspect this isn't what I want to be doing.
> Also I have noticed that every time I log in to the admin interface and
> view a record Git tells me that the .db file has changed, even if I make no
> changes to the record itself... not sure what's going on there.
>
> So I want to add the database under my .gitignore, but I don't what the
> best practices are with respect to maintaining my project database outside
> of Git. I guess I could just dump it to JSON using dumpdata and check
> that in, but that still seems a bit cumbersome. Do people do that? I don't
> know what alternatives there are to that. Is there any kind of Django
> extension available for this?
>
> Any advice very much appreciated.
>
> C
>
> --
> 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/403b06ed-1a7b-4a9b-9534-ba011b615090%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/403b06ed-1a7b-4a9b-9534-ba011b615090%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XVMRL49HDdc2L9p6ATehjdcR90Cn--UHb6gyxATFyH4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Home Page

2016-02-24 Thread Rafael E. Ferrero
Malik, this is an example of a homepage in a site already in production.
Look this site www.python.org.ar, this homepage have the urls.py in this
github repository
<https://github.com/PyAr/pyarweb/blob/master/pyarweb/urls.py#L32> in line
32. You can find the view here
<https://github.com/PyAr/pyarweb/blob/master/community/views.py#L16> in
line 16

Hope you can find them useful to learn.

Regards!!



Rafael E. Ferrero

2016-02-24 16:57 GMT-03:00 Malik Rumi :

> > I'm not sure what you're looking for here. Designing a home page is not
> a django topic. Using django to deliver a homepage is the same as
> delivering any other page
>
> Please don't take offense, Bob, I appreciate you taking the time to
> respond. I could not disagree with you more. Every web site has a home
> page. And by definition, a home page is DIFFERENT from all other pages. But
> the docs say nothing about any of that. Search them for 'home page' and see
> what you get. Django sets you up with a series of apps which, taken
> together, form your project. But in which of these apps does the home page
> go? Does it matter? Why or why not? Should you make a separate app for the
> home page? If so, why don't they tell us to put it in the app that is
> created with startproject?
>
> >> where to put the url
>
> >I don't understand  what you mean by that. please explain
> I know that the url is r'^$. But if I knew what app to put it in, then I
> would know where to put this home page url. But what if the views and
> templates related to your home and other static pages (like About Us) have
> nothing to do with the views and templates of the rest of you project -
> aside, maybe, from the very basic common html?
>
> This is why people like jorrit787 and I struggle with the home page in
> Django, and why we would like a little guidance and some wisdom about best
> practices.
>
> >>And how to handle a complex home page with a lot of changing content -
> like on a newspaper, where Django was created?
>
> >Seems to me that's not a django issue.
> Again, with all due respect, I disagree. Why do we have filters like
> truncate? Isn't that so you can put a teaser on the home page and then link
> it to somewhere deeper in your site? Don't a lot of non-blog sites also
> have rapidly changing content? Member sites, fan sites, etc? Of course we
> can put an article on the home page, and the next day swap it out for a new
> one, but that's the most obvious way to do it. Is there a better way? What
> is the technology, coding, views, template set up and admin that best
> accommodate that kind of site? But we get no guidance on these things. And
> even if you think this is for designers and not developers, you have to
> remember that a lot of us are doing both, and even if we aren't, the
> designers and owners are going to ask us to put this together for them,
> aren't they?
>
> To the uninitiated, these are not small questions. And when you then try
> to configure your urls, it becomes an even bigger problem. And I think that
> the fact that you and other more experienced Django users don't see this as
> a problem is itself a problem.
>
> > And second, where (other than trial and error) do I find that kind of
> documentation / support?
> Trust me, I've googled this plenty, and the pickings are slim.
>
> On Tue, Feb 23, 2016 at 9:39 AM, Bob Gailer  wrote:
>
>>
>> On Feb 23, 2016 7:59 AM, "Malik Rumi"  wrote:
>> >
>> > Why is there so little information in the docs
>>
>> Documentation evolves. User input helps that process. Perhaps you can
>> make a contribution as you learn.
>>
>> about how to build a home page
>>
>> I'm not sure what you're looking for here. Designing a home page is not a
>> django topic. Using django to deliver a homepage is the same as delivering
>> any other page
>>
>> where to put the url
>>
>> I don't understand  what you mean by that. please explain
>>
>> whether or not to build a separate app around it, or why not to put it in
>> the folder with settings in it,
>>
>> If your home page is a portal to several apps then it seems to me you
>> would have an app for the home page
>>
>> And how to handle a complex home page with a lot of changing content -
>> like on a newspaper, where Django was created?
>>
>> Seems to me that's not a django issue.
>> >
>> > And second, where (other than trial and error) do I find that kind of
>> documentation / support?
>>
>> Google CMS?
>>
>> --
>> You received this messag

Re: tutorial?

2016-02-24 Thread Rafael E. Ferrero
look for django-rest-framework


Rafael E. Ferrero

2016-02-24 4:28 GMT-03:00 Mitesh Prajapati :

> I'm new to Django/Python world.
>
> I want references(book/tutorials) to learn "how to build REST APIs with
> Django" using ORM?
>
>
> Thanks in advance!
>
> --
> 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/52916436-1e95-4af0-9193-4455db9df0f2%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/52916436-1e95-4af0-9193-4455db9df0f2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UNqW4AZtDzn0XUePk_apksoTj1nNq4eFXd-jzPj_mQmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Scaling Django

2016-02-03 Thread Rafael E. Ferrero
Maybe I don't understand you very well, and for shure you have a very
specific problem to solve... but... do you read something of this?

http://blog.disqus.com/post/62187806135/scaling-django-to-8-billion-page-views
https://www.digitalocean.com/community/tutorials/how-to-scale-django-beyond-the-basics
https://highperformancedjango.com/
http://talks.caktusgroup.com/djangocon/2013/scaling/#slide17
https://docs.djangoproject.com/en/1.8/faq/general/#does-django-scale


Rafael E. Ferrero

2016-02-03 12:30 GMT-03:00 Joshua Pokotilow :

> At the startup where I work, we've written a lot of our server code in
> Django. So far, we've adopted a "build it fast" mentality, so we invested
> very little time in optimizing our code. A small amount of load testing has
> revealed our codebase / infrastructure as it stands today needs to run
> faster and support more users.
>
> We recently hired some new engineers who are extremely skeptical that we
> should optimize our existing code. Their main concerns are:
>
> - We need to move to a service-oriented infrastructure because Django is
> too monolithic (monolithic = technology lock-in & difficult to troubleshoot)
> - It's too easy to write slow queries using the Django ORM
> - It's hard to hire Django engineers
> - While Instagram and DISQUS use Django to service large numbers of
> people, they don't use it for any serious backend work
>
> After having worked with Django for the last 3 years, I'm a big believer
> in it, and I believe it would scale. To defend my position, I've pointed
> out to my colleagues that it's easy to identify bottlenecks with tools like
> the Django Debug Toolbar and Yet Another Django Profiler. With my
> colleagues present, I've isolated and fixed significant speed problems
> inside of a few hours. I don't believe the Django ORM is inherently bad,
> although I do think that coders who use it should Know What They're Doing.
> Finally, I've referenced blog entries that talk about how Instagram and
> Disqus use Django on the backend for backend-y tasks.
>
> Despite my best efforts, my colleagues are still pushing to have us
> rewrite large portions of our infrastructure as separate services before we
> try to fix them. For example, we have one slow REST endpoint that returns a
> boatload of user data, and so there's talk about using a new microservice
> for users in lieu of our existing Django models. Even if we are able to fix
> bottlenecks we encounter in a timely fashion, my colleagues fear that
> Django won't scale with the business.
>
> I'm writing this post to garner additional evidence that Django will
> scale. Anything compelling (and preferably not obvious) that would help
> shed some light on Django's ability to scale would be *greatly*
> appreciated, as it's very difficult for me to defend my position that
> Django is a viable long-term solution without solid evidence to back up my
> claims. It certainly doesn't help that I don't have any experience scaling
> Django myself!
>
> 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/83968c41-d415-4189-b33b-9f99b10b1c41%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/83968c41-d415-4189-b33b-9f99b10b1c41%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8Un4amXafG61xzt%2BbwY3bu4jOQ5LY-5MsxcXRMVm6Apvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Provide me Links to learn django framework on Linux

2016-02-03 Thread Rafael E. Ferrero
For Python
https://www.codecademy.com/learn/python
https://www.hackerrank.com/domains/python/py-introduction

For Django
https://docs.djangoproject.com/en/1.9/



Rafael E. Ferrero

2016-02-03 8:30 GMT-03:00 Ajay Sharma :

> Hi everyone on the Group.
>
> I want resources and web links, where i can learn  Django Framework On
> Linux platform as I
>
> am using Ubuntu for the development.
>
> Please help me .
>
> thank you to every one in Advance.
>
> From Ajay .  :)
>
> --
> 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/4386ebcc-6ebd-4689-9f0b-a4496edaa41b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4386ebcc-6ebd-4689-9f0b-a4496edaa41b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XSoLXCVpumKfE%2BpxJ7XuG2PDp1Jn0VwOZbko04TygZzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django opportunity at UCL in Belgium

2016-02-02 Thread Rafael E. Ferrero
Too bad that this isn't for an Remote Work :'(

Rafael E. Ferrero

2016-02-02 18:15 GMT-03:00 Hildeberto Mendonça :

> For those living in Belgium,
>
> we are hiring a Django developer to work full time on open source projects
> on GitHub for at least one year, extensible to another year.
>
>
> https://career012.successfactors.eu/career?career_ns=job_listing&company=UCLouvain&navBarLevel=JOB_SEARCH&rcm_site_locale=fr_FR&site=VjItRG9OVktVYS9CQ3J3RmtmaHoxaFpSQT09&career_job_req_id=8462&selected_lang=fr_FR&jobAlertController_jobAlertId=&jobAlertController_jobAlertName=&_s.crb=RsMtA5kFJEM3fKAeD0%2fKa5NIeyY%3d
>
> I don't know about remuneration because it depends on your experience, but
> you can ask me about anything else.
>
> Thanks
>
> --
> Hildeberto Mendonça, Ph.D
> Blog: http://www.hildeberto.com
> Twitter: https://twitter.com/htmfilho
>
> --
> 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/CAJ9t6qPcfgw%3DNk0%3D7TTkw8y%3Dy-7GidNgU6iKBr9mQ3RJK2k%3DZw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJ9t6qPcfgw%3DNk0%3D7TTkw8y%3Dy-7GidNgU6iKBr9mQ3RJK2k%3DZw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XayQcEYHX3zRgLO2OBfu7hDormcqPRQwMjV2VbSOT11Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using Django Smart Selects to populate a dropdown menu within a form

2016-01-29 Thread Rafael E. Ferrero
you must to use Ajax to populate the second dropdown


Rafael E. Ferrero

2016-01-29 14:08 GMT-03:00 Andrea Pinna :

> Dear all,
>
> I'm very unexperienced with Django but at the same time I'm trying hard to
> learn as much as possible.
>
> In my website I have a form with two dropdown menus, and I'd like to make
> the second (items) dependent by the first (categories).
>
> As an example, in the first dropdown the possible choices are FRUITS and
> VEGETABLES.
> When the user selects FRUITS, I'd like the second dropdown to show only
> ORANGE, APPLE, PEAR, etc.
> Else, when the user selects VEGETABLES, I'd like the second dropdown to
> show only LETTUCE, CABBAGE, CARROT, etc
>
> My current code follows (I kept it simple): the form shows two independent
> dropdown menus.
>
> Unfortunately I've not been able to adjust it as requested by
> django-smart-selects, e.g. by correctly modifying the Item model and the
> forms.py file.
>
> Could anyone help me, please?
>
> *
>
> The choices are stored in a MySQL database in two tables:
>
>
> *Types*ID Name
> 1  FRUIT
> 2  VEGETABLE
>
> *Items*
> ID  Type_ID Name
> 1   1   Orange
> 2   1   Apple
> 3   1   Pear
> 4   2   Lettuce
> 5   2   Cabbage
> 6   2   Carrot
>
> Each item is therefore associated to a unique type (fruit or vegetable).
>
> *
>
> My *models.py* consists of:
>
> from django.db import models
> from smart_selects.db_fields import ChainedForeignKey
>
> class Type(models.Model):
> name = models.CharField(max_length=20)
>
> class Item(models.Model):
> name = models.CharField(max_length=20)
> type = models.ForeignKey(Type, on_delete=models.CASCADE)
>
>
> *
>
> My *forms.py* is:
>
> from django import forms
> from .models import Type, Item
>
> class SelectForm(forms.Form):
> q = Type.objects.all()
> qf = forms.ModelChoiceField(queryset = q, empty_label = None)
> s = Item.objects.all()
> sf = forms.ModelChoiceField(queryset = s, empty_label = None)
>
>
> *
>
> My *views.py* is:
>
> from django.shortcuts import render
> from .forms import SelectForm
>
> def index(request):
>
> form = SelectForm()
> context = {'f': form}
> return render(request, 'selects/test.html', context)
>
>
> *
>
> Finally, my template is:
>
> 
> 
> Select data
> 
> 
> 
> {{f.as_p}}
> 
> 
> 
> 
>
> --
> 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/e8641d09-8c04-4b70-bd64-f13cfab50ae7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e8641d09-8c04-4b70-bd64-f13cfab50ae7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UbCeyLWLqHT4aUKpPFcV2abUSHBR14EgFCkqkvT5U-Mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Animate.css on django

2016-01-29 Thread Rafael E. Ferrero
See readme.md for help how you can use it
https://github.com/daneden/animate.css (all this stuff must stay in your
template file)



Rafael E. Ferrero

2016-01-29 8:47 GMT-03:00 Xristos Xristoou :

> yeah but how to connect with my post titles ?
>
> Τη Παρασκευή, 29 Ιανουαρίου 2016 - 12:53:02 μ.μ. UTC+2, ο χρήστης Xristos
> Xristoou έγραψε:
>>
>> hello
>>
>>
>> has work somebody with this animate.css
>> <https://daneden.github.io/animate.css/> ?and somebody can
>> to explanation how to use this
>> on my title from my post details ?
>>
> --
> 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/4f7a6ff0-7487-498f-8d53-bf8fa03aac51%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4f7a6ff0-7487-498f-8d53-bf8fa03aac51%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8USN4gVHhPkBNhhboKHA2octQqz8LQCO6MNVSgu%2Bd5GGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to install Django on Windows article

2016-01-29 Thread Rafael E. Ferrero
Never occur to me in Win8.1 ... why not install VirtualBox with an Ubuntu
or other flavor of linux ? (if you need your windows)
It's more easy for django and... it's recommended.

Cheers !!


Rafael E. Ferrero

2016-01-29 3:17 GMT-03:00 Руслан Ломагин :

> Hello, i have some issues that is occured while i was installing Django on
> my Windows 10.
> I'm new in using Django framework and also python on windows.
>
> To the article:
>
> Install Python
>
> I installed python as it was said:
>
> Downloaded python 3.5.1 for windows.
> Installed using option: create system variable.
> Checked version.
>
> Install virtualenv and virtualenvwrapper¶
> <https://docs.djangoproject.com/en/1.9/howto/windows/#install-virtualenv-and-virtualenvwrapper>
>
> Then i tried to instal virtualenv and virtualenvwrapper as it is said:
>
> pip install virtualenvwrapper-win
>
> but the command freezes (or hangs) widows command prompt.
>
> After some search i found "python -m pip install virtualenv" and "python -m 
> pip install virtualenvwrapper" that worked well.
>
>
> And now i'm stuck.
>
> mkvirtualenv myproject is not working.
>
>
> As i investigated: mkvirtualenv is a batch file, that executes virtualenv.exe 
> in python's Script folder.
> This executable file hangs my command prompt, every time i type mkvirtualenv 
> myproject or executing "virtualenv.exe myproject" directly.
>
>
> I don't know what to do, but what i do know - those pip.exe, virtualenv.exe 
> and other .exe files in %PYTHONHOME%\Scripts are hanging my commandprompt.
>
> If Anyone has any ideas with my problem, please help me.
>
> --
> 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/b86b3abf-7c66-414b-9bff-691a54868d88%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b86b3abf-7c66-414b-9bff-691a54868d88%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8X-FSzetbzvx4M%2BK6pbwDHe%2B4_u6%3DL2BPZqpckGvFU9LA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Animate.css on django

2016-01-29 Thread Rafael E. Ferrero
It's only css... include this in your template!


Rafael E. Ferrero

2016-01-29 7:53 GMT-03:00 Xristos Xristoou :

> hello
>
>
> has work somebody with this animate.css
> <https://daneden.github.io/animate.css/> ?and somebody can to explanation
> how to use this
> on my title from my post details ?
>
> --
> 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/29a12ab2-12ac-4343-9c6e-3ea5496407e7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/29a12ab2-12ac-4343-9c6e-3ea5496407e7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8W_ru3OGJXFhX66c4sUj7gTbtEmJ-1%2B9ExeEj1-iwxzdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reverse Foriegnkey filtering

2016-01-27 Thread Rafael E. Ferrero
why not filter model2 with select_related ?? (you already try to put a
related_name in the foreignkey of model2?)

cheers!

Rafael E. Ferrero

2016-01-27 8:58 GMT-03:00 Jonty Needham :

> I've found a need to do this and I'm struggling. Some info seems to
> indicate that django doesn't support this. How is it meant to be done?
>
> Basically to be clear, I need to filter one queryset on a reverse
> foriegnkey relation to another set of objects defined by a particualr
> filter.
>
> model1(Models.model):
> stuff = charfield
>
> model2(Models.model):
> cow = Foreignkey(model1)
> country = charfield
>
>
> Problem: filter set of model1's by a particular country that's related to
> model1 through model2
>
> --
> 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/CANOQRbw40C9NTiwLc_c3cT9BWLj_nDKnk76KSb1U57w0VXq_ag%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANOQRbw40C9NTiwLc_c3cT9BWLj_nDKnk76KSb1U57w0VXq_ag%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UETZdT5tmdKzrJ%3DCWXnZH7jfss9tVsPkGriLjTXXKkgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ImportError: no module named polls

2016-01-25 Thread Rafael E. Ferrero
if its a blank project you don't have a polls app yet,so... why you put
your polls app there?


Rafael E. Ferrero

2016-01-25 16:14 GMT-03:00 moon jo :

> Using django 1.6.10
> I finished the polls tutorial and tried to create my own project.
> I tried to runserver and it gives me the import error. But it's a blank
> project, haven't added anything in the settings.
> When I do import settings form django.conf and print
> settings.INSTALLED_APPS, it prints this:
>
> ('django.contrib.auth', 'django.contrib.contenttypes',
> 'django.contrib.sessions', 'django.contrib.sites',
> 'django.contrib.messages', 'django.contrib.staticfiles',
> 'django.contrib.admin', 'polls')
>
> Where is that 'polls' coming from? Every project I create, I get the same
> error, they're looking for the 'polls' app.
>
> --
> 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/df91e3ff-aa9e-424a-9db2-f8d7091003a3%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/df91e3ff-aa9e-424a-9db2-f8d7091003a3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8W8nvOFKogPWfWOwVrZ0HRP7WDOqdGug4gp5EMaBxMcxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Code organisation

2016-01-22 Thread Rafael E. Ferrero
Maybe you find useful make your project into a reusable app look at this
https://docs.djangoproject.com/en/1.9/intro/reusable-apps/

Cheers !!


Rafael E. Ferrero

2016-01-22 11:30 GMT-03:00 Benjamin Melki :

> Hello,
>
> i’m building my first site with this great framework and language that are
> Django and Python.
> I try as much as possible to favor code reuse.
>
> On one of my model, I do some work with the instance before saving it.
> Works is mostly image related: resizing image, compressing, saving thumbs,
> and a couple more stuff.
>
> I will need this behavior in almost all the projects that I will building,
> and even some other apps in the same project will need this feature: the
> blog, the comments, the directory…..
>
> In this case, where to put this code ? What do guys and gals do usually in
> this situation ?
> Do you just put it in a custom (non app) folder like ‘my_utilities’ ?
>
> Advices welcome.
>
> Thanks,
> Benj
>
> --
> 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/4319BF33-90C3-47E5-B068-B2DAADFC4FE0%40gmail.com
> <https://groups.google.com/d/msgid/django-users/4319BF33-90C3-47E5-B068-B2DAADFC4FE0%40gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XSU9xXDMG65fw91iOzQ9rnTf65WjjKm5nB_2r2gOY88A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django project exe

2016-01-22 Thread Rafael E. Ferrero
Do you already  read this ?
http://stackoverflow.com/questions/1317899/django-projects-as-desktop-applications-how-to


Rafael E. Ferrero

2016-01-22 10:06 GMT-03:00 Carlos Andre :

> It is a good idea even, except I already did with nginx, did not create a
> file of those you mentioned going to do, the problem is that my client is a
> layman and I would like this program to be executed as well as others he
> knows. But for security, I would like another way, only to have another
> path!
>
> 2016-01-22 10:53 GMT-02:00 Rafael E. Ferrero :
>
>> Carlos, and why not install nginx or something in localhost? maybe you
>> can do a little app to start or stop the service to connect or disconnect
>> your application.
>>
>> if is only one machine you can do, it's not recommended, start and stop
>> the buildin django server with your little .exe
>>
>>
>>
>> Rafael E. Ferrero
>>
>> 2016-01-22 9:34 GMT-03:00 Carlos Andre :
>>
>>> Hi to all, i want do my project in django, run as exe in localhost. The
>>> motivation, the client who want this!
>>> Thanks to all!
>>>
>>> --
>>> 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/CAA8yBMynYn1o_dL3YeGzt8OBSMefQk_EvPKM_kiE%3D7b63tL03w%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAA8yBMynYn1o_dL3YeGzt8OBSMefQk_EvPKM_kiE%3D7b63tL03w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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/CAJJc_8UqNSo0TWuV3Ou7DOrx05OTMC63B5JT_LiYHwpvvdLFSw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJJc_8UqNSo0TWuV3Ou7DOrx05OTMC63B5JT_LiYHwpvvdLFSw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> 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/CAA8yBMwVydT_p-z95e49qiij9JQ8hC8hgsL17M1vhMaGuJL9Jg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAA8yBMwVydT_p-z95e49qiij9JQ8hC8hgsL17M1vhMaGuJL9Jg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8Xqj9H9CbuQzOoSM6Qb3wfDwtRiWVMqo1sXUb5XWX-XEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django project exe

2016-01-22 Thread Rafael E. Ferrero
Carlos, and why not install nginx or something in localhost? maybe you can
do a little app to start or stop the service to connect or disconnect your
application.

if is only one machine you can do, it's not recommended, start and stop the
buildin django server with your little .exe



Rafael E. Ferrero

2016-01-22 9:34 GMT-03:00 Carlos Andre :

> Hi to all, i want do my project in django, run as exe in localhost. The
> motivation, the client who want this!
> Thanks to all!
>
> --
> 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/CAA8yBMynYn1o_dL3YeGzt8OBSMefQk_EvPKM_kiE%3D7b63tL03w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAA8yBMynYn1o_dL3YeGzt8OBSMefQk_EvPKM_kiE%3D7b63tL03w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UqNSo0TWuV3Ou7DOrx05OTMC63B5JT_LiYHwpvvdLFSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Admin

2016-01-18 Thread Rafael E. Ferrero
Thanks Andrea I'm gonna investigate this !!!


Rafael E. Ferrero

2016-01-18 9:02 GMT-03:00 Andreas Kuhne :

> Hi Rafael,
>
> I would use a plugin for django admin that creates an autocomplete field
> (django-selectable works). Then when the user chooses something in the
> autocomplete list, I would populate the other fields via ajax with the
> values that you need. That way you don'ẗ need a foreign key field (even
> though you could have it until the product is deleted) and you would get
> the functionality that you need.
>
> Regards,
>
> Andréas
>
> 2016-01-18 12:54 GMT+01:00 Rafael E. Ferrero :
>
>> Hello everybody,
>>
>> I'm gonna try to express my use case and hope you can help me to achieve
>> this objective because i can't figure it out how i can resolve it.
>>
>> 1) I have a model of Products, with a lot of data for description, and
>> other stuff.
>> (Let me say, ID, Short Description, Long Description,Minimun Amount Of
>> Products Per Sale, Cost Price, Sale Price,
>> 2) Then I have an other table (you can call it Sales), in this i need to
>> save data of Products (Descriptions, Measure of units, and other specific
>> data of my project)
>> (Let me say, ID, Short Description, Long Description, Sale Price, Date of
>> Sale, Number of Document, etc.) where Short and Long Description, and Sale
>> Price it's from Products model.
>>
>> The Sales model DO NOT have to be related to Products with a Foreign key
>> because we use Sales as Historic model too. So i need to take the data from
>> Products and save it in Sales. So, I think that I can rewrite the method
>> "save" in Sales model.
>>
>> But... In the Admin Site, in the Sales form, I need a dropdown box of
>> Products and when i choose one of them I need to populate the needed data
>> in the fields of the Sales form, where the user can (If he wish), for
>> example, add more text to Long Description field.
>>
>> How I can put data of Products in the fields of Sales form without any
>> relationship to Products, and how i can populate the fields based on the
>> selected product??
>>
>> Thanks in advance !!
>>
>> Rafael E. Ferrero
>>
>> --
>> 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/CAJJc_8VScv11s-cwRE%2BCFXn2oH-29KL12iUk-%2BJHzD6A3TgVhw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJJc_8VScv11s-cwRE%2BCFXn2oH-29KL12iUk-%2BJHzD6A3TgVhw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> 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/CALXYUb%3D3iBKz_m%3DKjcAru78rTDDG%2BFKuEqhoq6W0AURViNTJPQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALXYUb%3D3iBKz_m%3DKjcAru78rTDDG%2BFKuEqhoq6W0AURViNTJPQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UXUkMjASpygc77Ja99LyGGyP8TDD6GEkqKRRJ4MUO0jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django Admin

2016-01-18 Thread Rafael E. Ferrero
Hello everybody,

I'm gonna try to express my use case and hope you can help me to achieve
this objective because i can't figure it out how i can resolve it.

1) I have a model of Products, with a lot of data for description, and
other stuff.
(Let me say, ID, Short Description, Long Description,Minimun Amount Of
Products Per Sale, Cost Price, Sale Price,
2) Then I have an other table (you can call it Sales), in this i need to
save data of Products (Descriptions, Measure of units, and other specific
data of my project)
(Let me say, ID, Short Description, Long Description, Sale Price, Date of
Sale, Number of Document, etc.) where Short and Long Description, and Sale
Price it's from Products model.

The Sales model DO NOT have to be related to Products with a Foreign key
because we use Sales as Historic model too. So i need to take the data from
Products and save it in Sales. So, I think that I can rewrite the method
"save" in Sales model.

But... In the Admin Site, in the Sales form, I need a dropdown box of
Products and when i choose one of them I need to populate the needed data
in the fields of the Sales form, where the user can (If he wish), for
example, add more text to Long Description field.

How I can put data of Products in the fields of Sales form without any
relationship to Products, and how i can populate the fields based on the
selected product??

Thanks in advance !!

Rafael E. Ferrero

-- 
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/CAJJc_8VScv11s-cwRE%2BCFXn2oH-29KL12iUk-%2BJHzD6A3TgVhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django - Upload Image to the server with dimension

2015-12-29 Thread Rafael E. Ferrero
Hello Lekan, First of anything try to start a new e-mail for new
questions... because yours don't have any relations with the root question.
And try to tell uss if you know Django, if you readed Django Docs. Tell us
more about your idea.

Happy 2016 for you !!

--
Rafael E. Ferrero

2015-12-29 9:31 GMT-03:00 Lekan Wahab :

> Hello Guys.
> I have a website and am trying to build a rating system for the site.
> The system takes in user's rating and rewards them at the end of the month
> according to their ratings.
> I honestly dont know where to begin.
> i have searched for some things online but i still need help
>
>
> On Tue, Dec 29, 2015 at 12:35 PM, monoBOT  wrote:
>
>> Take a look at this:
>>
>> http://djangothumbnails.com/
>>
>> 2015-12-29 7:12 GMT+00:00 ken phanith :
>>
>>> I simply use ImageField from PIL package for Django Image Upload but it
>>> does not satisfy me at all. I have a models class which contain many fields
>>> including ImageField also. I am trying to upload 10 images to the server
>>> but those images have the different dimension. I want to upload those image
>>> to the server but with same dimension (700*400) as the example.
>>> Actually, I want to do that by using Django but I don't have any idea on
>>> how to do that. Does anyone have any ideas on how to do that? Please help
>>> me.
>>> Thank you very much.
>>> --
>>> 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/e12e269f-8ca6-48f6-ad6f-722b84e3ef2c%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/e12e269f-8ca6-48f6-ad6f-722b84e3ef2c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> *monoBOT*
>> Visite mi sitio(Visit my site): monobotsoft.es/blog/
>> --
>> 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%2BxOsGCCEBX3mYcuO25jkDQz1e2iZN5aRzoS_fxtfn27WEu9AA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BxOsGCCEBX3mYcuO25jkDQz1e2iZN5aRzoS_fxtfn27WEu9AA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> 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/CAE6v7ofQp7vGto3SzDHTG27Ei-dR05_Mu3y3shSPZ9ehfj2AgQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE6v7ofQp7vGto3SzDHTG27Ei-dR05_Mu3y3shSPZ9ehfj2AgQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8VVorFHo9ssS0h%2Bn5KjKnpkskf9roSC2ttU_0TwWsUJfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Don't run python manage.py syncdb

2015-10-09 Thread Rafael E. Ferrero
i think that u need to set 'myApp' in INSTALLED_APPS

something like:

> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'myApp'


--
Rafael E. Ferrero

2015-10-09 16:39 GMT-03:00 Faffafa Trtrtrtrt :

> I create question in
> http://stackoverflow.com/questions/32999054/dont-run-python-manage-py-syncdb.
> Any one can answer it?
>
> --
> 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/d1334ecc-3070-4968-b81f-ab1942841c8c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d1334ecc-3070-4968-b81f-ab1942841c8c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UAL%2B%2BYSCNUwXJ4C_nJhwsmVrd5XYFfmJ8Wrk8p5AH_QA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: virtualenv best practice / source control

2015-10-01 Thread Rafael E. Ferrero
this is for Django 1.6 but you can use it anyway

http://www.jeffknupp.com/blog/2013/12/18/starting-a-django-16-project-the-right-way/


--
Rafael E. Ferrero

2015-10-01 9:11 GMT-03:00 junk :

> Greetings wise django users,
>
> Can someone provide a link or description of how to use
> virtualenv/django/source-control all at the same time?
>
> I thought I would put my virtualenv code, and django, and a starter
> project in source control.  That was a fail - when the directories moved,
> nothing worked.
>
> I changed some paths & symbolic links, and got some things working, but
> not everything.
>
> Thanks everyone.
>
> Regards,
> Jody
>
> --
> This account is used for situtations where I believe SPAM may be sent to me.
>
> --
> 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/560D22F7.1020203%40cypressriverservices.com
> <https://groups.google.com/d/msgid/django-users/560D22F7.1020203%40cypressriverservices.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XvcLX%2BuRtSAkyuW1OVk3qcN66_XtRbDgL_8TTmPxBWLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django was present in FSD in Costa Rica

2015-09-21 Thread Rafael E. Ferrero
BUENÍSIMO LUIS!!! EXCELENTE INICIATIVA!!!

Muchos exitos para tí y para Django en Costa Rica

Saludos, Rafael Ferrero (desde Argentina)

--
Rafael E. Ferrero

2015-09-21 17:21 GMT-03:00 Luis Zárate :

> Hello everyone.
>
> The past week was the Free software day here in Costa Rica (Yes, It was a
> week of FSD's because it was in different days in different cities), we had
> 5 different events for this day in different cities. As part of our effort
> for introduce Django in this country I imparted two lectures in this
> events, the title was "Django: El framework web para perfeccionistas con
> poco tiempo" (my translation of Django:The web framework for perfectionists
> with deadlines.).
> I am really happy because this lectures had many expectations and I saw
> many people interested in Django after those lecture.
> I just want to share this information with you because I am documenting
> what is happening here.
>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
> --
> 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/CAG%2B5VyNEt17Z0ccWyvLnbaeK%3DTaX-4A0HBuF5K8uQG2Je4GTVA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAG%2B5VyNEt17Z0ccWyvLnbaeK%3DTaX-4A0HBuF5K8uQG2Je4GTVA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UxuW3rsA6UhTU5kq0faf%3DP0DqHbSqZxPyVMQ%2BCPLxTDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django authentication using phone number

2015-09-17 Thread Rafael E. Ferrero
https://docs.djangoproject.com/en/1.8/topics/auth/customizing/

--
Rafael E. Ferrero

2015-09-17 2:31 GMT-03:00 Ravi Chityala :

> I am looking for an django app to do authentication and authorization
> using phone number. Apps like django-registration can use email address or
> user name for authentication but my requirements are different. I used all
> my googlefu but could not find a single django app that does it. Does
> anybody have any idea?  The functionality I am looking for are listed below
>
> TL;DR - Need a django app where phone number is the user name. Password is
> created by django and text message is sent to user. Need to create a django
> user object when logging.
>
> Complete detail:
>
>1. The user enters name, phone number and few other details. A text
>message needs to be sent using Twilio with a 5 digit randomly generated
>code.  The code needs to be hashed and stored in the database. The message
>sending can be abstracted, so that other services can also be used.
>2. The user will use the code to login. The hashed version of the
>entered code is compared to the one stored in the database. If they match,
>the user will be allowed to login.
>3. If the user wants to reset the code, a new code needs to be
>generated and sent. The new code will be hashed and stored in the database.
>4. When the user is authenticated, a user object needs to be created,
>so that I can use the request.user object for authorization.
>5. This authentication mechanism preferably should work with
>django-rest-framework or tasty pie.
>
> --
> 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/69314e3c-9215-4e94-87a9-044568e96f0c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/69314e3c-9215-4e94-87a9-044568e96f0c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8VLWrUP6ys_nd-68tw%3Dorkyieg-Fws8X2fOjjMmqSMq6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django for data management in a no-UI application?

2015-09-02 Thread Rafael E. Ferrero
I don't quite understand very well your use case, but, i think that you can
go with REST, maybe?? [http://www.django-rest-framework.org/]

--
Rafael E. Ferrero

2015-09-02 16:20 GMT-03:00 :

> I'm designing a program which was originally meant to be a server
> application, and I planned to write it with Django. I haven't used Django
> before, so I've been reading about it to help me think about the design.
>
> Now there has been a change in direction. I'm being asked to develop the
> program as a no-UI service. A browser-based user interface will be added
> later.
>
> However, the program will make extensive use of a SQL database. I'd like
> to use Django's data management features from the start, so that when the
> GUI is added I won't have to choose between rewriting the data management
> and leaving it outside the Django framework.
>
> None of the tutorial material I've read addresses this case, where Django
> is used for data management but there is no UI. Will I have any problems
> developing a program this way?
>
> --
> 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/c9e96c5a-689f-4b20-bd9d-c23fc34e844d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c9e96c5a-689f-4b20-bd9d-c23fc34e844d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8U8_ZAP3MGADz6T1jDxmm%3DoDTKoAc-hYTqfLRpx-PyzJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to add fields to an existing model dynamically? Also how to modify existing field of a model dynamically?

2015-07-30 Thread Rafael E. Ferrero
IMHO (maybe i'm wrong) i think that its not quite good modify your database
structure dynamically to often, maybe you must to think a better design of
your model.
I'm working on a Health bussiness in Argentina and never need to change the
database structure to modify a medical form. (for now)


Now, for your exclusive problem, maybe using south (just like the project
you say) you can do the changes to your database dinamically.

Regards!

--
Rafael E. Ferrero

2015-07-30 5:01 GMT-03:00 SriPrad :

> Hi,
> I am new to Django and Python!.
> I am using Django 1.8.3 along with Python 3.2 and using sqlite as the
> database.
> I am trying to setup a site using Django wherein the model is created
> dynamically( For eg: a Medical form)
> The fields of the form are stored in db and the model created dynamically
> (reference: https://github.com/willhardy/dynamic-models)
> The admin guys can modify the fields of this medical form from the admin
> site. At this time, I would like to modify the model to match the schema
> modifications done by admin guys.
> I understand prior  to Django 1.7, there was django.db.models.loading
> module that helped in this.
>
> With the current version of Django, how can I add/modify/delete the fields
> of the dynamic model *dynamically*?
>
> Your help and suggestions are most welcome.
>
> Regards,
> Srinivasa Pradeep
>
> --
> 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/6a62db2f-5dd7-417c-9d6b-fbbed6b5a149%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6a62db2f-5dd7-417c-9d6b-fbbed6b5a149%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8VQ6WgvmN5sr%3DFLpge%2B7MujOGqk9TC5%3DSQhRerkkv%2Bgaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Models and relationships

2015-07-07 Thread Rafael E. Ferrero
Nice!! Chris good work !!

--
Rafael E. Ferrero

2015-07-06 20:15 GMT-03:00 Chris Strasser :

> WOO HOO !.. success ... thanks everyone...
>  just needed a nudge in the right direction  I will tackle the
> templates tomorrow and see where that takes me.
>
> On Mon, Jul 6, 2015 at 2:24 PM, Rafael E. Ferrero <
> rafael.ferr...@gmail.com> wrote:
>
>> contacts = Contacts.objects.select_related()
>>
>> --
>> Rafael E. Ferrero
>>
>> 2015-07-06 13:51 GMT-03:00 Florian Schweikert :
>>
>>> On 06/07/15 14:04, Chris Strasser wrote:
>>> > my problem is with reverse lookups (i think it is called) the docs say
>>> that i can access entries through blog.entry,(by lowercaseing the class)
>>> > it appears to me that i have the same setup with contact and location
>>> but i am getting errors ??
>>>
>>> I think you forgot about "_set".
>>> Try something like:
>>>
>>> Location.contact_set.all()
>>>
>>> And please don't use AutoField, db_column and primary_key until you have
>>> a good reason. Also ForeignKey fetches an object of the connected type,
>>> not an id, so "contactid", ... is confusing ;)
>>>
>>> --
>>> Florian
>>>
>>> --
>>> 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/559AB201.40600%40ist-total.org
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/YYM-cTEZOgA/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CAJJc_8Vn72yWdFwUEFXRXD_4yOhD%2Bzx7n%3D0T189AsfGFU1n7Yg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJJc_8Vn72yWdFwUEFXRXD_4yOhD%2Bzx7n%3D0T189AsfGFU1n7Yg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> 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/CAH3cd3qiW0vKX_TxpmjuY5ZfVaVG2BPM1DK%2Byjt8Raw7-PrU0A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAH3cd3qiW0vKX_TxpmjuY5ZfVaVG2BPM1DK%2Byjt8Raw7-PrU0A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8V2V_22hz5s5k7ww7LEpfk6i%3D%2BjS6Vm%3DR%2Brnt5PpatQ4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Models and relationships

2015-07-06 Thread Rafael E. Ferrero
contacts = Contacts.objects.select_related()

--
Rafael E. Ferrero

2015-07-06 13:51 GMT-03:00 Florian Schweikert :

> On 06/07/15 14:04, Chris Strasser wrote:
> > my problem is with reverse lookups (i think it is called) the docs say
> that i can access entries through blog.entry,(by lowercaseing the class)
> > it appears to me that i have the same setup with contact and location
> but i am getting errors ??
>
> I think you forgot about "_set".
> Try something like:
>
> Location.contact_set.all()
>
> And please don't use AutoField, db_column and primary_key until you have
> a good reason. Also ForeignKey fetches an object of the connected type,
> not an id, so "contactid", ... is confusing ;)
>
> --
> Florian
>
> --
> 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/559AB201.40600%40ist-total.org
> .
> 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/CAJJc_8Vn72yWdFwUEFXRXD_4yOhD%2Bzx7n%3D0T189AsfGFU1n7Yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Models and relationships

2015-07-06 Thread Rafael E. Ferrero
For start you don't need to specify the primary key (orgid for example) [1]
In foreingkeys you need to use related names [2]

In views use select_related() [3]

[1] https://docs.djangoproject.com/en/1.8/ref/models/fields/#primary-key
[2] https://docs.djangoproject.com/en/1.8/ref/models/fields/#foreignkey
[3]
https://docs.djangoproject.com/en/1.8/ref/models/querysets/#select-related
--
Rafael E. Ferrero

2015-07-06 9:04 GMT-03:00 Chris Strasser :

> Hi ,I am fairly new to Django and am struggling with models hope someone can 
> sort me out.
>
>
> Models:
> class Organization(models.Model):  #customer or vendor person or company
> orgid = models.AutoField(db_column='OrgID', primary_key=True)
> is_company = models.NullBooleanField(db_column='IsCompany', default =True)
> organizationname = models.CharField(db_column='OrgName', 
> max_length=75,blank=True, null=True)
> main_phone = models.CharField(db_column='MainPhone',max_length=20, 
> blank=True, null=True)
> ...
> ...
>
> class Location(models.Model):
> locationid = models.AutoField(db_column='LocationID', primary_key=True)
> orgid = models.ForeignKey(Organization, db_column='OrgID')
> locationname = models.CharField(db_column='LocationName', max_length=75, 
> null=True)
> address1 = models.CharField(db_column='Address1', max_length=200, 
> blank=True, null=True)
> ...
> ...
>
>  class Contact(models.Model):
> contactid = models.AutoField(db_column='ContactID', primary_key=True)
> locationid = models.ForeignKey(Location, db_column='LocationID')
> firstname = models.CharField(db_column='FirstName', 
> max_length=50,blank=True, null=True)
> lastname = models.CharField(db_column='LastName', 
> max_length=50,blank=True, null=True)
> ...
> ...
>
> my problem is with reverse lookups (i think it is called) the docs say that i 
> can access entries through blog.entry,(by lowercaseing the class)
> it appears to me that i have the same setup with contact and location but i 
> am getting errors ??
>
>
> what I am trying to do is access a contacts address and organization at both 
> the views level and the templates.(I would like to create a
> list of contacts, their company and their address ordered by contact name)
>
> if someone would point me in the right direction it would be greatly 
> appreciated.
>
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8abd757c-cd28-4c2f-82c9-ecd8c60dff4d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/8abd757c-cd28-4c2f-82c9-ecd8c60dff4d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XiTUaeXBwCwKuqO8L7gnX8muqWd7pjGchT0C_FnDVCQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Desarrollador Python/Django

2015-06-11 Thread Rafael E. Ferrero
Hello Isabel. I see that the position it's in Sevilla, spain?
Are you searching for Remote work or On Site work?

Remember that this is an International mailing list so it's better if you
can specify this.

Cheers!!

--
Rafael E. Ferrero

2015-06-11 9:56 GMT-03:00 Isabel Romero Casado :

> http://www.emergya.es/ofertas/desarrollador-senior-pythondjango
>
> --
> 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/a861b07d-1e7b-44c7-94b0-d76e0499fa06%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a861b07d-1e7b-44c7-94b0-d76e0499fa06%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8Vvdiga9kNRmNZXQfyy8YPViC4uMZXyojHecAJsP7urJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Graph theory ??

2015-06-02 Thread Rafael E. Ferrero
Thanks Erik, Defining custom actions its what i try to do!! because, the
user can add some custom type of Action and he need to specify what to do
with.

With this, the user can perform his own graph and rules to control the
vertex.

For example, a Contact of the business can be a Provider or a Customer for
the business and, also, can be a Person or another Company but if is a
Company he can't be a Person... if is a Contact, and a Provider and a
Person he could be a Medic, but if is a Medic he can't be treated like a
simple Provider...
So, Contact, Provider, Customer, Person, Medic are the vertex and you need
actions to control the automation of the graph, and the actions can be
change from one implementation another.

Like you say, maybe usind DSL and AST i can execute custom actions using
Signal

THANKS A LOT!!

and now Do you think that this could be a good approach? or you suggest
something better ??


--
Rafael E. Ferrero

2015-06-02 10:04 GMT-03:00 Erik Cederstrand :

> Hi Rafael,
>
> Assuming you have a static and limited set of actions, and they can only
> be defined programmatically, I would do something like this:
>
>
> class Vertex(models.Model):
>  some_field = models.CharField()
>
>
> class Edge(models.Model):
> from = models.ForeignKey(Vertex, related_name='outgoing')
> to = models.ForeignKey(Vertex, related_name='incoming')
> action = models.CharField(choices=(('action1', 'action1'), ('action2',
> 'action2'), ...))
>
> def action1(self):
> # Do something here
> pass
>
> def action2(self):
> # Do something else here
> pass
>
>def run_action(self):
>   return getattr(self, self.action)()
>
>
> When and where to call run_action() would depend on your requirements -
> either in the save() method on Edge, in a signal, or within a view.
>
> If you were looking to define custom actions on the fly via a GUI, you
> would need to define a DSL containing the constructs you allow, create a
> view where the user can compose an AST using the constructs of the DSL, and
> store the resulting AST in the database. When you need to run the action,
> you would translate the AST to Python and run that.
>
> You can also have a look at
> https://www.djangopackages.com/grids/g/trees-and-graphs/ and see if
> anything suits your needs.
>
> Erik
>
>
> Den 02/06/2015 kl. 13.47 skrev Rafael E. Ferrero  >:
>
> Hello everyone,
>
> I think to do an app where i would save a directed graph.
> The vertex and edges there must be dinamics.
> The vertex can represent some Tag or Category... or something.
> The edge who links the vertex can be N between two vertex and represent
> some event or action... and let me explain here what i need to do:
>
> Suppose you have Vertex1 and Vertex2 and are linked by edge1 from vertex1
> to vertex2, edge1 have the action "Add if not exist" and mean that if the
> user select the vertex1, the system, automatically add vertex2. Even
> further, suppose you have a third vertex related to vertex1 by edge2 and
> the action of that edge its "delete if exist" so if the user have,
> previously, selected vertex3, when select vertex1, vertex3 would be deleted
> by edge2.
>
> Make a model to save the graph it's not a problem (save vertex and edges
> and specify what action have every edge)... my problem its develop every
> type of event or action for the edges, save that event on database and then
> execute that event when needed.
>
> Someone have a recommendation for me?
> THANK YOU ALL!!!
>
> --
> Rafael E. Ferrero
>
> --
> 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/CAJJc_8V7RiW%2Bsv4-1x9e9a7Evz4_AetSNZoyAqfoFJApwa6JJQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJJc_8V7RiW%2Bsv4-1x9e9a7Evz4_AetSNZoyAqfoFJApwa6JJQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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

Graph theory ??

2015-06-02 Thread Rafael E. Ferrero
Hello everyone,

I think to do an app where i would save a directed graph.
The vertex and edges there must be dinamics.
The vertex can represent some Tag or Category... or something.
The edge who links the vertex can be N between two vertex and represent
some event or action... and let me explain here what i need to do:

Suppose you have Vertex1 and Vertex2 and are linked by edge1 from vertex1
to vertex2, edge1 have the action "Add if not exist" and mean that if the
user select the vertex1, the system, automatically add vertex2. Even
further, suppose you have a third vertex related to vertex1 by edge2 and
the action of that edge its "delete if exist" so if the user have,
previously, selected vertex3, when select vertex1, vertex3 would be deleted
by edge2.

Make a model to save the graph it's not a problem (save vertex and edges
and specify what action have every edge)... my problem its develop every
type of event or action for the edges, save that event on database and then
execute that event when needed.

Someone have a recommendation for me?
THANK YOU ALL!!!

--
Rafael E. Ferrero

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


Re: MercadoPago Applications

2015-04-28 Thread Rafael E. Ferrero
Francisco, lamento no poder ayudarte (por otra parte somos casi vecinos, yo
vivo en San Francisco Cba.)
Te aconsejo que reformules la pregunta traduciéndola al inglés porque acá
casi todos (por no decir todos) hablan inglés.

Saludos !!

--
Rafael E. Ferrero

2015-04-28 13:47 GMT-03:00 Francisco Roldan :

> Buenas tardes, alguien integró MercadoPago Applications a Django?
> Yo tengo implementado MercadoPago en algunos proyectos para recibir pagos,
> pero ahora en un proyecto necesito que los usuarios puedan recibir pagos de
> otros usuarios y que el sitio se quede con una comisión, para ello
> supuestamente está MercadoPago MarketPlace, alguien lo utilizó?
>
> Gracias
>
> --
> 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/a0e7a350-0e91-454a-a597-e26781cf1ac2%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a0e7a350-0e91-454a-a597-e26781cf1ac2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XEHWHW%3D%3DBDGO%3D_58fXt_y9KcRa%2B0H7w7%2BcTA3%3Di%3D85Eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to have popup window and print it

2015-01-28 Thread Rafael E. Ferrero
IMHO - You can't find anything in Django because it's not a Django problem.
The popup windows you can do it a little of javascript [1] and for print
you can do a button in html and use javascript for print the page
onclick="javascript:window.print();" (something like this, i think)

Fill with data your popup it's a Django job... with views you can solve it.

[1]-http://www.quirksmode.org/js/popup.html

--
Rafael E. Ferrero

2015-01-28 0:08 GMT-03:00 163 email :

>  hi.
> i'm new to django. i'm try using django1.7 with jquery ,bootstrap.
>  Now i have a webpage , i want:
>   when click a  link , there is  a new popup window, and form with data
> from database
>   in  popup window,and then print contend in the popup window.
> but i did not find how to do it just using django in doc of django.
> is there anybody can tell me how to do it with  example 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/201501281108172507659%40163.com
> <https://groups.google.com/d/msgid/django-users/201501281108172507659%40163.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8UZz644q34Snj7KiGjh2FMN4avq02MyNoORGaakSXX8iw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to find the word 'python' in string 'pythonpythonpythonpyth'?

2014-11-05 Thread Rafael E. Ferrero
a.find('python')


--
Rafael E. Ferrero

2014-11-05 8:16 GMT-03:00 Віталій Лисенко :

> How to find the word 'python' in string 'pythonpythonpythonpyth'?
>
> --
> 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/5cb8f985-b3aa-4df7-aed7-6a1859e7a87c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5cb8f985-b3aa-4df7-aed7-6a1859e7a87c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8X3nEz5t7TF6cJ4thQOt5T8SLCqLpCE6xS-tT7sR7832g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Introducing myself and my first question

2014-07-20 Thread Ariel E. Isidro
Hi Martin,

I myself am new in Django, here's one tutorial I believe is worth visiting
when setting up your environment:

http://www.jeffknupp.com/blog/2013/12/18/starting-a-django-16-project-the-right-way/

Good luck


On Sun, Jul 20, 2014 at 6:09 AM, Martin Torre Castro 
wrote:

> Hello,
>
> my name is Martin and I'm a computer engineer from Spain. I'm going to
> start a new project with a colleague and I decided to use Django because we
> searched for free opensource tools and I'm in love with Python.
>
> We have made a couple of tutorials (the official one and "Tango with
> django"). I've also bought the book "Two scoops of Django" for the 1.6
> Django edition. We're starting the project soon as well as we finish the
> design, but I'm concerned about setting up the new environment. We're
> thinking of using:
>
>
>- postgresql
>- Python/Django [ of course ;-) ]
>- Eclipse/Pydev
>- Git
>- jQuery
>
> I've been reading the Greenfield/Roy book and some web sites and I want to
> set up the environment with good practices by using virtualenvwrapper,
> virtualenv, pip, the requirements.txt files and so on.
> I have made some mix for all this, but I would be grateful if someone
> could confirm us if we are on the right way, give us some advice or maybe
> tell us where on the internet we can find a good way of doing all this.
>
> My preview for the whole setting up is next:
>
>
>1. We should start the installations by installing "sudo apt-get
>install virtualenvwrapper" . If I understand correctly, this installs
>virtualenv as well as an embedded pip.
>2. The virtualenv must be created ("virtualenv env") in the parent
>directory of the Eclipse workspace, I suppose. This is one point of
>confusion to me. I don't know either if I have to activate this every time
>I come back for developing resuming the work from days before. I completely
>understand that later from Eclipse I will give the python path inside the
>virtualenv, but don't know if must activate the virtualenv every time.
>3. Next step would be to install all the things we need (django,
>pillow, psycopg2) using a requirements.txt file. "pip install -r
>requirements.txt"
>4. We should create the new django project with a python
>django-admin.py startproject 
>5. Now I don't know if we should link the project to an already
>installed version of Eclipse or run the "git init" first. I understand
>that Eclipse and Git don't need to be installed inside the virtualenv. In
>fact, I've been reading and it seems that Eclipse can work OK just by being
>given the path inside the virtualenv where the python executable is
>located. I've also read that some people used to make different workspaces,
>but configuring the paths should be enough
>http://stackoverflow.com/questions/1145374/virtualenv-with-eclipse-galileo
>
> From here I would just upload to github or bitbucket, maybe doing the
> whole thing from Eclipse would be easier. But the integration with Eclipse
> when we made tangowithdjango tutorial was the difficult point, because
> there is no option for importing a django project from Eclipse (Kepler
> version last time). We found easier to create the project from Eclipse, but
> we were not using a virtualenv for the tutorial.
>
> I haven't used virtualenv before, so it's our second main obstacle, but I
> expect it will be easy when we get used to it (^_^) .
>
> Please could someone help with some piece of advice, pros and cons of
> every option. Just don't want to do something now I will regret in future.
>
> Thank you veeery much in advance.
>
> PS: Some links visited:
> http://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/
> http://www.tangowithdjango.com/book/chapters/setup.html
> https://virtualenv.pypa.io/en/latest/virtualenv.html
>
> --
> 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/f7332cab-26a7-45fe-a9f5-26831da6bdf4%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f7332cab-26a7-45fe-a9f5-26831da6bdf4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https:

Re: pre_save on password

2014-07-01 Thread Rafael E. Ferrero
Sorry... i meant Best Regards (without ? hahahaha... sorry)

--
Rafael E. Ferrero


2014-07-01 8:04 GMT-03:00 Rafael E. Ferrero :

> I see this too dangerous... it is not a good idea save uncrypted
> password... too many hacker attack result on public user-password list.
> Why not save encrypted password on the other application too?
>
> Best Regards?
>
> --
> Rafael E. Ferrero
>
>
> 2014-07-01 6:41 GMT-03:00 guillaume :
>
> Hi list,
>>
>> When registering a new user, or a password change, I need to register
>> that user, or his new password, in another application through an internal
>> API. I'm trying to catch the password from the different form they can be
>> found in, but without success. Even the signal pre_save is happening too
>> late (password is already encrypted). How can I see it just before it is
>> encrypted ?
>>
>> Thanks
>>
>> Guillaume
>>
>> --
>> 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/46c619d4-7499-4d77-afa5-01490cd06c0e%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/46c619d4-7499-4d77-afa5-01490cd06c0e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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/CAJJc_8WFp5JrG%3DXFzL19V1C0QVQTkRezZ%3DRpMuDnKLKPQKPBcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pre_save on password

2014-07-01 Thread Rafael E. Ferrero
I see this too dangerous... it is not a good idea save uncrypted
password... too many hacker attack result on public user-password list.
Why not save encrypted password on the other application too?

Best Regards?

--
Rafael E. Ferrero


2014-07-01 6:41 GMT-03:00 guillaume :

> Hi list,
>
> When registering a new user, or a password change, I need to register that
> user, or his new password, in another application through an internal API.
> I'm trying to catch the password from the different form they can be found
> in, but without success. Even the signal pre_save is happening too late
> (password is already encrypted). How can I see it just before it is
> encrypted ?
>
> Thanks
>
> Guillaume
>
> --
> 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/46c619d4-7499-4d77-afa5-01490cd06c0e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/46c619d4-7499-4d77-afa5-01490cd06c0e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8XU7r6xLeiBmzoTq%3DtS57Bs6UjJP6qfjF2fypVZop%2B9HQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: OneToOne? Inheritance? Another solution for nested model relationships?

2014-05-30 Thread Rafael E. Ferrero
2014-05-26 18:33 GMT-03:00 Daniele Procida :

> I've an application that's been happily running for a few years, that does
> this:
>
> class Person(Model):
># everyone's a Person
>
> class Researcher(Model):
> # a Researcher is Person who publishes research
> person = models.OneToOneField(Person)
>
> class Publication(Model):
> author = models.ForeignKey(Researcher)
>
>
> But this is no longer enough: now I also need to distinguish between
> Researchers who are research students and members of staff. Those who are
> students will need new fields such as "thesis_title" and "supervisors".
>
> But, I will *still* need the Researcher class independently of the new
> ResearchStudent and ResearchStaff classes, because it's needed for
> Publication.author.
>
> So now it might look something like this:
>
> class Person(Model):
># everyone's a Person
>
> class Researcher(Model):
> # a Researcher is Person who publishes research
> person = models.OneToOneField(Person)
>
> class ResearchStaff(Model):
>researcher = models.OneToOneField(Researcher)
>
> class ResearchStudent(Model):
>researcher = models.OneToOneField(Researcher)
>supervisors = models.ManyToManyField(ResearchStaff)
>
So, a ResearchStudent must be a Researcher and can have multiple
supervisors, but every supervisor must to be a ResearchStaff and a
Researcher too; and everyone is a Person here. Right?
Can a ResearchStudent be a ResearchStaff too?
i'll do something like this:


​



> class Publication(Model):
> author = models.ForeignKey(Researcher)
>
>
> How manageable is this going to be? Is there a better way of doing what I
> need to do, perhaps through inheritance?
>
> Thanks,
>
> Daniele
>
> --
> 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/20140526213320.1042853662%40mail.wservices.ch
> .
> 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/CAJJc_8U-FaX5PtQppji1kKrn259%2BtEwZCR9AdFqDUTecwdyJ_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Alternative translation frameworks

2014-05-27 Thread Alexander E. Patrakov

Hello.

Can anyone recommend translation frameworks other than gettext that can 
be used with Django?


Here is why I am asking. Sorry if this is a FAQ.

I work for a Russian company that maintains two closed-source 
Django-based SaaS websites - one for Russians, and one for the rest of 
the world. Parts of the sites that provide useful functionality to the 
logged-in users should be translations of each other.


A traditional way of managing this (and what we are doing now) is to 
create templates with some translatable text marked like this: {% trans 
'Instructions' %}, and to place translatable text in *.py files inside 
_(u"text") calls. Then the standard Django translation framework (which 
is based on gettext) will pick that up and place into *.po files that 
can be translated with any standard tools.


Unfortunately, this workflow doesn't work well here. Our existing Python 
programmer can read English documentation, but just cannot write 
grammatically correct English. More than 50% of source strings thus 
result in msgid-bugs that are hard to fix in a gettext-based workflow.


People who can translate from Russian into English are available and we 
could hire one of them, but they have no place in this workflow, because 
gettext pretty much insists (^1) on using English as the source language 
for translation. People who know both Python and grammatically correct 
English do exist in Russia, but are very rare, and the majority of them 
demand salary that is way beyond our budget (i.e. a person who is a 
specialist in both areas is way more expensive than two people 
specialized in one area each).


So, I am searching for an alternative but well-established solution that 
can be easily explained for a translator, doesn't require the programmer 
to write correct English phrases on the first try, has a place for a 
translator who knows how to translate to English, and allows for both 
English and Russian phrases to be reworded easily at any point in time.




(^1) The problem is that gettext pretty much assumes that the source 
language is English. E.g., ngettext applies the English rules in order 
to decide whether to use the first or the second argument if there is no 
translation.


--
Alexander E. Patrakov

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


Re: Python Nested For Looping MultiTable Association Question

2014-05-07 Thread Rafael E. Ferrero
https://docs.djangoproject.com/en/dev/topics/db/queries/#retrieving-all-objects

--
Rafael E. Ferrero


2014-05-07 16:54 GMT-03:00 G Z :

> I don't know why this isn't working..
>
>
> from django.shortcuts import render
> from django.http import HttpResponse
> from vmware.models import Customer
> from django.shortcuts import render_to_response
> from vmware.models import Vms
>
> def index(request):
> customers = Customer.objects.*all()*
> vms = Vms.objects.all
> ctx = { 'customers':customers, 'vms':vms}
> return render_to_response('index.html', ctx)
>
> my views.py
>
> the loop now reads
>
> {% for e in customers %}
> {% for e in vms %}
> {% if e.VMIDS = e.id %}
>  {{ e.id }} - {{ e.NAME }} - {{
> e.VMNAME }} 
> {% endif %}
> {% endfor %}
> {% 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/0e8117da-c6b0-4930-aebd-534124e025a5%40googlegroups.com<https://groups.google.com/d/msgid/django-users/0e8117da-c6b0-4930-aebd-534124e025a5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8Vo29_hW%2BWxPEoaOje-4Hjft-EpZVcjb8DcvzqufhimTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: query on models

2014-05-07 Thread Rafael E. Ferrero
I'll recommend you to read
https://docs.djangoproject.com/en/dev/ref/models/querysets/

Cheers!

--
Rafael E. Ferrero


2014-05-07 12:03 GMT-03:00 Anushree Jangid :

> no no you are not missing anything. You got it right and I did that in
> view and it worked. Actually I am new to Django. Thanks a lot.
>
>
>
>
> On Wed, May 7, 2014 at 8:28 PM, Rafael E. Ferrero <
> rafael.ferr...@gmail.com> wrote:
>
>> You are using Ques for related Subject and QuestionBank... just make a
>> method in Ques class who filter the Ques model with some subject parameter
>> or do it in your view like:
>>qs = Ques.objects.select_related().filter(subject='some_name')
>>
>>
>> I'm missing something really big? or i miss understud your question?
>>
>>
>>
>> 2014-05-07 11:19 GMT-03:00 Anushree Jangid :
>>
>>> No* I start with subject model. *There I have created subjects like
>>> General knowledge, English etc. ​Then I create question banks Like for
>>> General knowledge I have created GK1, GK2 and GK3 . Then when I enter a
>>> ques in the Ques model there I specify that the question is related to
>>> which subject and which question bank.
>>> For e.g In Ques model I enter
>>> content=what is friction
>>> subject=General knowledge
>>> ques_bank=GK1
>>>
>>>
>>> ​Now for eg I want to know the question banks associated with subject​
>>> General knowledge, then it should tell GK1 GK2 and GK3
>>> Assume all the questions related to the subjects along with their
>>> question banks have been stored in Ques model.
>>>
>>>
>>> On Wed, May 7, 2014 at 7:38 PM, Davide Scatto wrote:
>>>
>>>> Do you start from Ques model? What are your starting data?
>>>>
>>>> Il giorno mercoledì 7 maggio 2014 15:24:38 UTC+2, Anushree ha scritto:
>>>>
>>>>> I have the following models. I want to retrieve list of question banks
>>>>> related to a particular subject. Is it possible to do without modifying 
>>>>> the
>>>>> existing data models?Thank you
>>>>> class Subject(models.Model):
>>>>>  name = models.CharField(max_length = 255)
>>>>> desc = models.TextField(blank=True)
>>>>> def __unicode__(self):
>>>>>  return self.name
>>>>>
>>>>> class QuestionBank(models.Model):
>>>>> name = models.CharField(max_length=255)
>>>>>  desc = models.TextField()
>>>>> def __unicode__(self):
>>>>> return self.name
>>>>>
>>>>> class Ques(models.Model):
>>>>> content = models.TextField()
>>>>> ques_type = models.CharField(max_length = 1 , default= 'A')
>>>>>  score = models.PositiveSmallIntegerField(max_length = 1 , default= 1)
>>>>> ques_bank = models.ForeignKey(QuestionBank)
>>>>>  subject = models.ForeignKey(Subject)
>>>>>
>>>>  --
>>>> 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/f98ca810-27a1-45a2-a177-cef5ba365456%40googlegroups.com<https://groups.google.com/d/msgid/django-users/f98ca810-27a1-45a2-a177-cef5ba365456%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Anushree Jangid *
>>> *BIT Mesra, Jaipur Campus*
>>>
>>> --
>>> 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/CAP%3D_V50C-VV_zCJK_8%3Dge

Re: query on models

2014-05-07 Thread Rafael E. Ferrero
You are using Ques for related Subject and QuestionBank... just make a
method in Ques class who filter the Ques model with some subject parameter
or do it in your view like:
   qs = Ques.objects.select_related().filter(subject='some_name')


I'm missing something really big? or i miss understud your question?



2014-05-07 11:19 GMT-03:00 Anushree Jangid :

> No* I start with subject model. *There I have created subjects like
> General knowledge, English etc. ​Then I create question banks Like for
> General knowledge I have created GK1, GK2 and GK3 . Then when I enter a
> ques in the Ques model there I specify that the question is related to
> which subject and which question bank.
> For e.g In Ques model I enter
> content=what is friction
> subject=General knowledge
> ques_bank=GK1
>
>
> ​Now for eg I want to know the question banks associated with subject​
> General knowledge, then it should tell GK1 GK2 and GK3
> Assume all the questions related to the subjects along with their question
> banks have been stored in Ques model.
>
>
> On Wed, May 7, 2014 at 7:38 PM, Davide Scatto wrote:
>
>> Do you start from Ques model? What are your starting data?
>>
>> Il giorno mercoledì 7 maggio 2014 15:24:38 UTC+2, Anushree ha scritto:
>>
>>> I have the following models. I want to retrieve list of question banks
>>> related to a particular subject. Is it possible to do without modifying the
>>> existing data models?Thank you
>>> class Subject(models.Model):
>>>  name = models.CharField(max_length = 255)
>>> desc = models.TextField(blank=True)
>>> def __unicode__(self):
>>>  return self.name
>>>
>>> class QuestionBank(models.Model):
>>> name = models.CharField(max_length=255)
>>>  desc = models.TextField()
>>> def __unicode__(self):
>>> return self.name
>>>
>>> class Ques(models.Model):
>>> content = models.TextField()
>>> ques_type = models.CharField(max_length = 1 , default= 'A')
>>>  score = models.PositiveSmallIntegerField(max_length = 1 , default= 1)
>>> ques_bank = models.ForeignKey(QuestionBank)
>>>  subject = models.ForeignKey(Subject)
>>>
>>  --
>> 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/f98ca810-27a1-45a2-a177-cef5ba365456%40googlegroups.com
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> *Anushree Jangid*
> *BIT Mesra, Jaipur Campus*
>
> --
> 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/CAP%3D_V50C-VV_zCJK_8%3DgeKb-JeBsZiDgrmLDWu0F6Wmbw_aYFQ%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJJc_8W9iog17Rtgqp_ywpNkwEovs0jq5g%2B5cx290jVjXvKsWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: query on models

2014-05-07 Thread Rafael E. Ferrero
Just filtering Ques model (imho)

--
Rafael E. Ferrero


2014-05-07 10:24 GMT-03:00 Anushree :

> I have the following models. I want to retrieve list of question banks
> related to a particular subject. Is it possible to do without modifying the
> existing data models?Thank you
> class Subject(models.Model):
> name = models.CharField(max_length = 255)
> desc = models.TextField(blank=True)
> def __unicode__(self):
> return self.name
>
> class QuestionBank(models.Model):
> name = models.CharField(max_length=255)
> desc = models.TextField()
> def __unicode__(self):
> return self.name
>
> class Ques(models.Model):
> content = models.TextField()
> ques_type = models.CharField(max_length = 1 , default= 'A')
> score = models.PositiveSmallIntegerField(max_length = 1 , default= 1)
> ques_bank = models.ForeignKey(QuestionBank)
> subject = models.ForeignKey(Subject)
>
> --
> 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/66442114-cda1-45c4-9320-1059c045e48a%40googlegroups.com<https://groups.google.com/d/msgid/django-users/66442114-cda1-45c4-9320-1059c045e48a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8WPAZcJnfXND1VAdfASK31VuQ1HR1So%3DYykgxcSXEMSxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django URLS help app not defined

2014-05-06 Thread Rafael E. Ferrero
Check this out: http://linkode.org/j5tuDIjRiGrzufkXDrCMh7

if you visit http://www.fsorgosuardi.com.ar/eventos you go to activos views
if you visit http://www.fsorgosuardi.com.ar/eventos/ampliar/something-hereyou
go to activos views with parameters
if you visit http://www.fsorgosuardi.com.ar/eventos/archivados/ you go to
archivados views (its inactive for now)

what i see is that you construct something like
www.domain.com/customers/customers

--
Rafael E. Ferrero


2014-05-06 18:33 GMT-03:00 G Z :

> The admin page works fine only the other two don't
>
> Project Structure Project Root Directory: provisioning/ this is where
> manage.py lives
>
> Project Settings Directory provisioning/provisioning/settings.py
>
> App Directory provisioning/vmware
>
> template directory /provisioning/vmware/templates/ this is wehre vms.html
> lives
>
> from my project urls.py file
>
> GNU nano 2.2.6  File: provisioning/urls.py
>
> from django.conf.urls import patterns, include, url
> from django.contrib import admin
> admin.autodiscover()
> urlpatterns = patterns('',
> # url(r'^$', 'provisioning.views.home', name='home'),
> url(r'^admin/', include(admin.site.urls)),
> url(r'^customers', include('vmware.urls')),
> url(r'^test/', include('vmware.urls')),
> )
>
> from my app urls.py file:
>
> from django.conf.urls import patterns, include, url
> from django.views.generic.list import ListView
> from vmware.models import Customer
>
> urlpatterns = patterns('',
> url(r'^customers', ListView.as_view(
> queryset=Customer.objects.all().order_by("-id")[:100],
> template_name="vms.html")),
> )
>
> urlpatterns = patterns('',
> url(r'^test/', ListView.as_view(
> queryset=Customer.objects.all().order_by("-id")[:100],
> template_name="vms.html")),
> )
>
> and then this is the error im getting
>
> Page not found (404)
> Request Method: GET
> Request URL:http://pythondev.enki.co:8001/test
> Using the URLconf defined in provisioning.urls, Django tried these URL 
> patterns, in this order:
> ^admin/
> ^customers
> ^test/
> The current URL, test, didn't match any of these.
> You're seeing this error because you have DEBUG = True in your Django 
> settings file. Change that to False, and Django will display a standard 404 
> page.
>
>
>
>>  --
> 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/fcba60dc-4bc2-4ca4-9e44-e4bc9fd7a5d4%40googlegroups.com<https://groups.google.com/d/msgid/django-users/fcba60dc-4bc2-4ca4-9e44-e4bc9fd7a5d4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8X8jcggBe5Cn_-w5AvZ-7LGUk%3DFrO-zF2xrBQ6MDQU%2BRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django URLS help app not defined

2014-05-06 Thread Rafael E. Ferrero
if you try http://pythondev.enki.co:8001/admin works just fine ?

<http://pythondev.enki.co:8001/admin>

--
Rafael E. Ferrero


2014-05-06 17:40 GMT-03:00 G Z :

> Thanks so much one last thing
>>
>
> Page not found (404)Request Method:GETRequest URL:
> http://pythondev.enki.co:8001/customers
>
> Using the URLconf defined in provisioning.urls, Django tried these URL
> patterns, in this order:
>
>1. ^admin/
>2. ^customers/
>
> The current URL, customers, didn't match any of these.
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a standard
> 404 page.
>
> I got it to work but its still not seeing the customers url is my regex
> wrong?
>
> --
> 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/46bc38b8-a024-407f-8f6a-db3c62255afa%40googlegroups.com<https://groups.google.com/d/msgid/django-users/46bc38b8-a024-407f-8f6a-db3c62255afa%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAJJc_8VUgrEsYHdAf8NR414OqeHaS-d%2B7%3DDzBkw2AKMJ4UUE4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django URLS help app not defined

2014-05-06 Thread Rafael E. Ferrero
I think that you fail on trying to setup the admin site for your proyect.
check this out https://docs.djangoproject.com/en/1.6/ref/contrib/admin/

--
*RAFAEL FERRERO*

*Chief Officer Technology*
San Francisco Cba. | Argentina
+54 9 356251 4856
www.perseux.com


2014-05-06 2:09 GMT-03:00 G Z :

> project name = provisioning
> app name = vmware
>
> In my projects urls.py I have the following. I assume I set the new url
> link customers to myapp.urls because im watching a youtube video and thats
> what he did.
>
> from django.conf.urls import patterns, include, url
> from django.contrib import admin
> admin.autodiscover()
> urlpatterns = patterns('',
> url(r'^admin/', include(admin.site.urls)),
> url(r'^customers/', include(vmware.urls)), #i'm assuming its my
> appsname.urls
> )
>
> In my vmware directory I have the urls.py file as the video had me design.
> To which I have the following code:
>
> from django.conf.urls import patterns, include, url
> from django.view.generic import ListView
> from vmware.models import Customer
>
> urlpatterns = patterns('',
>   url(r'^customers/', ListView.as_view(
>
> queryset=Customer.objects.all().order_by"-id")[:100],
> template_name="VMS.html")),
> )
>
> Now when I syncdb and runserver I get no erros. But when I try to resolve
> the page I get the following. It says vmware is not defined but it is
> defined in my installed apps.
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://23.239.206.142:8001/admin/
>
> Django Version: 1.6.4
> Python Version: 2.7.3
> Installed Applications:
> ('django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'vmware')
> 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 "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
> in get_response
>   101. resolver_match = resolver.resolve(request.path_info)
> File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
> in resolve
>   337. for pattern in self.url_patterns:
> File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
> in url_patterns
>   365. patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
> File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
> in urlconf_module
>   360. self._urlconf_module = import_module(self.urlconf_name)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in
> import_module
>   40. __import__(name)
> File "/root/djangoprojects/provisioning/provisioning/urls.py" in 
>   12. url(r'^customers/', include(vmware.urls)),
>
> Exception Type: NameError at /admin/
> Exception Value: name 'vmware' is not defined
>
>  --
> 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/031cb075-cdd8-47bf-9a6f-6135209deeb7%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/CAJJc_8WoH4reNeer%2BvbZqXDrC65w7KdyBi5r30Q%2BTT9C9Xmf8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Urls.py Question

2014-05-06 Thread Rafael E. Ferrero
What version of django do you have runing?, do you define an admin for
vmware?

--
Rafael E. Ferrero


2014-05-06 2:50 GMT-03:00 G Z :

> project name = provisioning app name = vmware
>
> In my projects urls.py I have the following. I assume I set the new url
> link customers to myapp.urls because im watching a youtube video and thats
> what he did.
>
> from django.conf.urls import patterns, include, url
> from django.contrib import admin
> admin.autodiscover()
> urlpatterns = patterns('',
> url(r'^admin/', include(admin.site.urls)),
> url(r'^customers/', include(vmware.urls)),
> )
>
> In my vmware directory I have the urls.py file as the video had me design.
> To which I have the following code:
>
> from django.conf.urls import patterns, include, url
> from django.view.generic import ListView
> from vmware.models import Customer
>
> urlpatterns = patterns('',
>   url(r'^customers/', ListView.as_view(
> 
> queryset=Customer.objects.all().order_by"-id")[:100],
> template_name="VMS.html")),
> )
>
> Now when I syncdb and runserver I get no erros. But when I try to resolve
> the page I get the following. It says vmware is not defined but it is
> defined in my installed apps.
>
> Environment:
> Request Method: GET Request URL: http://23.239.206.142:8001/admin/
> Django Version: 1.6.4 Python Version: 2.7.3 Installed Applications:
> ('django.contrib.admin', 'django.contrib.auth',
> 'django.contrib.contenttypes', 'django.contrib.sessions',
> 'django.contrib.messages', 'django.contrib.staticfiles', 'vmware')
> 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
> "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in
> get_response 101. resolver_match = resolver.resolve(request.path_info) File
> "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
> resolve 337. for pattern in self.url_patterns: File
> "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
> url_patterns 365. patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module) File
> "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
> urlconf_module 360. self._urlconf_module = import_module(self.urlconf_name)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in
> import_module 40. *import*(name) File
> "/root/djangoprojects/provisioning/provisioning/urls.py" in  12.
> url(r'^customers/', include(vmware.urls)),
> Exception Type: NameError at /admin/ Exception Value: name 'vmware' is not
> defined
>
>  --
> 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/d3990a55-76d9-4b4a-81d0-903a00c021b5%40googlegroups.com<https://groups.google.com/d/msgid/django-users/d3990a55-76d9-4b4a-81d0-903a00c021b5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAJJc_8VhNO7G9FUQdvKFj8TFg8XSXR3EYiRAWFXCMyr09HXiOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: what's the best admin skin (free)

2014-04-17 Thread Rafael E. Ferrero
+1 Grappelli

--
*RAFAEL FERRERO*

*Chief Officer Technology*
San Francisco Cba. | Argentina
+54 9 356251 4856
www.perseux.com


2014-04-17 10:22 GMT-03:00 Majo :

> Hey Bobby,
>
> I'm using Grappelli for some of my projects and I like it. If you want to
> know about other skins, you should head over to
> https://www.djangopackages.com/grids/g/admin-interface/ and check out
> what they have listed. The best choice for you will depend on how much you
> actually want to customize your Django admin.
>
> Good luck!
>
>
> On Thursday, April 17, 2014 3:04:11 AM UTC+2, Bobby Roberts wrote:
>>
>> hey group.   I've been out of the loop for  a few years now.  What is the
>> best skin for admin?  Is Grapelli still good?
>>
>  --
> 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/bade865f-34a0-4e9a-ba2d-dc8f565e98d1%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/CAJJc_8X3cvv8-DxDXp98daiHY%2B1R7GNB%2BX%3DjJNfzz3EcL_2HBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: QuerySet doubt

2014-04-11 Thread Rafael E. Ferrero
I think, for what i see on his docs, that
https://github.com/chrisglass/django_polymorphic can help in my task.


Saludos Cordiales,
--
Rafael E. Ferrero


2014-04-11 2:35 GMT-03:00 Rafael E. Ferrero :

> Found a bug in that view (see revision 3 of linkode) but my ignorance
> about iterate or perform the object for template still remains.
>
> Saludos Cordiales,
> --
> Rafael E. Ferrero
>
>
> 2014-04-11 1:00 GMT-03:00 Rafael E. Ferrero :
>
> An SQL who can solve my trouble its here
>> http://linkode.org/DqwJ0ljeE4wdsqw1G9Q8g7
>>
>> but, with that i obtain something like this:
>> *ArticleTitle GallerieTitle
>> PicTitle*
>> Fusce luctus scelerisque doloruna galeria una foto
>> Fusce luctus scelerisque doloruna galeria otra foto
>> Lorem Ipsum una galeria una
>> foto
>> Lorem Ipsum una galeria otra
>> foto
>> Neque porro quisquam est qui dolorem{null}  {null}
>> Sed nibh lectus  popup albun
>> primera foto
>> Sed nibh lectus  popup albunotra
>> fotingui
>>
>> but i shall iterating over repeated articles data
>>
>>
>> Saludos Cordiales,
>> --
>> Rafael E. Ferrero
>>
>>
>> 2014-04-11 0:24 GMT-03:00 Rafael E. Ferrero :
>>
>> In my project i have news, every one can have n pic galleries and every
>>> gallery can have n pics (every model are in differents apps but that its
>>> not the problem) (in the view you can see that i regroup all the pics of
>>> galleries related to an article in a single object but this is only for
>>> that template, it just part of the requeriments, in other view need have
>>> all galleries an his pics, etc.)
>>>
>>> When try to pass an object to the template need to every pic must to
>>> have related with his news i onli figure out with list
>>>
>>> it's, for me, not quiet simple iterate the result of the view in a
>>> template... are a better aproach here?, a pythonic aproach maybe?
>>>
>>> I put the relevant piece of code here
>>> http://linkode.org/IClFZv7NubqSt6u99zDMV2
>>>
>>>
>>> Saludos Cordiales,
>>> --
>>> Rafael E. Ferrero
>>>
>>
>>
>

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


Re: QuerySet doubt

2014-04-10 Thread Rafael E. Ferrero
Found a bug in that view (see revision 3 of linkode) but my ignorance about
iterate or perform the object for template still remains.

Saludos Cordiales,
--
Rafael E. Ferrero


2014-04-11 1:00 GMT-03:00 Rafael E. Ferrero :

> An SQL who can solve my trouble its here
> http://linkode.org/DqwJ0ljeE4wdsqw1G9Q8g7
>
> but, with that i obtain something like this:
> *ArticleTitle GallerieTitle
> PicTitle*
> Fusce luctus scelerisque doloruna galeria una foto
> Fusce luctus scelerisque doloruna galeria otra foto
> Lorem Ipsum una galeria una
> foto
> Lorem Ipsum una galeria otra
> foto
> Neque porro quisquam est qui dolorem{null}  {null}
> Sed nibh lectus  popup albun
> primera foto
> Sed nibh lectus  popup albunotra
> fotingui
>
> but i shall iterating over repeated articles data
>
>
> Saludos Cordiales,
> --
> Rafael E. Ferrero
>
>
> 2014-04-11 0:24 GMT-03:00 Rafael E. Ferrero :
>
> In my project i have news, every one can have n pic galleries and every
>> gallery can have n pics (every model are in differents apps but that its
>> not the problem) (in the view you can see that i regroup all the pics of
>> galleries related to an article in a single object but this is only for
>> that template, it just part of the requeriments, in other view need have
>> all galleries an his pics, etc.)
>>
>> When try to pass an object to the template need to every pic must to have
>> related with his news i onli figure out with list
>>
>> it's, for me, not quiet simple iterate the result of the view in a
>> template... are a better aproach here?, a pythonic aproach maybe?
>>
>> I put the relevant piece of code here
>> http://linkode.org/IClFZv7NubqSt6u99zDMV2
>>
>>
>> Saludos Cordiales,
>> --
>> Rafael E. Ferrero
>>
>
>

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


Re: QuerySet doubt

2014-04-10 Thread Rafael E. Ferrero
An SQL who can solve my trouble its here
http://linkode.org/DqwJ0ljeE4wdsqw1G9Q8g7

but, with that i obtain something like this:
*ArticleTitle GallerieTitle
PicTitle*
Fusce luctus scelerisque doloruna galeria una foto
Fusce luctus scelerisque doloruna galeria otra foto
Lorem Ipsum una galeria una foto
Lorem Ipsum una galeria otra
foto
Neque porro quisquam est qui dolorem{null}  {null}
Sed nibh lectus  popup albunprimera
foto
Sed nibh lectus  popup albunotra
fotingui

but i shall iterating over repeated articles data


Saludos Cordiales,
--
Rafael E. Ferrero


2014-04-11 0:24 GMT-03:00 Rafael E. Ferrero :

> In my project i have news, every one can have n pic galleries and every
> gallery can have n pics (every model are in differents apps but that its
> not the problem) (in the view you can see that i regroup all the pics of
> galleries related to an article in a single object but this is only for
> that template, it just part of the requeriments, in other view need have
> all galleries an his pics, etc.)
>
> When try to pass an object to the template need to every pic must to have
> related with his news i onli figure out with list
>
> it's, for me, not quiet simple iterate the result of the view in a
> template... are a better aproach here?, a pythonic aproach maybe?
>
> I put the relevant piece of code here
> http://linkode.org/IClFZv7NubqSt6u99zDMV2
>
>
> Saludos Cordiales,
> --
> Rafael E. Ferrero
>

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


QuerySet doubt

2014-04-10 Thread Rafael E. Ferrero
In my project i have news, every one can have n pic galleries and every
gallery can have n pics (every model are in differents apps but that its
not the problem) (in the view you can see that i regroup all the pics of
galleries related to an article in a single object but this is only for
that template, it just part of the requeriments, in other view need have
all galleries an his pics, etc.)

When try to pass an object to the template need to every pic must to have
related with his news i onli figure out with list

it's, for me, not quiet simple iterate the result of the view in a
template... are a better aproach here?, a pythonic aproach maybe?

I put the relevant piece of code here
http://linkode.org/IClFZv7NubqSt6u99zDMV2


Saludos Cordiales,
--
Rafael E. Ferrero

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


Re: Deployment in Django

2014-03-22 Thread Ariel E. Isidro
After git, pythonanywhere is a simple way to deploy and publish.
On Mar 22, 2014 9:02 PM, "Kamal Kaur"  wrote:

> On Sat, Mar 22, 2014 at 2:50 PM, Aryak Sengupta 
> wrote:
> > But what is the simplest and the easiest way to go about deployment?
> >
> > P.S. I am new to Django.
>
> Starting with a small app, following a good tutorial is not a bad
> idea! And the simplest, it lets you start from basics. Make sure you
> use git right from the first step. Will be beneficial. First try
> exploring about it.
>
> Something I just found:
>
> http://stackoverflow.com/questions/5467916/what-is-a-good-tutorial-for-django-other-than-the-django-documentation
>
> --
> Kamaljeet Kaur
>
> kamalkaur188.wordpress.com
> facebook.com/kaur.188
>
> --
> 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/CAP8Q%2BxgcW0x%2BkfTdhN67cJuD5Fw12W5ACieY2ZMpPRuLO8md-w%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAECOjiaefgAy44qv5B0%3DtFXpGuJDhammFnCzHu_3qsDCLaB7%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How allow public query & download of info from my db

2014-03-21 Thread Rafael E. Ferrero
2014-03-21 12:19 GMT-03:00 C. Kirby :

> I've actually built a small app that generates a form allowing users to do
> a Meta Query on models django-modelqueryform.
> I am in the process of a full rewrite of it to make it a lot more
> customizable, but the initial version works with fields that have choices
> set or with fields that are a numeric type. The resulting form provides
> each of the fields in you models with either a multichoicefield (choices)
> or a multifield widget which has a min, max and allow None checkbox. Right
> now I do not handle text based fields.
>
> You can find the code and documentation (as it is) at
> https://github.com/ckirby/django-modelqueryform
>
> Even if you can't use this directly, I think the code can give you some
> ideas.
>
> Hope it helps!
>
> On Friday, March 21, 2014 3:49:17 AM UTC-5, Venkatraman.S. wrote:
>
>>
>> On Fri, Mar 21, 2014 at 12:17 AM, Nicholas Tapia wrote:
>>
>>> Hey Django Community!
>>>
>>> I'm newer to programming and was pointed in the direction of django for
>>> this project.
>>>
>>> The idea is that people can make their own custom queries and download
>>> load it from my db.
>>>
>>> So far I'm thinking that using a form is they way to go to accept this
>>> information.  But from there I'm a little confused.  Does a custom model
>>> need to be created automatically before that query can be requested and
>>> displayed?  Or can model be skipped in this case?
>>>
>>>
>>>
>> The Q is very abstract and you need to refine it if you need better
>> guidance.
>>
>> From what I understand, it looks to me that you have a database and have
>> been asked to provide an interface from which customers can download data.
>> If yes, the best possible way to have filters so that customers can define
>> their queries based on these filters and download the related dataset. Do
>> NOT expose an interface by which customers can key-in a SQL and download
>> data.
>>
>> More on hearing from you.
>>
>> -V
>>
>>
>  --
> 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/bb22e4ba-3602-4181-82e9-18b335667705%40googlegroups.com<https://groups.google.com/d/msgid/django-users/bb22e4ba-3602-4181-82e9-18b335667705%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

Nicholas, if you do an interface where user can write his own custom sql
querys its an open door for sql inyection... indeed, you were facilitating
his work :P

What Venkatraman says is (more or lest) what Kirby does, so IMHO you must
to go in that way.

Cheers!,

Saludos Cordiales,
--
Rafael E. Ferrero

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


Re: two apps against one table (admin)

2014-02-06 Thread Ariel E. Isidro
What if you define your views to use only the fields that you need?
On Feb 7, 2014 2:24 AM, "fborell"  wrote:

> All,
>
> I need to create a second application in the admin section that ports to
> the first applications model. The second application's admin.py would
> contain only 5 of the 15 fields and be set for read-only.
> My goal was to allow certain users the ability to do a simple search and
> not see some of the other data that they weren't authorized for.
>
> Any thoughts on how to proceed?
>
> Thank,
>
> -f
>
> --
> 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/d1ed61d4-16d9-4a51-a537-d46a1f334d3a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CAECOjia6C34LOi28TBK%2Bs_Fqpy_c0nXkpq8FOmpk71_-Hwaqdw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: moving from sqlite3 to mysql

2014-02-05 Thread Ariel E. Isidro
1. before exiting mysql, you should grant permission to a user,i.e.
grant all privileges on django_1.* to username@'localhost' identified by
'userpassword'
replace username, userpassword with your own
2. exit mysql console
3. modify settings.py to add your username, password, host (localhost), and
port (3306)
4. run python manage.py syncdb


On Thu, Feb 6, 2014 at 7:52 AM, Drew Ferguson wrote:

> Hi
>
> Just like SQLlite, you tell Django where the MySQL database is in
> settings.py
>
> At the top you should have something like
>
> DATABASES = {
>  'default': {
>   'ENGINE': 'django.db.backends.mysql',
>   'NAME': 'django_1', # Or path to database file if using sqlite3.
> #  'USER': '',
> #  'PASSWORD': '',
> #  'HOST': '', # Empty for localhost
> #  'PORT': '', # Set to empty string for default.
>  }
> }
>
>
> On Wed, 5 Feb 2014 16:38:59 -0600
> Malik Rumi  wrote:
>
> > mysql>  CREATE DATABASE django_1;
> >
> > Query OK, 1 row affected (0.24 sec)
> >
> > mysql> SHOW DATABASES;
> >
> > ++
> >
> > | Database   |
> >
> > ++
> >
> > | information_schema |
> >
> > | django_1   |
> >
> > | mysql  |
> >
> > | performance_schema |
> >
> > | test   |
> >
> > ++
> >
> > 5 rows in set (0.31 sec)
> --
> Drew Ferguson
> AFC Commercial
> http://www.afccommercial.co.uk
>
> --
> 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/20140205235235.53a238b1%40blacktav.fergiesontour.org
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
*Ariel E. Isidro*
Backup your important files, click here  <http://db.tt/7cLLR7V/>

DISCLAIMER: This message is for the designated recipient only and may
contain confidential and/or privileged information. If you have received it
in error, please delete it and advise the sender immediately. You should
not copy or use it for any other purpose, nor disclose its contents to any
other person.

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


Re: moving from sqlite3 to mysql

2014-01-28 Thread Ariel E. Isidro
"Or can I create the database, (presumably directly in the shell), and then
empty it, as these instructions say, and that will take care of it? I
frankly didn't understand why I would need to 'empty' a new and empty
database, but that's what it says. "

With sql lite, everything will be created for you.
While with MySQL,  you should create the database directly in the shell,
and this should give you an empty database.  The Django tables will be
created after configuring your settings, and running  syncdb.




On Wed, Jan 29, 2014 at 1:17 AM, Malik Rumi  wrote:

> This is somewhat like the question in "need help moving to production
> server" but I think the right procedure is to start a new thread. So I
> think I have done well for just starting out. With your help I've gotten
> Django running on Windows, and I completed a tutorial and got my site
> working locally with the admin. thank you.
>
> So I thought I was ready to move up to MySQL for some heavy lifting. I
> followed the instructions I got here
> http://matthewwittering.com/blog/how-to-migrating-the-database-engine-for-django.html.
> I did not know what to do with the NAME part, so I put in 'django-1', and
> promptly got the error message 'unknown database 'django-1'. I thought that
> made sense because I hadn't created this database in mysql already, but I
> was just blindly following along. Having to CREATE DATABASE doesn't make
> sense, I thought, because it defeats the purpose of Django abstraction in
> the first place. Besides, when I syncdb, it should take whatever name I
> gave it when I was using sqlite3, right?
>
> Wrong. When I ran syncdb, this time with NAME: ' ', I got :   File
> "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 36, in default
> terror handlerraise errorclass, errorvalue
> django.db.utils.OperationalError: (1046, 'No database selected').
>
> So, what am I missing here? There almost certainly is an easy solution I'm
> not seeing. Do I need to create a database in mysql? If so, must it have
> the same name as it had in sqlite3? I know that name was made from putting
> the model name together with something else, but I don't actually remember
> what it was, and it seems like a lot of extra work to install an sqlite
> browser just to get that name right. If that's what I need to do, maybe I
> can just open that file with notepad?
>
> Or can I create the database, (presumably directly in the shell), and then
> empty it, as these instructions say, and that will take care of it? I
> frankly didn't understand why I would need to 'empty' a new and empty
> database, but that's what it says.
>
> Any and all helpful advise welcome and appreciated.
>
>   --
> 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/f4a6d446-7cf8-498a-8ba5-04e339dd80b9%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
*Ariel E. Isidro*
Backup your important files, click here  <http://db.tt/7cLLR7V/>

DISCLAIMER: This message is for the designated recipient only and may
contain confidential and/or privileged information. If you have received it
in error, please delete it and advise the sender immediately. You should
not copy or use it for any other purpose, nor disclose its contents to any
other person.

-- 
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/CAECOjiZL2Jx0M%2BYVdpX45TQDfQBGNgzMGGmOo6XiGb6JtwVkgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django with no relational db?

2014-01-22 Thread Rafael E. Ferrero
Are you tried nikola <http://getnikola.com/>? maybe works for you... its
for flatpages. Also you can find his author on pyar google
groups<http://www.python.org.ar>

See you

Saludos Cordiales,
--
Rafael E. Ferrero


2014/1/22 graeme 

> You do lose a lot without a relational DB: model forms, auth, admin. I
> think sessions should work as long as you do not use the DB backend.
>
> You could try django-nonrel: http://django-nonrel.org/ I have never tried
> it myself but from the documentation it seems to keep a lot more of the
> functionality of Django than just using Django without a relational DB.
>
> There are plenty of other Python frameworks. Flask is worth a look.
>
> You may get a better answer if we knew why you are using the file system
> and nosql.
>
>
> On Wednesday, January 22, 2014 8:26:49 AM UTC+5:30, devash wrote:
>>
>>
>>  I am building an app with no relational DB. All data will be in flat
>> files now and nosql dbs in future.
>>
>>  I plan to use django-tastypie for rest api and mostly pure python from
>> rest api code to connect to file system and non relational backend python
>> api. I do not plan to use Django ORM.
>>
>>  I will have web pages, d3.js, authenticated users and sessions.
>>
>>  1) Is it even possible to use Django without relational DB?
>>
>>  I noticed many of Django's core app like auth and session depend on
>> having relational DB. Am i correct?
>>
>>  2) Does it even make sense to use Django here? Is Django appropriate
>> technology/framework to use here? or any other python alternatives I should
>> look at?
>>
>  --
> 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/85bd3a1b-41bc-40ce-954d-cb33060de572%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CAJJc_8V3Hm1P%2BXYcmCRcY0pmOomJpC7owByx7hbAmH%3DyXJ_XHA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: building multiple dynamic websites on the fly

2014-01-07 Thread Rafael E. Ferrero
Django its not a DNS Server you need one (like BIND) to point yours domains
IMHO you can use python scripts for automate Bind config files.

See u.


2014/1/7 Mrinmoy Das 

> Hi,
>
> Is there a pure django solution towards this problem?
>
>
> Mrinmoy Das
> http://goromlagche.in/
>
>
> On Tue, Jan 7, 2014 at 6:49 PM, Rafael E. Ferrero <
> rafael.ferr...@gmail.com> wrote:
>
>>
>> 2014/1/7 Mrinmoy Das 
>>
>>> Yeah I am working with django. Thing is I want the users to have their
>>> own domain names. Which I will store on my database and there site will be
>>> running on that domain name. But all these will be under a single django
>>> project. So how do I solve the urls and domain names?
>>>
>>> Mrinmoy Das
>>> http://goromlagche.in/
>>>
>>> Maybe you must to create an script for create DNS config files ?
>> If the user want to use his own .com or .net or whatever... they must to
>> point his domain to a DNS Service... if you has your own domain and every
>> user has his own SUBdomain from you then you must create that on your own
>> DNS.
>>
>> Hope to help you!
>>
>>
>>>
>>>  On Tue, Jan 7, 2014 at 6:25 PM, Mark Moss  wrote:
>>>
>>>> So, you are trying to create a "website builder". instead of asking how
>>>> to build the entire project, break the project into smaller chunks (like,
>>>> login, profile mgmt, site creator, preview manager etc). Then start
>>>> building it yourself and start asking your questions when you face
>>>> challenges.
>>>>
>>>> -
>>>> - Mark
>>>> Try *Pre-installed Django Framework
>>>> <http://www.gigapros.com/portal/django-hosting>* that works instantly
>>>> out-of-the box!
>>>>
>>>> --
>>>> 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/1f49e1a2-f92f-477a-a8e2-6f5f00978106%40googlegroups.com
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  --
>>> 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/CAFWA-MP8tB0uKrb8zRdym%2BXSSv%2BX3KHk6UZ8B6D-9jSYb%3DC0Vg%40mail.gmail.com
>>> .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Rafael E. Ferrero
>>
>> --
>> 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/CAJJc_8V1rJQPQvph83UORPRh_0-yZ-YdMu5A5iO_PYJvg9C-PA%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> 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/CAFWA-MOXmT9o7oUSx0dCP0ZzUt6m4vZCyLuNk2dAXJvXUEFirw%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8VZrnkWjafO8tdwOuChzFOJHOYYwL%3DZMUNJHwN2RR%2Bm%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: building multiple dynamic websites on the fly

2014-01-07 Thread Rafael E. Ferrero
2014/1/7 Mrinmoy Das 

> Yeah I am working with django. Thing is I want the users to have their own
> domain names. Which I will store on my database and there site will be
> running on that domain name. But all these will be under a single django
> project. So how do I solve the urls and domain names?
>
> Mrinmoy Das
> http://goromlagche.in/
>
> Maybe you must to create an script for create DNS config files ?
If the user want to use his own .com or .net or whatever... they must to
point his domain to a DNS Service... if you has your own domain and every
user has his own SUBdomain from you then you must create that on your own
DNS.

Hope to help you!


>
> On Tue, Jan 7, 2014 at 6:25 PM, Mark Moss  wrote:
>
>> So, you are trying to create a "website builder". instead of asking how
>> to build the entire project, break the project into smaller chunks (like,
>> login, profile mgmt, site creator, preview manager etc). Then start
>> building it yourself and start asking your questions when you face
>> challenges.
>>
>> -
>> - Mark
>> Try *Pre-installed Django Framework
>> <http://www.gigapros.com/portal/django-hosting>* that works instantly
>> out-of-the box!
>>
>> --
>> 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/1f49e1a2-f92f-477a-a8e2-6f5f00978106%40googlegroups.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> 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/CAFWA-MP8tB0uKrb8zRdym%2BXSSv%2BX3KHk6UZ8B6D-9jSYb%3DC0Vg%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8V1rJQPQvph83UORPRh_0-yZ-YdMu5A5iO_PYJvg9C-PA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django app for text selection and time measurement

2013-12-19 Thread Rafael E. Ferrero
Really, imho your django skills to do that shoudn't be so high... just a
model that suite your needs for render a html page with sentences where
select text and save the selections and the time).
Create some view to render the template where you show sentences, and other
to save selected text and time.
Then, in your template, using javascript, develop something to start
counting time the way you want (here is when javascript skills is needed),
and when finish invoque the save view.

That, i think, its the most easy aproach.

C U


2013/12/19 Mario Hari 

> Vicherot,
>   okay. I know how to create a basic django app like blog etc.
> If you guide me to some tutorials/blogs/apps that specifically or closely
> deals with what I need, It can be much helpful to me. Thanks:)
>
> Mario
>
>>  --
> 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/e8f699f8-4825-4394-be4f-0f7a579de8fe%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8UbuLw-q0JEeNS4RYoyA-rbYdJz_b%3Dw3ei11Co-MU_eDw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django app for text selection and time measurement

2013-12-19 Thread Rafael E. Ferrero
uhm... imho you must to do that with javascript maybe? and use django to
render the sentences and then to store the thing (time, selected text,
etc.) maybe with sqlquery for database (for simplicity).

Hope to help you in some way.




2013/12/19 Mario Hari 

> Hi,
>  I want to develop a django app where the users have to select some
> text in a given sentence; And I need to store the selected text and the
> time taken for selecting that text. I'm a newbie to django. Can you help me
> with how should i do this? Is there any relevant apps that I can make use
> of with little/minor changes. Thanks in advance:)
>
> Mario
>
> --
> 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/98875243-7ac9-43a9-90ed-5b7c31246b1b%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

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


Re: I have a problem with wizard.

2013-12-10 Thread Rafael E. Ferrero
Good Work !!


2013/12/10 Olga Burdonova 

> I tested it with django 1.6 and 1.5
>
> --
> 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/6fd8f358-d348-4ae6-8e51-e3b0f588a033%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8V4DR7vdLyiV63kkpcEQ%2Bt3uAtNCOZKM12unGU0Z1atfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: auto populating the fields in the models

2013-12-01 Thread Rafael E. Ferrero
sorry my previous message... it was not quite clear... here again:



2013/12/1 Rafael E. Ferrero 

> IMHO with this design you first need an user and a thread to create a new
> message.
>
> In the admin interface you gonna look a + button to create a user and
> other to create a thread.
>


OR

You can redefine the save method of your model. For example:


>
> For example
>
> class Message(models.Model):
> thread = models.ForeignKey(Thread)
> sent_date = models.DateTimeField(default=datetime.now)
> body = models.TextField()
> user = models.ForeignKey(User)
>
> def save(self):
> if not self.id:
> #on a new message do something
> #on modify message do somenthing else
> super(Message, self).save()
>
>
>
>
>
>
> 2013/12/1 Aamu Padi 
>
>> Hello, please have a look at my models.py.
>>
>> *models.py:*
>>
>>> class Thread(models.Model):
>>> pass
>>>
>>> class ThreadParticipant(models.Model):
>>> thread = models.ForeignKey(Thread)
>>> user = models.ForeignKey(User)
>>>
>>> class Message(models.Model):
>>> thread = models.ForeignKey(Thread)
>>> sent_date = models.DateTimeField(default=datetime.now)
>>> body = models.TextField()
>>> user = models.ForeignKey(User)
>>>
>>> class MessageReadState(models.Model):
>>> message = models.ForeignKey(Message)
>>> user = models.ForeignKey(User)
>>> read_date = models.DateTimeField()
>>>
>> I am having two problems when I try to create a new message:
>>
>>1. How do I auto populate the Thread with its primary key whenever I
>>create a new message, without manually creating a new thread?
>>2. How to create a new user if the user is not in the the
>>ThreadParticipant, or else don't create a new user?
>>
>> I think I can solve this all in the views.py, but I think it will be
>> better to solve this in the models.py. Please help me solve the problem. I
>> would be very grateful. 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHSNPWsLC1LW1pqpYe-FUmC4k4twxBV8HrLxRex4e6VNicoBdQ%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Rafael E. Ferrero
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8VJCH01_SQZKOkAz%3DhwHgC%3Dsj-w%3DKLQTxJc1K92RZ11jw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: auto populating the fields in the models

2013-12-01 Thread Rafael E. Ferrero
IMHO with this design you first need an user and a thread to create a new
message.

In the admin interface you gonna look a + button to create a user and other
to create a thread.

For example
class Message(models.Model):
thread = models.ForeignKey(Thread)
sent_date = models.DateTimeField(default=datetime.now)
body = models.TextField()
user = models.ForeignKey(User)

def save(self):
if not self.id:
#on a new message do something
#on modify message do somenthing else
super(Message, self).save()






2013/12/1 Aamu Padi 

> Hello, please have a look at my models.py.
>
> *models.py:*
>
>> class Thread(models.Model):
>> pass
>>
>> class ThreadParticipant(models.Model):
>> thread = models.ForeignKey(Thread)
>> user = models.ForeignKey(User)
>>
>> class Message(models.Model):
>> thread = models.ForeignKey(Thread)
>> sent_date = models.DateTimeField(default=datetime.now)
>> body = models.TextField()
>> user = models.ForeignKey(User)
>>
>> class MessageReadState(models.Model):
>> message = models.ForeignKey(Message)
>> user = models.ForeignKey(User)
>> read_date = models.DateTimeField()
>>
> I am having two problems when I try to create a new message:
>
>1. How do I auto populate the Thread with its primary key whenever I
>create a new message, without manually creating a new thread?
>2. How to create a new user if the user is not in the the
>ThreadParticipant, or else don't create a new user?
>
> I think I can solve this all in the views.py, but I think it will be
> better to solve this in the models.py. Please help me solve the problem. I
> would be very grateful. 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHSNPWsLC1LW1pqpYe-FUmC4k4twxBV8HrLxRex4e6VNicoBdQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8X57NNm0qk1Z%3Dp%2B1D0MYADACM23b6zZOKFG_EHgOK7f5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Email Templates and the full website URL

2013-11-29 Thread Rafael E. Ferrero
Good work!!


2013/11/29 Vibhu Rishi 

> Thanks for the links. I had done the google searches and gone through
> them, but they seemed to me a lot of work to get something simple.
>
> I finally did the following. Any comments welcome if this is not a good
> way to do.
>
> In my view, I pass a context object of the request to the email template.
> I need the request as i also want to put in the user's name.
>
> in the email template now I changed it to :
> http://{{request.get_get_host}}{% url "project.views.details"
> project.id %}">{{ project }}
>
> This seems to be working and quite simple too !
>
> Regards,
> Vibhu
>
>
>
>
> On Fri, Nov 29, 2013 at 4:26 PM, Rafael E. Ferrero <
> rafael.ferr...@gmail.com> wrote:
>
>>
>> https://docs.djangoproject.com/en/dev/ref/contrib/sites/#getting-the-current-domain-for-full-urls
>>
>>
>> 2013/11/29 Vibhu Rishi 
>>
>>>  hi,
>>>
>>> I have a setup where I have a project details page, and I can do a "send
>>> email" which should send the email with the URL.
>>>
>>> Email is working fine.
>>>
>>> The problem is that i am getting a relative url in the tempalte
>>>
>>> I have the following in the html email template :
>>> {{ project }}
>>>
>>> This give me a URL in the email as /projects/1 ( 1 being the project id)
>>>
>>> How do i prepend the url of the server here ? e.g. I want this to be
>>> http://localhost:8000/projects/1
>>>
>>> Vibhu
>>>
>>> --
>>> Simplicity is the ultimate sophistication. - Leonardo da Vinci
>>> Life is really simple, but we insist on making it complicated. -
>>> Confucius
>>>
>>> --
>>> 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/CAPiONwn6cHwi51fJ63oFUOLof2QmFqsSeqz2VeOM_Jxk%2BaUYGQ%40mail.gmail.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Rafael E. Ferrero
>>
>> --
>> 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/CAJJc_8WWUyfwYd1cjxNzvm0xe5LjUTNDjPGDnYaaxE9w3B1C-g%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Simplicity is the ultimate sophistication. - Leonardo da Vinci
> Life is really simple, but we insist on making it complicated. - Confucius
>
> --
> 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/CAPiONw%3D7Uh9uReNyCCzhGb%3D09WHCzY9rSPp9mYn_eJRsHwmNpw%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8WiwQjgNPKX4RZ0eQu%3DkYz%2BH51BywB0rQMVJ4u8XW8hbw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Email Templates and the full website URL

2013-11-29 Thread Rafael E. Ferrero
and this can help too
http://stackoverflow.com/questions/2119342/python-url-template-tags-giving-only-part-of-a-absolute-url-must-be-a-lack-o


2013/11/29 Rafael E. Ferrero 

>
> https://docs.djangoproject.com/en/dev/ref/contrib/sites/#getting-the-current-domain-for-full-urls
>
>
> 2013/11/29 Vibhu Rishi 
>
>> hi,
>>
>> I have a setup where I have a project details page, and I can do a "send
>> email" which should send the email with the URL.
>>
>> Email is working fine.
>>
>> The problem is that i am getting a relative url in the tempalte
>>
>> I have the following in the html email template :
>> {{ project }}
>>
>> This give me a URL in the email as /projects/1 ( 1 being the project id)
>>
>> How do i prepend the url of the server here ? e.g. I want this to be
>> http://localhost:8000/projects/1
>>
>> Vibhu
>>
>> --
>> Simplicity is the ultimate sophistication. - Leonardo da Vinci
>> Life is really simple, but we insist on making it complicated. -
>> Confucius
>>
>> --
>> 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/CAPiONwn6cHwi51fJ63oFUOLof2QmFqsSeqz2VeOM_Jxk%2BaUYGQ%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Rafael E. Ferrero
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8Wos%3D9zkYW5QyXnqOE9YCdEhd%3D2gY4fo-9Rx%2Bc5MMfmNw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Email Templates and the full website URL

2013-11-29 Thread Rafael E. Ferrero
https://docs.djangoproject.com/en/dev/ref/contrib/sites/#getting-the-current-domain-for-full-urls


2013/11/29 Vibhu Rishi 

> hi,
>
> I have a setup where I have a project details page, and I can do a "send
> email" which should send the email with the URL.
>
> Email is working fine.
>
> The problem is that i am getting a relative url in the tempalte
>
> I have the following in the html email template :
> {{ project }}
>
> This give me a URL in the email as /projects/1 ( 1 being the project id)
>
> How do i prepend the url of the server here ? e.g. I want this to be
> http://localhost:8000/projects/1
>
> Vibhu
>
> --
> Simplicity is the ultimate sophistication. - Leonardo da Vinci
> Life is really simple, but we insist on making it complicated. - Confucius
>
> --
> 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/CAPiONwn6cHwi51fJ63oFUOLof2QmFqsSeqz2VeOM_Jxk%2BaUYGQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

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


Re: discution

2013-11-28 Thread Rafael E. Ferrero
The original post was on French, my recommendation was both English and
French, yours was only on english... so i suppose that your message was for
me, Avraham.

Avraham, I say "almost"  and say "on this group"... off course there are a
lot of python and django regional communities, PYAR its my first consulting
option always because are of my country (Argentina). I gave a
recommendation to Assane for use this group correctly (using google
translate you can get a decent translation, and was my recommendation too)

I hope to not take this in a wrong way,

Cheers.

2013/11/27 Avraham Serour 

> Not everybody can express their problems in english, there are many django
> communities in each language, if not at least regional python communities
> exists around the globe.
>
> I'm almost certain that there is at least one french django list, maybe
> some french speaking soul here can direct him
>
>
> On Wed, Nov 27, 2013 at 3:37 PM, Rafael E. Ferrero <
> rafael.ferr...@gmail.com> wrote:
>
>> Almost everyone on this group can read and write in English, i'll
>> recomend you to write in English to have a really good answer.
>>
>> From http://translate.google.com:
>> Presque tout le monde sur ce groupe peut lire et écrire en anglais, je
>> vous le recommande d'écrire en anglais pour avoir une très bonne réponse.
>>
>>
>> start here: https://docs.djangoproject.com/fr/1.6/
>>
>>
>> 2013/11/27 Assane Ka 
>>
>>> je suis sur un projet qui utilise django mais j'ai encore peu d'idée sur
>>> le fonctionnement de django ( ses capacités, dans les script python, avec
>>> les sgbd, ses limite, ses failles)
>>>
>>> --
>>> 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/1854e668-0a3d-4a55-ac98-bd9e978e124c%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Rafael E. Ferrero
>>
>> --
>> 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/CAJJc_8XydFAS%3DG4jtOv%2Bof5FpVBxp8%2B2%2BzcuWqv3OifwdLHYyg%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> 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/CAFWa6tJpkn5RdYpdfA7CC%3DpAtAgR3dLAt1TX3YNpb_dFaO1tmA%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8UDb2vGmsh21vsa4b3QoFA%3DyTCZ12nPkFtGEtLSzSXAiA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: discution

2013-11-27 Thread Rafael E. Ferrero
Almost everyone on this group can read and write in English, i'll recomend
you to write in English to have a really good answer.

>From http://translate.google.com:
Presque tout le monde sur ce groupe peut lire et écrire en anglais, je vous le
recommande d'écrire en anglais pour avoir une très bonne réponse.


start here: https://docs.djangoproject.com/fr/1.6/


2013/11/27 Assane Ka 

> je suis sur un projet qui utilise django mais j'ai encore peu d'idée sur
> le fonctionnement de django ( ses capacités, dans les script python, avec
> les sgbd, ses limite, ses failles)
>
> --
> 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/1854e668-0a3d-4a55-ac98-bd9e978e124c%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rafael E. Ferrero

-- 
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/CAJJc_8XydFAS%3DG4jtOv%2Bof5FpVBxp8%2B2%2BzcuWqv3OifwdLHYyg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Bug Tracker System

2013-11-22 Thread Rafael E. Ferrero
Hello, everybody... someone knows if there is a good bug tracker system
like Trac or Mantis but django based??

many thanks in advance!

-- 
Rafael E. Ferrero

-- 
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/CAJJc_8V2Xns9bkmwT4KzYaUWEX5dO_woDkvuY49H8wvRRy7%2B%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


  1   2   3   >