ANN: Django-Shorty 0.1.0 released

2012-03-13 Thread andrea mucci
Hi All

i'm happy to announce the release of Django-Shorty 0.1.0 is a simple GPL3 app 
for building "private" Django shortening Url service.

this release offer:

- Bijective encode/decode slug
- Django admin interface integration
- 301 HTTP Status Code
- Password protected URL redirection
- URL moderation
- Django User integrated

The project is still on Beta

Roadmap

- REST Interface
- Image Short Link
- Track Visits

Django-Shorty Git repo: https://github.com/ogonbat/django-shorty
Django-Shorty issue tracker: https://github.com/ogonbat/django-shorty/issues
Django-Shorty documentation: 
http://django-shorty.readthedocs.org/en/latest/index.html

Thank's
Andrea

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django for Enterprise

2012-04-10 Thread andrea mucci
hi ivo

the problem is not if Django is a good framework for huge project, but if you 
or your devs have experience to design and maintain some "big" projects.
with python and django have a lot of projects with huge traffic or huge 
database design, so i think is possible to create something very "strong"
> Does anybody already worked on a really hudge project? 
> 
> 
YES or NO, what do you mean for huge project
with a lot of traffic?
with different technologies?
for a big customer?

> t's easy to start a good quality job with juniors developers?
> 

NO

> I know that python and django  are both easy to learn.
> 
YES, but is not the reason for a good and fast code creation


cheers,

El 10/04/2012, a las 21:50, Ivo Marcelo Leonardi Zaniolo escribió:

> Hi there, a got those  questions annoying me...
> 
> Is django ready to a hudge enterprise project?
> I'm not talking of a website, it's more like an Erp.
> 
> Does anybody already worked on a really hudge project? 
> A really hudge.
> 
> Here in Brazil we have few  python or django experts. Here in our local 
> market there's lots of c# and Java programmers.
> 
> It's easy to start a good quality job with juniors developers? 
> I know that python and django  are both easy to learn.
> 
> Please guys, I looking for responses based on great django experiences.
> 
> Tanks a lot guys 
> Ivo Marcelo Leonardi Zaniolo
> Sent from mobile 
> imarcelolz.blogspot.com.br
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django for Enterprise

2012-04-10 Thread andrea mucci
hi ivo

maybe this is a problem for a tons of projects.
but you can solve putting your job request to:
http://www.python.org/community/jobs/

offer a good salary ( if you want a ferrari you need to pay for that )

or, ask to this comity if have some experienced dev that want to work for you ( 
maybe offer a telecommuting job )
a finally, ask if have some projects posted on github or bitbucket and if not 
if have some certified references for past jobs

cheers,
El 10/04/2012, a las 22:17, Ivo Marcelo Leonardi Zaniolo escribió:

> Tanks Andrea.
> 
> Maybe my biggest problem is to find good developers.
> 
> 
> Att
> Ivo Marcelo Leonardi Zaniolo
> Sent from mobile
> 
> On Apr 10, 2012 5:11 PM, "andrea mucci"  wrote:
> hi ivo
> 
> the problem is not if Django is a good framework for huge project, but if you 
> or your devs have experience to design and maintain some "big" projects.
> with python and django have a lot of projects with huge traffic or huge 
> database design, so i think is possible to create something very "strong"
>> Does anybody already worked on a really hudge project? 
>> 
>> 
> YES or NO, what do you mean for huge project
> with a lot of traffic?
> with different technologies?
> for a big customer?
> 
>> t's easy to start a good quality job with juniors developers?
>> 
> 
> NO
> 
>> I know that python and django  are both easy to learn.
>> 
> YES, but is not the reason for a good and fast code creation
> 
> 
> cheers,
> 
> El 10/04/2012, a las 21:50, Ivo Marcelo Leonardi Zaniolo escribió:
> 
>> Hi there, a got those  questions annoying me...
>> 
>> Is django ready to a hudge enterprise project?
>> I'm not talking of a website, it's more like an Erp.
>> 
>> Does anybody already worked on a really hudge project? 
>> A really hudge.
>> 
>> Here in Brazil we have few  python or django experts. Here in our local 
>> market there's lots of c# and Java programmers.
>> 
>> It's easy to start a good quality job with juniors developers? 
>> I know that python and django  are both easy to learn.
>> 
>> Please guys, I looking for responses based on great django experiences.
>> 
>> Tanks a lot guys 
>> Ivo Marcelo Leonardi Zaniolo
>> Sent from mobile 
>> imarcelolz.blogspot.com.br
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread andrea mucci
hi Cal

> Our solutions are high volume (peaking at around 5000 requests/minute), with 
> extremely large databases (400 million+ rows) and large content servers 
> (15TB+ of media files).

