Re: uWsgi not seeing javascript

2015-04-21 Thread Carlos Aguilar
You don't want serve static files with uwsgi, but, you can configure Nginx
or Apache2 to serve static files.

Kindest Regards

2015-04-21 17:42 GMT-04:00 john <jo...@jfcomputer.com>:

>  OK I will - but where?
> Johnf
>
>
> On 04/21/2015 02:41 PM, Avraham Serour wrote:
>
> You probably are not serving the static files,  can you post your uwsgi
> ini ?
> On Apr 22, 2015 12:02 AM, "john" <jo...@jfcomputer.com> wrote:
>
>> Hi,
>>
>> When I use manage.py the javascript runs.  When I use uWsgi the
>> javascript does not run.  Of course this when I'm using the website.
>>
>> Is there something that is different between the two!
>>
>> Johnf
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send 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/5536BAC2.4040501%40jfcomputer.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/CAFWa6tLBQw-1WdPGSK%2Bk4VMQL1WJzw3Or1%3DrfOz0GTmLNKKAGQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFWa6tLBQw-1WdPGSK%2Bk4VMQL1WJzw3Or1%3DrfOz0GTmLNKKAGQ%40mail.gmail.com?utm_medium=email_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/5536C450.8040902%40jfcomputer.com
> <https://groups.google.com/d/msgid/django-users/5536C450.8040902%40jfcomputer.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

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


Re: Real time and Django - approaches

2015-02-20 Thread Carlos Aguilar
I build something related with realtime using gevent-socketio more than 1
year ago and works really well.

Best Regards

On Fri, Feb 20, 2015 at 6:37 AM, Aaron Reabow <rea...@gmail.com> wrote:

> Hi.
>
> I wanted to see what the Django community thought about realtime circa
> 2015.
>
> My impression (and I could be very wrong) is that if you want real time,
> you should build your own stack up from scratch.  There are frameworks -
> like swampdragon/socketio - that promise to do the hard yards for you, but
> ultimately are either based on older versions of the underlying tech, or
> too green to be in production.
>
> So which stack to build?  There is the gevent route which looks promising
> as it keeps it all in the python family.  (Stack would be something like -
> django/redis/gevent/gunicorn)
>
> From what I have read, gevent becomes opaque and throws up hard to
> understand errors.  Without a strong community behind this, debugging is
> either for the advanced, or extremely dedicated.
>
> Another stack option is to use Node.  I quite like this, despite the
> challenges.  The stack would be django/apache +redis/socetio/node/celery.
> I think the hardest part would be managing oauth2 between the two servers.
> On the upside, django can do all the regular web stuff, with node handling
> realtime components.
>
> So I have just stated my own views from what I could glean from blog
> posts.  I was interested if people had alternate understandings.
>
> What I am building definitely does need pubsub at the least, and to be as
> near to realtime as possible would be an advantage.
>
> many thanks,
>
> Aaron
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 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/a5923d8e-54a4-46ab-8df0-fdbb25ad076b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a5923d8e-54a4-46ab-8df0-fdbb25ad076b%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 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/CAN-g%3Dg%3DP2_k8aK7raPRUHf%2B8JKaahp%2B9kAyF1NKdc%2B1tax8g4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANNOUNCE] Django 1.7 released

2014-09-02 Thread Carlos Aguilar
congratulations!!!

And thank you for a really good job!

Best Regards


On Tue, Sep 2, 2014 at 4:13 PM, James Bennett <ubernost...@gmail.com> wrote:

> Django 1.7 is now available:
>
> https://www.djangoproject.com/weblog/2014/sep/02/release-17-final/
>
> Alongside this are bugfix releases for 1.4, 1.5 and 1.6. The bugfix 1.5
> release is the final releae in the 1.5 series, as Django 1.5 has now
> reached end-of-life.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-develop...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CAL13Cg_Cdzf3aYLxfV0qgrMY3CqbOqt%3D0DxEm1V27%2BzF65O_cA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-developers/CAL13Cg_Cdzf3aYLxfV0qgrMY3CqbOqt%3D0DxEm1V27%2BzF65O_cA%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 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/CAN-g%3Dg%3DW_9MXJiFawGX%2BczkVXLRKhdb6Zvp3AQU6sjnf2zPy7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: websockets in django

2014-08-25 Thread Carlos Aguilar
gt;>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 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/CAFWa6tLEu_jeLUddfs6J7A7AGRhrzZMOsOnkWRfx_OFs-YqA%3DQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFWa6tLEu_jeLUddfs6J7A7AGRhrzZMOsOnkWRfx_OFs-YqA%3DQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 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/CAN-g%3DgmEwChbABazf5nDf9sTp7Jkh%2Bd5AxA4y_FHNGz2Cp6zWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Encoding for test database

2014-01-25 Thread Carlos Aguilar
I have this settings for my database connection:

DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis', # Add
'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'solomon', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': 'postgres',
'PASSWORD': '',
'HOST': 'localhost', # Empty for localhost through domain sockets
or '127.0.0.1' for localhost through TCP.
'PORT': '', # Set to empty string for default.
'CONN_MAX_AGE': 0,
'TEST_CHARSET': 'UTF8',
}
}

Running test I have this error:

==

ERROR: test_adView (api.tests.AdTestCase)

--

Traceback (most recent call last):

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/test/testcases.py",
line 178, in __call__

self._pre_setup()

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/test/testcases.py",
line 749, in _pre_setup

self._fixture_setup()

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/test/testcases.py",
line 881, in _fixture_setup

'skip_validation': True,

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 159, in call_command

return klass.execute(*args, **defaults)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/raven/contrib/django/management/__init__.py",
line 37, in new_execute

return original_func(self, *args, **kwargs)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/core/management/base.py",
line 285, in execute

output = self.handle(*args, **options)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py",
line 55, in handle

self.loaddata(fixture_labels)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py",
line 84, in loaddata

self.load_label(fixture_label)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py",
line 140, in load_label

obj.save(using=self.using)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/core/serializers/base.py",
line 164, in save

models.Model.save_base(self.object, using=using, raw=True)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/models/base.py",
line 573, in save_base

updated = self._save_table(raw, cls, force_insert, force_update, using,
update_fields)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/models/base.py",
line 635, in _save_table

forced_update)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/models/base.py",
line 679, in _do_update

return filtered._update(values) > 0

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/models/query.py",
line 507, in _update

return query.get_compiler(self.db).execute_sql(None)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
line 975, in execute_sql

cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
line 781, in execute_sql

cursor.execute(sql, params)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/backends/util.py",
line 53, in execute

return self.cursor.execute(sql, params)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/utils.py",
line 99, in __exit__

six.reraise(dj_exc_type, dj_exc_value, traceback)

  File
"/home/vagrant/socialdasboard/local/lib/python2.7/site-packages/django/db/backends/util.py",
line 53, in execute

return self.cursor.execute(sql, params)

DataError: Problem installing fixture
'/vagrant/socialdashboard/apps/bidding/fixtures/initial_data.json': Could
not load bidding.Region(pk=19653): character with byte sequence 0xc6 0x92
in encoding "UTF8" has no equivalent in encoding "LATIN1"


I am trying to load a fixature to use with geodjango.

I appreciate your help with this.

Best Regards

-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe f

Re: I need help

2013-02-19 Thread Carlos Aguilar
I fix the error.

Thank you for your time.

The error was caused for a bad access to delete function. Thanks againg.

Best Regards


On Tue, Feb 19, 2013 at 5:55 PM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