If you put in the hands of a junior dev this, your customer has to pay more for 
damages over wage offered
this is what makes no sense.

anyway, the fact that there is someone who has a salary so painful not exclude 
that the offer is a shit.

cheers,
El 10/04/2012, a las 22:31, Cal Leeming [Simplicity Media Ltd] escribió:

> Hi all,
> 
> Another urgent position has come up in our company, applicant needs to have 
> some experience with using Django but must also be comfortable with PHP (our 
> clients are a 50/50 split between PHP and Django).
> 
> --
> 
> Simplicity Media Ltd are an established UK company providing bespoke IT 
> solutions for a variety of clients across the globe.
> 
> We are currently looking for a flexible and diverse developer to maintain and 
> extend our existing PHP deployments.
> 
> Our solutions are high volume (peaking at around 5000 requests/minute), with 
> extremely large databases (400 million+ rows) and large content servers 
> (15TB+ of media files).
> 
> The successful candidate should have at least 2 years commercial experience, 
> be fluent OOP, and have a general understanding of what it means to be a good 
> programmer.
> 
> We're looking for a real person with real emotion, not a corporate robot - 
> and being a team player is absolutely critical. Our company attitude is firm 
> but fair, we encourage a healthy mixture of fun/work, and we even have a 
> 'NSFW' IRC channel!
> 
> Essential skills:
> * PHP 5.x (OOP)
> * MySQL
> * Linux (Debian)
> * Bash (shell/ssh etc)
> 
> Desired (non-essential) skills:
> * MongoDB
> * Redhat
> * Percona
> * Memcache
> * Redis
> * Python
> 
> Desired (non-essential) experience:
> * CodeIgniter (PHP)
> * TubeX (PHP)
> * Django (Python)
> * JIRA (Atlassian)
> * Basecamp
> * Zendesk
> * Livechat
> 
> MINIMUM CRITERIA:
> * MUST be able to work on either EST or GMT+0 timezone
> * MUST be able to work 30+ hours a week.
> * MUST be comfortable working on 18+ sites.
> * MUST be fluent in written & spoken English
> 
> The position is full time, offering around $2000/month (roughly £1200/month) 
> for the right candidate - price/hours are negotiable.
> 
> This position MUST be filled by 15th April 2012.
> 
> When applying, please also include a cover note explaining why you feel you 
> would be suitable for this role.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread andrea mucci
hi cal

ok,
so, you can re-write your offer asking for a junior dev, inexperienced or less 
experienced and for example, if your customer offer courses, certifications or 
something like this.
this make sense and you will get more resumes and better answers.

i restructure my last sentence
> anyway, the fact that there is someone who has a salary so painful not 
> exclude that the offer is "bad"

cheers,
El 10/04/2012, a las 23:18, Cal Leeming [Simplicity Media Ltd] escribió:

> 
> 
> On Tue, Apr 10, 2012 at 10:12 PM, andrea mucci  wrote:
> hi Cal
> 
>> Our solutions are high volume (peaking at around 5000 requests/minute), with 
>> extremely large databases (400 million+ rows) and large content servers 
>> (15TB+ of media files).
> 
> 
> If you put in the hands of a junior dev this, your customer has to pay more 
> for damages over wage offered
> this is what makes no sense.
> 
> Not necessarily, you don't throw junior devs into the production environment 
> - that's just silly :)
> 
> See, we deal a lot with students and interns, so we already have the 
> structure in place to train people on the job, slowly introduce them into 
> sensitive/complex systems etc.
> 
> Everyone's got to start somewhere!
>  
> 
> anyway, the fact that there is someone who has a salary so painful not 
> exclude that the offer is a shit.
> 
> No need for bad language
>  
> 
> cheers,
> El 10/04/2012, a las 22:31, Cal Leeming [Simplicity Media Ltd] escribió:
> 
>> Hi all,
>> 
>> Another urgent position has come up in our company, applicant needs to have 
>> some experience with using Django but must also be comfortable with PHP (our 
>> clients are a 50/50 split between PHP and Django).
>> 
>> --
>> 
>> Simplicity Media Ltd are an established UK company providing bespoke IT 
>> solutions for a variety of clients across the globe.
>> 
>> We are currently looking for a flexible and diverse developer to maintain 
>> and extend our existing PHP deployments.
>> 
>> Our solutions are high volume (peaking at around 5000 requests/minute), with 
>> extremely large databases (400 million+ rows) and large content servers 
>> (15TB+ of media files).
>> 
>> The successful candidate should have at least 2 years commercial experience, 
>> be fluent OOP, and have a general understanding of what it means to be a 
>> good programmer.
>> 
>> We're looking for a real person with real emotion, not a corporate robot - 
>> and being a team player is absolutely critical. Our company attitude is firm 
>> but fair, we encourage a healthy mixture of fun/work, and we even have a 
>> 'NSFW' IRC channel!
>> 
>> Essential skills:
>> * PHP 5.x (OOP)
>> * MySQL
>> * Linux (Debian)
>> * Bash (shell/ssh etc)
>> 
>> Desired (non-essential) skills:
>> * MongoDB
>> * Redhat
>> * Percona
>> * Memcache
>> * Redis
>> * Python
>> 
>> Desired (non-essential) experience:
>> * CodeIgniter (PHP)
>> * TubeX (PHP)
>> * Django (Python)
>> * JIRA (Atlassian)
>> * Basecamp
>> * Zendesk
>> * Livechat
>> 
>> MINIMUM CRITERIA:
>> * MUST be able to work on either EST or GMT+0 timezone
>> * MUST be able to work 30+ hours a week.
>> * MUST be comfortable working on 18+ sites.
>> * MUST be fluent in written & spoken English
>> 
>> The position is full time, offering around $2000/month (roughly £1200/month) 
>> for the right candidate - price/hours are negotiable.
>> 
>> This position MUST be filled by 15th April 2012.
>> 
>> When applying, please also include a cover note explaining why you feel you 
>> would be suitable for this role.
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django tutorial

2012-04-10 Thread andrea mucci
hi Ed

you have configured the DB with the sqlite3 driver and you point the NAME db to 
a mysql folder.
you need to put the folder for your sqlite database.
cheers,
El 10/04/2012, a las 23:15, Ed McLaughlin escribió:

> DATABASES = {
>'default': {
>'ENGINE': 'django.db.backends.sqlite3', # Add
> 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
>'NAME': '/usr/local/mysql/data/mysite',  #
> Or path to database file if using sqlite3.
>'USER': '',  # Not used with sqlite3.
>'PASSWORD': '',  # Not used with sqlite3.
>'HOST': '',  # Set to empty string for
> localhost. Not used with sqlite3.
>'PORT': '',  # Set to empty string for
> default. Not used with sqlite3.
>}
> }
> 
> On Apr 10, 4:27 am, Ejah  wrote:
>> Can you post the db part of your settings file?
>> 
>> On 10 apr, 06:05, Ed McLaughlin  wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> _mysql.so is in there. When I try using sqlite I get this:
>> 
>>> Eds-MacBook-Air:mysite3 edmclaugh76$ python manage.py syncdb
>>> Traceback (most recent call last):
>>>   File "manage.py", line 10, in 
>>> execute_from_command_line(sys.argv)
>>>   File "/Library/Python/2.7/site-packages/django/core/management/
>>> __init__.py", line 443, in execute_from_command_line
>>> utility.execute()
>>>   File "/Library/Python/2.7/site-packages/django/core/management/
>>> __init__.py", line 382, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File "/Library/Python/2.7/site-packages/django/core/management/
>>> base.py", line 196, in run_from_argv
>>> self.execute(*args, **options.__dict__)
>>>   File "/Library/Python/2.7/site-packages/django/core/management/
>>> base.py", line 232, in execute
>>> output = self.handle(*args, **options)
>>>   File "/Library/Python/2.7/site-packages/django/core/management/
>>> base.py", line 371, in handle
>>> return self.handle_noargs(**options)
>>>   File "/Library/Python/2.7/site-packages/django/core/management/
>>> commands/syncdb.py", line 57, in handle_noargs
>>> cursor = connection.cursor()
>>>   File "/Library/Python/2.7/site-packages/django/db/backends/
>>> __init__.py", line 306, in cursor
>>> cursor = self.make_debug_cursor(self._cursor())
>>>   File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/
>>> base.py", line 281, in _cursor
>>> self._sqlite_create_connection()
>>>   File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/
>>> base.py", line 271, in _sqlite_create_connection
>>> self.connection = Database.connect(**kwargs)
>>> sqlite3.OperationalError: unable to open database file
>> 
>>> Any ideas? I really appreciate the help!
>> 
>>> On Apr 9, 10:16 pm, Mario Gudelj  wrote:
>> 
 Go to 
 /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-inte
  l.egg/
 on your Mac and see if _mysql.so is int there. You may need to re-install
 MySQL_python connector. Maybe this can 
 helphttp://www.brambraakman.com/blog/comments/installing_mysql_python_mys...
>> 
 Otherwise, you can always use SQlite for dev environment until you go to
 production. I find it a lot easier to manage.
>> 
 On 10 April 2012 10:54, Ed McLaughlin  wrote:
>> 
> Hello! I am working through the Django tutorial (
> https://docs.djangoproject.com/en/1.4/intro/tutorial01/) and I have
> hit a roadblock in the 'database setup' portion of part 1. When I
> enter the command 'python manage.py syncdb' I get the error below. I
> believe I properly installed MySQL Community Server and mysqldb
> Any help would be GREATLY appreciated.
>> 
> Eds-MacBook-Air:mysite edmclaugh76$ python manage.py syncdb
> Traceback (most recent call last):
>  File "manage.py", line 10, in 
>execute_from_command_line(sys.argv)
>  File "/Library/Python/2.7/site-packages/django/core/management/
> __init__.py", line 443, in execute_from_command_line
>utility.execute()
>  File "/Library/Python/2.7/site-packages/django/core/management/
> __init__.py", line 382, in execute
>self.fetch_command(subcommand).run_from_argv(self.argv)
>  File "/Library/Python/2.7/site-packages/django/core/management/
> __init__.py", line 261, in fetch_command
>klass = load_command_class(app_name, subcommand)
>  File "/Library/Python/2.7/site-packages/django/core/management/
> __init__.py", line 69, in load_command_class
>module = import_module('%s.management.commands.%s' % (app_name,
> name))
>  File "/Library/Python/2.7/site-packages/django/utils/importlib.py",
> line 35, in import_module
>__import__(name)
>  File "/Library/Python/2.7/site-packages/django/core/management/
> commands/syncdb.py", line 8, in 
>from django.core.management.sql import custom_sql_for_model,
> emit_post_sync_signal
>>>

Re: Django tutorial

2012-04-10 Thread andrea mucci
a good solution could be:

SITE_ROOT = os.path.realpath(os.path.dirname(__file__))

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': os.path.join(SITE_ROOT,'sqlite.db'),  # Or 
path to database file if using sqlite3.
'USER': '',  # Not used with sqlite3.
'PASSWORD': '',  # Not used with sqlite3.
'HOST': '',  # Set to empty string for localhost. 
Not used with sqlite3.
'PORT': '',  # Set to empty string for default. Not 
used with sqlite3.
}
}

El 10/04/2012, a las 23:34, william ratcliff escribió:

> Can you try creating a file in that directory at the top of your settings.py 
> file? 
> 
> On Apr 10, 2012 5:15 PM, "Ed McLaughlin"  wrote:
> DATABASES = {
>'default': {
>'ENGINE': 'django.db.backends.sqlite3', # Add
> 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
>'NAME': '/usr/local/mysql/data/mysite',  #
> Or path to database file if using sqlite3.
>'USER': '',  # Not used with sqlite3.
>'PASSWORD': '',  # Not used with sqlite3.
>'HOST': '',  # Set to empty string for
> localhost. Not used with sqlite3.
>'PORT': '',  # Set to empty string for
> default. Not used with sqlite3.
>}
> }
> 
> On Apr 10, 4:27 am, Ejah  wrote:
> > Can you post the db part of your settings file?
> >
> > On 10 apr, 06:05, Ed McLaughlin  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > _mysql.so is in there. When I try using sqlite I get this:
> >
> > > Eds-MacBook-Air:mysite3 edmclaugh76$ python manage.py syncdb
> > > Traceback (most recent call last):
> > >   File "manage.py", line 10, in 
> > > execute_from_command_line(sys.argv)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > __init__.py", line 443, in execute_from_command_line
> > > utility.execute()
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > __init__.py", line 382, in execute
> > > self.fetch_command(subcommand).run_from_argv(self.argv)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > base.py", line 196, in run_from_argv
> > > self.execute(*args, **options.__dict__)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > base.py", line 232, in execute
> > > output = self.handle(*args, **options)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > base.py", line 371, in handle
> > > return self.handle_noargs(**options)
> > >   File "/Library/Python/2.7/site-packages/django/core/management/
> > > commands/syncdb.py", line 57, in handle_noargs
> > > cursor = connection.cursor()
> > >   File "/Library/Python/2.7/site-packages/django/db/backends/
> > > __init__.py", line 306, in cursor
> > > cursor = self.make_debug_cursor(self._cursor())
> > >   File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/
> > > base.py", line 281, in _cursor
> > > self._sqlite_create_connection()
> > >   File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/
> > > base.py", line 271, in _sqlite_create_connection
> > > self.connection = Database.connect(**kwargs)
> > > sqlite3.OperationalError: unable to open database file
> >
> > > Any ideas? I really appreciate the help!
> >
> > > On Apr 9, 10:16 pm, Mario Gudelj  wrote:
> >
> > > > Go to 
> > > > /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-inte
> > > >  l.egg/
> > > > on your Mac and see if _mysql.so is int there. You may need to 
> > > > re-install
> > > > MySQL_python connector. Maybe this can 
> > > > helphttp://www.brambraakman.com/blog/comments/installing_mysql_python_mys...
> >
> > > > Otherwise, you can always use SQlite for dev environment until you go to
> > > > production. I find it a lot easier to manage.
> >
> > > > On 10 April 2012 10:54, Ed McLaughlin  wrote:
> >
> > > > > Hello! I am working through the Django tutorial (
> > > > >https://docs.djangoproject.com/en/1.4/intro/tutorial01/) and I have
> > > > > hit a roadblock in the 'database setup' portion of part 1. When I
> > > > > enter the command 'python manage.py syncdb' I get the error below. I
> > > > > believe I properly installed MySQL Community Server and mysqldb
> > > > > Any help would be GREATLY appreciated.
> >
> > > > > Eds-MacBook-Air:mysite edmclaugh76$ python manage.py syncdb
> > > > > Traceback (most recent call last):
> > > > >  File "manage.py", line 10, in 
> > > > >execute_from_command_line(sys.argv)
> > > > >  File "/Library/Python/2.7/site-packages/django/core/management/
> > > > > __init__.py", line 443, in execute_from_command_line
> > > > >utility.execute()
> > > > >  File "/Library/Python/2.7/site-packages/django/core/

Re: Template inheritance and passing variables

2012-04-10 Thread andrea mucci
Hi
in django documentation 
https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs

Note
The include tag should be considered as an implementation of "render this 
subtemplate and include the HTML", not as "parse this subtemplate and include 
its contents as if it were part of the parent". This means that there is no 
shared state between included templates -- each include is a completely 
independent rendering process.


so a good solution will be, for example


> -- base.html --
> 
> 
>   
> 
>   
>   
>   {% block content %}
>   Default content...
>   {% endblock %}
>   

{% block footer %}
>   {{ app_variable }}
> 
>   
>   
>   
>   Link
>   Link
>   Link
>   
>   
>   
{% endblock %}
>   
> 



with this simple code you can use app_variable and in the same time if you want 
to change the footer code you can call from your template view the footer block 
and add different html code

cheers

El 10/04/2012, a las 23:36, bnkwsk escribió:


> Hi,
> while writing my first website in Django I ran into troubles with
> passing variables in my inherited templates. Let me describe my
> templates' structure.
> 
> I have a base template for all applications' templates which includes
> some parts - just to divide the code into smaller parts.
> 
> My goal is to pass a variable (which will be different for every view
> in every app) to a template included in base template (which is
> inherited by my app's view's templates). I considered using a custom
> context processor but since every view will have its own value of the
> variable, it seems to be a bad idea.
> 
> -- base.html --
> 
> 
>   {% include "base_head.html" %}
> 
>   
>   {% include "base_login.html" %}
> 
>   {% include "base_header.html" %}
> 
>   {% include "base_menu.html" %}
> 
>   {% block content %}
>   Default content...
>   {% endblock %}
> 
>   {% include "base_footer.html" %}
>   
> 
> ---
> 
> -- base_footer.html ---
> {{ app_variable }}
> 
> 
>   
>   
>   Link
>   Link
>   Link
>   
>   
> 
> ---
> 
> Now, in one of my app's view I set the app_variable and render the
> app's template.
> 
> -- views.py ---
> def read(request, news_id):
>news = get_object_or_404(News, pk = news_id)
> 
>app_variable = 'foo'
> 
>return render_to_response('news_read.html', { 'news': news,
> 'app_variable': app_variable }, context_instance =
> RequestContext(request))
> ---
> 
> -- news_read.html -
> {% extends "base.html" %}
> 
> {% block content %}
> 
>   {{ news.title }}
> 
>   {{ news.introduction|safe }}
> 
>   {{ news.content|safe }}
> 
> {% endblock %}}
> ---
> 
> Now, what should I do in order to have the app_variable in base_footer
> template's context?
> I'd be grateful for your help and advice.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is it a good practice to delegate views based on GET / POST?

2012-04-10 Thread andrea mucci
hi 

this is something personal choice
i prefer to check GET and POST directly from the view method, but in some case 
is useful to part the GET and the POST view for readable and clean coding


El 11/04/2012, a las 01:21, John Yeukhon Wong escribió:

> 3/4 down the page
> http://www.djangobook.com/en/2.0/chapter08/
> urlpatterns = patterns('', # ... (r'^somepage/$', views.method_splitter, 
> {'GET': views.some_page_get, 'POST': views.some_page_post}), # ... )
> 
> Is this a good practice at all? If I use the method splitter, my urls will 
> look ugly. Or should I just separate based on the length of certain views? 
> (If it's too long, break it into two, or use the delegator)
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/AzISlKRiq0UJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Admin site not working

2012-04-15 Thread andrea mucci
hi

have you make a syncdb?


El 15/04/2012, a las 15:17, mohamed elsebaey escribió:

> Hi,
> I'm a new user for django, I started using the tutorial for ver 1.4
> with
> python 2.7.1 on mac 10.7.3
> when i try to open the admin site it' gives me the following error
> 
> 
> DoesNotExist at /admin/
> Site matching query does not exist.
> Request Method: GET
> Request URL: http://127.0.0.1:8000/admin/
> Django Version: 1.4
> Exception Type: DoesNotExist
> Exception Value:
> Site matching query does not exist.
> Exception Location: /Library/Python/2.7/site-
> packages/Django-1.4-py2.7.egg/django/db/models/query.py in get, line
> 366
> Python Executable: /usr/bin/python
> Python Version: 2.7.1
> Python Path:
> ['/Users/mohammedelsebaey/a/mysite1',
> '/Library/Python/2.7/site-packages/Django-1.4-py2.7.egg',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python27.zip',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python2.7',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python2.7
> /plat-darwin',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python2.7
> /plat-mac',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python2.7
> /plat-mac/lib-scriptpackages',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/
> python',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python2.7
> /lib-tk',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python2.7
> /lib-old',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
> python2.7
> /lib-dynload',
> '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/
> python/PyObjC',
> '/Library/Python/2.7/site-packages']
> Server time: Sun, 15 Apr 2012 07:08:37 -0500
> 
> 
> This is the installed applications part in the settings.py
> 
> INSTALLED_APPS = (
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'polls',
> # Uncomment the next line to enable the admin:
> 'django.contrib.admin',
> # Uncomment the next line to enable admin documentation:
> #'django.contrib.admindocs',
> )
> 
> and this is the urls.py
> 
> 
> rom django.conf.urls import patterns, include, url
> 
> # Uncomment the next two lines to enable the admin:
> from django.contrib import admin
> admin.autodiscover()
> 
> urlpatterns = patterns('',
> # Examples:
> # url(r'^$', 'mysite1.views.home', name='home'),
> # url(r'^mysite1/', include('mysite1.foo.urls')),
> 
> # Uncomment the admin/doc line below to enable admin documentation:
> # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
> 
> # Uncomment the next line to enable the admin:
> url(r'^admin/', include(admin.site.urls)),
> )
> 
> thanks
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Missing manage.py

2012-04-16 Thread andrea mucci
hi

could you post 
django version
python version
you use virtualenv? if yes what version
and the code you use to generate the project

cheers
El 16/04/2012, a las 13:26, Faeez Abd Rahman escribió:

> Hi,
> 
> I have a problem whenever I create a new project using the start project 
> command, no manage.py file is created. 
> 
> I'm using Mac OS X. Thank you in advance
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: High Traffic

2012-04-16 Thread andrea mucci
hi Yarden

how many users have you in your database?
you use mod_fcgi or mod_python? ( more recommendable will be mod_fcgi or 
mod_fcgid )

Django is framework that suppert very very large traffic.
you can see an example here
http://instagram-engineering.tumblr.com/post/13649370142/what-powers-instagram-hundreds-of-instances-dozens-of

so, the most important think is configure well all the different component 
around your project
like Apache2 ( big monster ), mod_fcgi etc….

cheers,


El 16/04/2012, a las 22:06, Yarden Sachs escribió:

> using aws ec2 & rds. so rolling out that. i monitor every query for high 
> performance. but Users all is very simple query.
> 
> 
> what do u think it could other than those?
> 
> thanks for all the help
> 
> 
> 
> On Monday, April 16, 2012 10:59:55 PM UTC+3, creecode wrote:
> Hello Yarden,
> 
> On Monday, April 16, 2012 12:25:36 PM UTC-7, Yarden Sachs wrote:
> 
> Hello, I am using django 1.3 on apache 2.* on windows server 2008. 
> mysql 5.* 
> 
> When i try to access a view that does this: def view(request): 
> len(User.objects.all()) return HttpResponse() 
> 
> i have about 9K results on that. i am doing len and not .count, 
> because i want to test the server. 
> 
> the server becomes reaally slow.
> 
> Are you running Django and MySQL on the same server box?  If so then you are 
> possibly running into speed issues because of contention.  There are several 
> Djagno configuration docs on the web that talk about using at least one 
> server for your app and another for your database.  Another thing to do is 
> move static files onto their own sever.
> 
> You might want to try django-debug-toolbar to examine your queries for your 
> webpages to see if you can do some optimization.  I highly recommend giving 
> it a go!
> 
> Of course there are many things one can do to make things faster but you'll 
> need to give us some more info about your setup before we can help you more.
> 
> Toodle-loo.
> creecode
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/gTlmPOgGsIkJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: High Traffic

2012-04-16 Thread andrea mucci
have you debugged the mysql query

nginx+fgi work pretty well so is very very strange.

have you tried to test, other type of query result without len method?


El 16/04/2012, a las 22:22, Yarden Sachs escribió:

> i have 9000 rows. and using mod_wsgi on apache2. what am i doing wrong? i 
> tried to switch to nginx+fcgi. and tried ubuntu srrver as well. same results.
> 
> any ideas?
> 
> On 16 באפר 2012 23:18, "andrea mucci"  wrote:
> hi Yarden
> 
> how many users have you in your database?
> you use mod_fcgi or mod_python? ( more recommendable will be mod_fcgi or 
> mod_fcgid )
> 
> Django is framework that suppert very very large traffic.
> you can see an example here
> http://instagram-engineering.tumblr.com/post/13649370142/what-powers-instagram-hundreds-of-instances-dozens-of
> 
> so, the most important think is configure well all the different component 
> around your project
> like Apache2 ( big monster ), mod_fcgi etc….
> 
> cheers,
> 
> 
> El 16/04/2012, a las 22:06, Yarden Sachs escribió:
> 
>> using aws ec2 & rds. so rolling out that. i monitor every query for high 
>> performance. but Users all is very simple query.
>> 
>> 
>> what do u think it could other than those?
>> 
>> thanks for all the help
>> 
>> 
>> 
>> On Monday, April 16, 2012 10:59:55 PM UTC+3, creecode wrote:
>> Hello Yarden,
>> 
>> On Monday, April 16, 2012 12:25:36 PM UTC-7, Yarden Sachs wrote:
>> 
>> Hello, I am using django 1.3 on apache 2.* on windows server 2008. 
>> mysql 5.* 
>> 
>> When i try to access a view that does this: def view(request): 
>> len(User.objects.all()) return HttpResponse() 
>> 
>> i have about 9K results on that. i am doing len and not .count, 
>> because i want to test the server. 
>> 
>> the server becomes reaally slow.
>> 
>> Are you running Django and MySQL on the same server box?  If so then you are 
>> possibly running into speed issues because of contention.  There are several 
>> Djagno configuration docs on the web that talk about using at least one 
>> server for your app and another for your database.  Another thing to do is 
>> move static files onto their own sever.
>> 
>> You might want to try django-debug-toolbar to examine your queries for your 
>> webpages to see if you can do some optimization.  I highly recommend giving 
>> it a go!
>> 
>> Of course there are many things one can do to make things faster but you'll 
>> need to give us some more info about your setup before we can help you more.
>> 
>> Toodle-loo.
>> creecode
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/gTlmPOgGsIkJ.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Newbie form question

2012-07-02 Thread Andrea Mucci
hi

the approach is correct, i think the problem is with the Field name
have you used
choices = ... ?

if yes cloud you change the name of this field?

cheers,

2012/7/2 Russ Abbott 

> As a Django newbie I apologize if this is a trivial question.
>
> I'd like to use a form field as an element in a generated page but not as
> part of a form.  In particular, I'm generating a table, some of whose
> elements are text and others of which I want to be drop-down lists. I
> thought I might be able to use forms.ChoiceField to generate the drop-down
> lists.
>
> When I write
>
> ...
> choices = forms.ChoiceField([1, 2, 3]) # as a test case
> ...
>
> I get a django.forms.fields.ChoiceField object. But when I include it as
> an element of the table nothing appears.
>
> Is this a reasonable approach? (It seems very easy if it really could be
> made to work.) If so, what should I do to get it to display as a drop-down
> list?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/U1l9_rTtkmQJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Step up to the plate

2012-09-06 Thread andrea mucci
Hi Alex

if you need some help contact me to and.mu...@gmail.com

have a nice day
El 07/09/2012, a las 00:18, Alex Glaros  escribió:

> Dear Django Group,
> 
> Can you spare a few lines of code?
> 
> Our nonprofit has a great idea to help the unemployed and spur innovation at 
> the same time.
> 
> All we need is a simple app to let users register.  
> 
> Can I get a community effort from this great Django community to write the 
> registration app? 
> 
> I’ll can do the data modeling, just a few tables, you only need to write the 
> CRUD for it.  Easy Peasy
> 
> It would be great to get a few volunteers to help innovation and the 
> unemployed.
> 
> App will be open source.  Detailed info below.  
> 
> Thanks!
> 
> Alex
> 
> --
> 
> EMPLOYMENT AND INNOVATION PROGRAM
> 
> The nonprofit Center for Government Interoperability (CFGIO) is seeking 
> programming assistance for an employment and innovation program. 
> 
> BACKGROUND
> 
> 1. There are thousands of startup ideas that cannot be implemented due to 
> software developer costs
> 2. There are millions of unemployed, many of whom could learn programming 
> from free sources
> 
> BASIC CONCEPT - Employment Program managed by CFGIO
> 
> 1. Unemployed novice programmers learn from free sources and start writing 
> beginner apps in one year, and write moderately well after 2 years. College 
> students majoring in computer science/MIS would be ready immediately.
> 2. Unemployed novice programmers offer services to startups with simple app 
> or web-design requirements.
> 3. CFGIO sets up centralized database to match learning programmers with 
> startups, and creates processes to help them work effectively together.
> 4. Startups offer equity or delayed transaction-based payments to learning 
> programmers.
> 5. For startups, the purpose is to give them an affordable prototype that 
> allows investors to evaluate and fund production version of their idea. For 
> students, it gives them real-world learning experience and qualifies them to 
> apply for entry-level programming positions, or to start their own startup.
> 
> BENEFITS
> 
> 1. Backlog of programmer positions that need filling is addressed
> 2. Unemployed become employable with high-paying future-proof skills. They 
> also learn project management and SDLC.
> 3. Startup ideas are enabled
> 4. Nationwide innovation is expanded
> 
> IMPLEMENTATION – Request assistance from crowdsourced volunteers to:
> 
> 1. Design curriculum – basically identify Youtube and other free training 
> materials (which now days are great) for each programming language
> 2. Mentor students
> 3. Create environment where students learn from each other
> 4. Design certification process
> 5. Design processes to enhance programmer/startup collaboration
> 
> RESOURCES
> 
> 1. Programming environments are cheap or free: 
> https://developers.google.com/appengine/docs/billing and 
> https://openshift.redhat.com/app/
> 2. Programming forums already provide assistance to newbies
> 
> Any ideas or comments would be greatly appreciated,
> 
> Alex Glaros
> Center for Government Interoperability
> www.gov-ideas.com
> Contact: http://gov-ideas.com/contact.htm 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/TSMxZ0ZKlnoJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Staticfiles on shared hosting using FCGI

2012-01-27 Thread Andrea Mucci
Have you try this

'%s/your_static_folder'%os.path.dirname(__file__)

You crete a folder in the same position of settimg.py

El 14/01/2012, a las 08:06, Tundebabzy  escribió:

> I am stuck after running collectstatic. I don't know how to point the
> server to STATIC_ROOT.
> Can someone give assistance.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: steps to connect as client to a tcp/ip server

2013-05-28 Thread andrea mucci
Hi Chiara

The best solution is make two different projects
one is your socket server and the other is the Django project.
is not a good idea connect with socket directly to Django, this will be cause 
some large delays and in case of connection fails?
what is the timeout of the socket connection?
is the same of dingo app?

The solutions will be, for example
django
celery
socket server

django is independently and the models are updated from celery workers
http://www.celeryproject.org/
this is the link of celery, is not so much easy but you can send some emails in 
this group and i'm sure that someone is ready to help you

have a nice day
El 27/05/2013, a las 14:14, chi...@tecnoelettricabrianza.it escribió:

> Hi there, I'm a really newbye, I've followed the polls tutorial.
>  I'm looking for a way to dinamically create web-pages that will send and 
> receive message to a TCP/Ip server that use a custom protocol for 
> communication.
> I've got the python code that handle the communication and I kindly ask you 
> some advice on the right way to do it:
> 
> 1)create a model with the fields of data to be sent and received from server
> 2)create in the view: 1) function that handle the connection
>  2) function that send data
>  3) function that receive data
> 3) create a template with model's fields
> 
> Is this right?
> 
> Below the python code that is now standalone and working to connect to server.
> 
> 
> #Socket client in python
> 
> import socket   #for sockets
> import sys  #for exit
> 
> #create an INET, STREAMing socket
> try:
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> except socket.error:
> print 'Failed to create socket'
> sys.exit()
> 
> print 'Socket Created'
> 
> host = '192.168.1.1';
> port = 35000;
> 
> try:
> remote_ip = socket.gethostbyname( host )
> 
> except socket.gaierror:
> #could not resolve
> print 'Hostname could not be resolved. Exiting'
> sys.exit()
> 
> #Connect to remote server
> s.connect((remote_ip , port))
> 
> print 'Socket Connected to ' + host + ' on ip ' + remote_ip
> 
> ## SEND DATA
> message = "GET / HTTP/1.1\r\n\r\n"
> 
> try :
> #Set the whole string
> s.sendall(message)
> except socket.error:
> #Send failed
> print 'Send failed'
> sys.exit()
> 
> print 'Message send successfully'
> 
> #RECEIVE DATA
> reply = s.recv(4096)
> 
> print reply
> 
> s.close()
> 
> 
> Please let me know about it. Thanks. BR. 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Merry Xmass

2015-12-24 Thread Andrea Mucci
Merry Xmass to all and all your family
Have a good djangoized new year

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 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/B8DEB09A-4DDD-4B28-BCCF-DAAA457CA60B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.