>
> On Wed, Feb 20, 2013 at 6:52 AM, Carlos Aguilar <darkange...@gmail.com>wrote:
>
>> I am trying to use the User model outside of django app, but without
>> successful.
>>
>> This is my imports section:
>>
>> from django.core.management import setup_environ
>> from htdjango import settings
>> setup_environ(settings)
>>
>> from django.contrib.auth import get_user_model
>>
>> I am trying many things but right now I am receiving this error:
>>
>> Traceback (most recent call last):
>>   File "htuser.py", line 539, in 
>> user.delete()
>>   File "htuser.py", line 99, in delete
>>  django_user.objects.delete()
>>   File
>> "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line
>> 232, in __get__
>> raise AttributeError("Manager isn't accessible via %s instances" %
>> type.__name__)
>> AttributeError: Manager isn't accessible via HTDjangoUser instances
>>
>
> You've provided code, but not the code that is actually raising the error
> (i.e., htuser.py). However, the error message does tell you exactly what
> you're doing wrong -- you're attempting to access a manager, when what you
> have is an instance.
>
> Your code will be doing something like this:
>
> > myUser = User.objects.get(username='foo')
> > myUser.objects.all()
>
> myUser is an *instance* of User. The ".objects" attribute, representing
> the manager, exists for internal reasons, but you can't use it - you're
> trying to access a manager on an instance.
>
> > User.objects.all()
>
> *would* be legal -- in this case, you're accessing the manager on the
> *class*, not the instance.
>
> Looking at your stack trace, the problem is either on line 539 or line 99
> of htuser.py, where you've switched between working with an instance and
> working with a model. You'll have to work out for yourself what the fix is.
>
> Yours,
> Russ Magee %-)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 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.
>
>
>



-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 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.




Re: Django MongoDB

2012-11-25 Thread Carlos Aguilar
You know which mongoengine and django-nonrel are 2 different libraries for
mongodb???

Please select one and use it, but not both.

Best Regards

-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

-- 
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: Help with error uploading files

2012-11-08 Thread Carlos Aguilar
The screenshot is captured with chrome extension, then, capture all page
and save to png.

The problem is caused by s3_folder_storages. I am replacing the
DEFAULT_FILE_STORAGE bY s3boto storage.

I think as field is ImageField png or jpg are valid images

Best Regards


On Thu, Nov 8, 2012 at 1:21 PM, Dennis Lee Bieber <wlfr...@ix.netcom.com>wrote:

> On Wed, 7 Nov 2012 21:10:06 -0800 (PST), Carlos Aguilar
> <darkange...@gmail.com> declaimed the following in
> gmane.comp.python.django.user:
>
> > Hello,
> >
> > I am working in a project that requires you upload an image in a model.
> The
> > project was started by other developer.
> >
> > Today testing, without realize changes in the model I am receiving the
> > following error:
> >
> > 'cStringIO.StringO' object has no attribute 'size'
>
> Is that a cut? If it is, I suspect a typo...
>
> >
> > I not have idea what is causing the error, then I appreciate your help to
> > fix this.
> >
> > One screenshot of the error:
> >
> > <
> https://lh6.googleusercontent.com/-duPf2J5ejnI/UJs-gygXKgI/CDA/SmKl6Zk2sPM/s1600/waitress-error.png
> >
>
> What type of screen are you using... Even at "full view" my browser
> shows ant droppings... The text lines are TWO PIXELS tall!
>
> Not to mention you called it a PNG file, but that site is displaying a
> JPEG.
> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> 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.
>
>


-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

-- 
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: Help with error uploading files

2012-11-08 Thread Carlos Aguilar
Yesterday doing few test I note that the problem is causes by the following 
configs

DEFAULT_FILE_STORAGE = 'waitress.apps.venues.storage.CachedS3BotoStorage'
DEFAULT_S3_PATH = "media"

I test 2 file storages one is s3_folder_storages.s3.DefaultStorages.

I am using the same config in other project without problems.

I will appreciate your help

-- 
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/-/8waBUK8RcFYJ.
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.



Help with error uploading files

2012-11-07 Thread Carlos Aguilar
Hello,

I am working in a project that requires you upload an image in a model. The 
project was started by other developer. 

Today testing, without realize changes in the model I am receiving the 
following error:

'cStringIO.StringO' object has no attribute 'size'

I not have idea what is causing the error, then I appreciate your help to 
fix this.

One screenshot of the error:



-- 
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/-/r9g4OfY4aygJ.
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.