hi

2021-09-14 Thread Jonathan MBADOU
hi -- 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

django

2021-03-29 Thread Jonathan Bilesi
hi i getting this error ValueError at /empty range for randrange() (0, 0, 0) here my code random_object = Trending.objects.all()[randint(0, len(trending) -1)] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Re: Django/python free Training

2020-12-22 Thread Jonathan Mator
I am interested On Mon, Dec 21, 2020, 12:40 PM David Zea wrote: > Hi. > > I'm Interested! > > > El vie, 18 dic 2020 a las 9:26, Python Class () > escribió: > >> Hi guys, >> >> I am manucho from Kenya and am good developer with django and python and >> i want to teach people what i know .I want

Re: guys help me please, I cannot upload images from django form,

2020-08-29 Thread Jonathan Villavicencio
Hello! in the class Posts in the field "image" add upload_to=upload_path for example: image = models.ImageField(blank=True, null=True, verbose_name='surat', upload_to=upload_path) upload_path is a method write it before of the class definition def upload_path(instance, filename): return '/'.jo

Re: configure nginx

2020-06-22 Thread Jonathan Spicer
>From the error message it appears something is already listening on port 80. Do you apache installed? Or do you have python running as a web server? If something is already using the same port number the service can't start. Kind regards Johnny On Sun, 21 Jun 2020 at 05:21, Giovanni Silva wro

Set a default value for a field as the instance of a second model (which links to a third)

2020-04-28 Thread Jonathan Acres
Based on the topic description, I can't help but feel I'm already overcomplicating this... I have 3 models: - Audit - LeadAuditor - Action The Audit model links to Lead_Auditor so each Audit instance has a single Audit.lead_auditor: *lead_auditor = models.ForeignKey('LeadAuditor', on

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
for example: https://docs.djangoproject.com/en/3.0/ref/models/fields/#foreignkey El vie., 17 de ene. de 2020 a la(s) 11:43, Jonathan Villavicencio ( codejonvi...@gmail.com) escribió: > In your model define a class and in out make the relationship with other > class that reference the other

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
In your model define a class and in out make the relationship with other class that reference the other table in the database El vie., 17 de ene. de 2020 a la(s) 11:14, Stephen (stephen.u...@gmail.com) escribió: > sqlite3 > > On Friday, 17 January 2020 16:53:01 UTC+1, Jonathan Vill

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
Hello Stephen, What is the database you are using? El vie., 17 de ene. de 2020 a la(s) 10:25, Stephen (stephen.u...@gmail.com) escribió: > How can I connect 2 database tables together please?. I am trying to > display some objects in a table by selecting an object that is in another > table. How

Re: Django 3.0 Released.

2019-12-05 Thread Jonathan Morgan
Another thing to consider is whether you need to update the packages you use to build your application. I've found that support for the LTS version of django is not consistent across packages, where support for the latest version is much more consistent, such that sometimes a needed update to a

Re: HELP HELP FATAL: password authentication failed for user "postgres"

2019-11-29 Thread Jonathan Duclos
On Friday, 29 November 2019 09:42:00 UTC-3, EMPOWER EXCEL wrote: > > cqn some body helps me to correct this error while running *python > manager.py runeserver * > (analyseprotection) flavien@flavien-VirtualBox:~/MyProjects/alertprot$ > python manage.py runserver > Performing system checks... >

Re: Problem with SQLite and migrations

2019-08-21 Thread Jonathan Mrutu
Hi Jaemin, You can try to post this question on stack overflow, but why don't you use PostgreSQL this is recommended. SQLite as the name implies it's more for testing purpose in a small project environment. //Jona

Re: DRF with Rich Text

2019-08-21 Thread Jonathan Mrutu
You must secure your endpoints with authentication mechanism and on top of that you might consider using django-rest-knox //Jona On Wed, Aug 21, 2019 at 5:57 PM Yoo wrote: > Hi, > Thanks for the prompt response (and sorry for such a late one). I suppose > I'm simply asking about JSON in genera

Re: Model form will not display in the URL assigned

2019-08-14 Thread Jonathan Villavicencio
Hello!, change the " of the fields of the Meta class to ' in the class Busines..(forms.ModelForm) El mié., 14 ago. 2019 a las 12:38, Kean () escribió: > Hi, > > New to Django, I'm trying to create a form which means user can update in > the browser and it gets stored in the database, however my f

Re: Recreating SQL query in ORM

2019-08-01 Thread Jonathan Spicer
> ).values( > seq=Concat('loading_code', ...), > ids=Concat('loading_id', ), > ).annotate( > total=Count('*'), > ).order_by('-total') > > Using .values() before an annotation of an aggregate function uses the > provided co

Re: Recreating SQL query in ORM

2019-07-30 Thread Jonathan Spicer
Bagiliko wrote: > > Do you want to make this exact query in Django? > Then use Your_model.objects.raw("the query here except the last semi > colon") > > On Tue, Jul 30, 2019, 4:56 PM Jonathan Spicer < > joh...@spicersolutions.co.uk > wrote: > >> Hello,

Recreating SQL query in ORM

2019-07-30 Thread Jonathan Spicer
Hello, I have an sql query that I would like to recreate using the ORM. Would it be possible for someone to give me some pointers. select count(*) as total, concat(loading_code,code1_code,code2_code,code3_code,code4_code) as seq, concat(loading_id,',',code1_id,'

Re: how to convert django application to Windows exe format

2019-07-21 Thread Jonathan May
Pip install pyinstaller and then run “pyinstaller — onefile filename.py” On Sun, Jul 21, 2019 at 6:01 PM Jonathan May wrote: > You can use pyinstaller to convert your py file to exe > > On Sun, Jul 21, 2019 at 5:57 PM Mike Dewhirst > wrote: > >> Try search

Re: how to convert django application to Windows exe format

2019-07-21 Thread Jonathan May
You can use pyinstaller to convert your py file to exe On Sun, Jul 21, 2019 at 5:57 PM Mike Dewhirst wrote: > Try searching for python to exe > > > *Connected by Motorola* > > > Balaji Shetty wrote: > > Hi > > Can anyone please tell me > how to convert django application to Windows exe format.

order_by function gets error if the field name or json key, has a dash.

2019-01-13 Thread Jonathan Espinal
order_by function gets error if the field name or json key, has a dash. I know Django use a dash for asc or desc methods. but in this case the dash is in the middle. EXAMPLE: MyTable.objects.all().order_by('myfield__en-us') I have a jsonb field like: { "es": "Casa", "en-us": "House"

Re: Do queries made instantiating a form not show up in db.connection.queries?

2018-11-01 Thread Jonathan Berger
Thank you! I was looking at the value of 'connection.queries' before rendering the form. On Thu, Nov 1, 2018 at 6:12 PM Karen Tracey wrote: > On Thu, Nov 1, 2018 at 8:14 PM Jonathan Berger > wrote: > >> >> Per the db and model FAQ >> <https://docs.djan

Do queries made instantiating a form not show up in db.connection.queries?

2018-11-01 Thread Jonathan Berger
x27; should contain a list of all SQL queries made by an app. I'm finding actual behavior for a Form subclass that has a ModelMultipleChoiceField with a default queryset, does not add that query to 'connection.queries'. This violates expected behavior. Am I misunderstanding some

Bokeh Server via Django Tutorial

2017-11-08 Thread Jonathan Bennett
.6.39/ Please consider taking it for a spin and giving me any feedback you may have. Thanks, Jonathan -- Jonathan Bennett Kono Analytics p: 713.489.4338 w: konoanalytics.com <https://twitter.com/konoanalytics> <https://linkedin.com/company/kono-analytics> <https://github.com/ko

Supervisor FATAl Exited too quickly (process log may have details(About inet_http_server and unix_http_server)

2017-09-09 Thread Jonathan Cheng
I wrote a Django project and I use supervisor with gunicorn /etc/supervisor/conf.d/weather.conf [group:weather_station] programs=site [program:site] directory=$PROJECT command=/home/nhcc/.local/bin/gunicorn -c /$PROJECT/weather_station/ gunicorn.conf.py -p gunicorn.pod

Django Gunicorn Import Error: no module name wsgi

2017-09-03 Thread Jonathan Cheng
I use Python3.5.2 Django1.9 I use `python -m venv venv/weather_station` to create virtual evnironment (/home/user/venv) This is my project tree in Ubuntu /home/user/myproject: (`export project=/home/user/myproject`) myproject | ├── gunicorn.conf.py ├── static │ ├── admin └─

Heroku push failed

2017-02-05 Thread Jonathan Cheng
In Win10 when i run "git push heroku master" the traceback showed: "python manage.py collectstatic" ,the python file ImportError: No module named 'markdown_deux' but i have installed the django-markdown-deux why i met this traceback?

Re: Import css in Django

2016-09-15 Thread Jonathan Cheng
C+8上午8時43分17秒寫道: > > On 16/09/2016 1:10 AM, Jonathan Cheng wrote: > > thx your code,though i cant run it in cmd > That is correct. It is designed to be imported and called from > settings.py. > > I'll send you a screenshot off-line > > Mike > > > > -

Re: Import css in Django

2016-09-15 Thread Jonathan Cheng
thx your code,though i cant run it in cmd Mike Dewhirst於 2016年9月12日星期一 UTC+8上午10時05分10秒寫道: > > Jonathan > > I use the attached announce.py to display exactly where all the > directories and URLs are. I had trouble in the beginning getting it > straight in my head but seei

Re: Import css in Django

2016-09-15 Thread Jonathan Cheng
thx everyone,all bugs were fixed early. Jonathan Cheng於 2016年9月11日星期日 UTC+8下午10時59分56秒寫道: > > I use django1.10 > > i reference the official doc > https://docs.djangoproject.com/en/1.10/intro/tutorial06/ > > my project name:mysite > >

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
2016-09-11 19:15 GMT+02:00 Jonathan Cheng >: > >> i fixed usint STATIC_ROOD = '/static/' >> it seems to no error >> but when i connect to my runserver >> the css of assets just doesn't work >> >> >> Jonathan Cheng於 2016年9月12日星期一 UTC+8上午

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
2016-09-11 19:15 GMT+02:00 Jonathan Cheng >: > >> i fixed usint STATIC_ROOD = '/static/' >> it seems to no error >> but when i connect to my runserver >> the css of assets just doesn't work >> >> >> Jonathan Cheng於 2016年9月12日星期一 UTC+8上午

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
i use href="{% static '/assets/css/main.css' %}" and it worked but if i want to use the all files in static is there any way to do? ludovic coues於 2016年9月12日星期一 UTC+8上午1時32分42秒寫道: > > If you look at the html send by django, what is the href value ? > > 2016-09-1

Re: Django Ticketing Application

2016-09-12 Thread Jonathan Adcock
You could try https://djangopackages.org/ On Monday, September 12, 2016 at 12:18:38 PM UTC+1, Alexandra wrote: > > Hi, could you please suggest other forums where I can find this > information? > Thank you in advance! > -- You received this message because you are subscribed to the Google Group

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
i fixed usint STATIC_ROOD = '/static/' it seems to no error but when i connect to my runserver the css of assets just doesn't work Jonathan Cheng於 2016年9月12日星期一 UTC+8上午1時04分22秒寫道: > > here i explain , because i just test how main.css work, finally i want to > use the a

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
; your settings.py you wrote "STATIC_ROOT='/mysite/static/'" which says > that static should be subdirectory of mysite which its not a subdirectory > its in a same directory of mysite > > > On Sunday, September 11, 2016 at 8:48:57 PM UTC+4:30, Jonathan Cheng wrot

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
ectstatic which will grab all static file and copy them in a > single directory. > > 2016-09-11 18:18 GMT+02:00 Jonathan Cheng >: > > > > https://gist.github.com/cj10243/fb557903441d4a3e95190b854fbaabe1 > > > > ludovic coues於 2016年9月12日星期一 UTC+8上午12時05分12秒寫

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
ste2.org/ or https://gist.github.com/ to share > it > > 2016-09-11 17:58 GMT+02:00 Jonathan Cheng >: > > thx reply,but it just can see the original html with no css,is my path > > setted correct? > > > > ludovic coues於 2016年9月11日星期日 UTC+8下午11時45分24秒寫道: >

Re: Import css in Django

2016-09-11 Thread Jonathan Cheng
d } in the load > staticfiles tag > > 2016-09-11 7:29 GMT+02:00 Jonathan Cheng >: > > I use django1.10 > > > > i reference the official doc > > https://docs.djangoproject.com/en/1.10/intro/tutorial06/ > > > > my project name:mysite > >

Import css in Django

2016-09-11 Thread Jonathan Cheng
I use django1.10 i reference the official doc https://docs.djangoproject.com/en/1.10/intro/tutorial06/ my project name:mysite structure: - mysite- - mysite - urls.py -views.py ... - templates - ind

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
This is a long shot, but, do you have .pyc files on the repository? If yes, try removing *.pyc Sent from my iPhone > On Oct 13, 2015, at 22:05, Jonathan Querubina wrote: > > No, if debug is true, you do not have to worry about statics yet > > Are you activating the env befor

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
No, if debug is true, you do not have to worry about statics yet Are you activating the env before the runserver command? Sent from my iPhone > On Oct 13, 2015, at 21:56, Ralph Castain wrote: > > >> On Oct 13, 2015, at 5:42 PM, Jonathan Querubina wrote: >> >

Re: Team project via Git repo

2015-10-13 Thread Jonathan Querubina
Have you installed any dependencies via "pip" ? If not and all the code has been done under your djando apps, the problem could be on the git. Have you checked .gitignore ? Sent from my iPhone > On Oct 13, 2015, at 21:38, rhc.open...@gmail.com wrote: > > Just to update: we also tried simply co

Plugging in Require.js

2015-09-09 Thread Christos Jonathan Seth Hayward
I asked how to plug in Require.js at: http://stackoverflow.com/questions/32483810/how-do-i-think-and-act-in-require-js-if-i-have-a-script-src-background-a ​What should I be doing, and what packages should I be using, to be able to use Require.js? Thanks,​ -- [image: Christos Jonathan Seth

Re: Learning Python and Django and should I?? (I have a year of 10 or so hours a week)

2015-08-14 Thread Jonathan Baker
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/4c0

Best Practices for Migrations in Reusable Apps?

2015-06-09 Thread Jonathan Barratt
approaches that occurs to you. Thanks in advance, Jonathan -- 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.c

Re: What is the ideal web server to use with Django?

2015-05-14 Thread Jonathan Barratt
love some time to play around with a circusd + chausette + celery > setup. > > The choice of web server is, these days, irrelevant. If it uses too > much memory or can't handle enough users, it is never the fault of the > web server, but instead of your application and/or conf

Re: getting tuples from http request.GET

2015-03-08 Thread Jonathan Querubina
You could use the same variable name on the querystring and call: request.GET.getlist For example, on a select multiple field ou checkbox  John Mobile & Web developer +55(12)98864-1594 > On Mar 8, 2015, at 00:01, Sunil Sawant wrote: > > Thanks Collin, you cut out the crap from from my code.

Re: initial dta for model in Django 1.7 or newer

2014-12-26 Thread Robert Jonathan Šimon
Hi, I am very sorry, but I don't understand russian. Can you answer me in english? And I am using Python 3.4. Dne 26. 12. 2014 14:30 "Валерий Бовсуновский" napsal(a): > > > четверг, 25 декабря 2014 г., 18:06:35 UTC+3 пользователь Robert Jonathan > Šimon написал: >

initial dta for model in Django 1.7 or newer

2014-12-25 Thread Robert Jonathan Šimon
Hi, When i googled for this problem a found out, that with migrations in Django 1.7, there is new way how it should be done, but i didnt understand it how. Can anyone explain me the new way how to do it? Thanks a lot. -- You received this message because you are subscribed to the Google Groups

Re: eCommerce Search

2014-12-17 Thread Jonathan Baker
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/d2097d0d-7a73-4910-9382-8136d58a05d6%40googlegroups.com. > > For mor

How can I add an attribute to each option in a django model form containing a foreign key?

2014-12-15 Thread Jonathan Dan
flow.com/q/27474719/1011154 ) Best regards Jonathan Dan -- 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

django-ckeditor noop?

2014-12-05 Thread Christos Jonathan Seth Hayward
At http://stackoverflow.com/questions/27321396/how-can-i-get-my-django-ckeditor-installation-to-recognize I asked what I could do to get a RichTextField() to be displayed with a CKeditor widget. Any advice for what I should change? Thanks, -- [image: Christos Jonathan Seth Hayward] <h

Re: How do I supply an appropriate application.wsgi to Gunicorn?

2014-11-24 Thread Christos Jonathan Seth Hayward
And with that, I'm off and running! Thank you for your help. On Mon, Nov 24, 2014 at 4:05 PM, Carl Meyer wrote: > On 11/24/2014 03:00 PM, Carl Meyer wrote: > > On 11/24/2014 02:56 PM, Christos Jonathan Seth Hayward wrote: > >> Thanks so much! > >> >

Re: How do I supply an appropriate application.wsgi to Gunicorn?

2014-11-24 Thread Christos Jonathan Seth Hayward
On 11/24/2014 02:38 PM, Christos Jonathan Seth Hayward wrote: > > Ok; wonder if I should upgrade Django. > > > > I just ran a startproject earlier today (I can re-create it; I was just > > trying to get it running and see the start page in my browser before > going

Re: How do I supply an appropriate application.wsgi to Gunicorn?

2014-11-24 Thread Christos Jonathan Seth Hayward
x27;shortcuts', 'template', 'templatetags', 'test', 'utils', 'views'] >>> django.VERSION (1, 6, 5, 'final', 0) >>> ​Further suggestions? Thanks, On Mon, Nov 24, 2014 at 3:24 PM, Carl Meyer wrote: &

How do I supply an appropriate application.wsgi to Gunicorn?

2014-11-24 Thread Christos Jonathan Seth Hayward
-- [image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/> Christos Jonathan Seth Hayward, an Orthodox Christian author. Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author <http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/author/&

Re: django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-14 Thread Jonathan Morgan
re: "There shouldn't be a delete box for unsaved items, right?" This is a special case - you are taking an existing record and "Save as new"-ing (or however you say that), so there are existing associated records that you are copying as well. But, in this case, I think the user would change a

Re: django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-14 Thread Jonathan Morgan
Hello, Thanks for replying! Sorry for delayed response. I am not using custom forms or custom templates. It looks like, with "Save as new", django first makes a full copy of the base record and all the child records, including those that are marked for deletion, and then it subsequently tries

django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-07 Thread Jonathan Morgan
Hello, I have an Event model (for an event like a concert or a play) that can have many Event_Dates (different showing dates and times of the concert of play). The model relation is implemented with a ForeignKey from the Event_Date model to the Event. In the django admins, I have the Event_Da

A better "manage.py shell" with syntax highlighting and multiline editing.

2014-10-13 Thread Jonathan S
s, please report at github: http://github.com/jonathanslenders/python-prompt-toolkit Feature requests are very welcome. Enjoy! Jonathan django-extensions: https://github.com/django-extensions/django-extensions -- You received this message because you are subscribed to the Google Groups "Django use

HTML 5 input

2014-10-01 Thread Robert Jonathan Šimon
Is there an upside downs of using new HTML inputs? Why is Django using old "type="text"" in field DateTimeField, if Django can use "type="datetime-local"". So why use old and obsolete way? I am just curious. -- You received this message because you are subscribed to the Google Groups "Django u

Re: display the elements from a database in a forms

2014-09-18 Thread Jonathan Pentecost
Are you using Django models? On Thursday, 18 September 2014 02:36:53 UTC+10, Devin Cky wrote: > > > 2 months ago yes !! please i need your help .. it's very importante for > me !!! > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: Writing your first Django App Part 1

2014-09-02 Thread Jonathan Querubina
Just tupe in. Do not worry. Is just for learning about the shell and its power Sent from my iPhone > On Sep 2, 2014, at 20:07, Max Nathaniel Ho wrote: > > I'm following the instructions in the tutorial but am stuck at this part. > > We are told to type in "python manage.py shell" and explore

Re: hosting django app

2014-08-22 Thread Jonathan Querubina
dreamhost.com Sent from my iPhone > On Aug 22, 2014, at 05:25, ngangsia akumbo wrote: > > my boss uses php to build web apps > > he is n9ot very convince that django can be very cheap in hosting as php. > > is there any way i can host a django app whic is as cheap as php? > -- > You received

Re: urls not maching

2014-07-13 Thread Jonathan Querubina
It seems tha you are using blog// (two slashes) on the url. Try blog/ Sent from my iPhone > On Jul 13, 2014, at 6:52, ngangsia akumbo wrote: > > > > Here is the similar probe > > views File > # Create your views here. > from blog.models import Post > from django.shortcuts import render_to_re

Re: MySQL-python on ubuntu?

2014-07-09 Thread Jonathan Querubina
Do apt-get install python-dev apt-get install libmysqlclient-dev And then apt-get install python-mysqldb On Jul 9, 2014, at 9:57 AM, François Schiettecatte wrote: > Hi > > I am installing django on Ubuntu and have a question about installing > MySQL-python? > > I know I can get install

Re: User related objects

2014-07-02 Thread Jonathan Querubina
> http://www.django-rest-framework.org/api-guide/permissions > > > cheers > L. > > > On 2 July 2014 21:21, Jonathan Querubina wrote: >> Hi guys, >> >> I need to customize my admin to show only the data related to the user who >> inser

Re: User related objects

2014-07-02 Thread Jonathan Querubina
> ) > > This has some good examples too > > http://www.django-rest-framework.org/api-guide/permissions > > > cheers > L. > > > On 2 July 2014 21:21, Jonathan Querubina wrote: >> Hi guys, >> >> I need to customize my admin to show only t

User related objects

2014-07-02 Thread Jonathan Querubina
Hi guys, I need to customize my admin to show only the data related to the user who inserted. Example: When a user log in, the admin shows only the posts inserted by this user. AFAIK, django only set permissions my model, not by objects. Is there a way (or a pip package) to implement this?

TDD

2014-05-31 Thread Jonathan Querubina
Guys, Could anyone send me a link for a good tutorial on django TDD? 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...@googlegro

Re: how can i get all values of a field

2014-05-23 Thread Jonathan Querubina
Hi dota and java, If your model for the categories is Category, you would use: Category.objects.all() Sent from my iPad > On May 23, 2014, at 23:23, dotaandj...@gmail.com wrote: > > i can't find a more effective method from the documentation,but thank you all > the same > > 在 2014年5月23日星期五UT

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Jonathan Querubina
Found this after a digging for a bit. Might help. > > http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ > > > On Friday, May 23, 2014 4:36:23 AM UTC-6, Jonathan Querubina wrote: > Hi guys, i am on my first deploy and loosing my hair over th

Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Jonathan Querubina
Hi guys, i am on my first deploy and loosing my hair over this. Could anyone send me a tutorial on how to make this deploy? I am on DigitalOcean, but their tutorial doesnt work, even if i use all the same configuration, virtualenv names and so on... Thanks guys! -- You received this message b

Re: How to connect Django to Cassandra Data base?

2014-05-09 Thread Jonathan Baker
le.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CA%2BWjgXMZVJvnpp6%2B46qTpaCeuxbvdokep_vYURkrie-Sc2zPFQ%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CA%2BWjgXMZVJvnpp6%2B46qTpaCeuxbvdokep_vYURkrie-Sc2z

Re: Registration in 1.8

2014-05-09 Thread Jonathan Baker
With the official Django release at 1.6.4, I wouldn't assume that third party packages are 1.7.x compliant, much less 1.8.x. (actually, I haven't even heard of 1.8 yet, and it's not on https://github.com/django/django/releases). Getting the hang of the ins and outs of 1.7.x is a great idea, but Dja

Hide default permission in Django admin form

2014-05-06 Thread Robert Jonathan Šimon
I looked up the answer (http://stackoverflow.com/questions/6062655/remove-or-hide-default-permissions-from-django), it worked, but suddenly it stopped working, i am not sure, what i did or if I reinstaled something. I have this solution: from django.contrib import admin from django.contrib.aut

How can I set up Debian x86_64 so a Django project sees django.contrib.staticfiles?

2014-04-23 Thread Christos Jonathan Seth Hayward
n? Thanks, -- [image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/> Christos Jonathan Seth Hayward, an Orthodox Christian author. Amazon / Kindle <http://amazon.com/author/cjshayward> • *Author <http://cjshayward.com/>* • Author Bio <http://jonathanscorner.com/

Re: Ajax post problem

2014-04-17 Thread Jonathan Querubkna
Or: var dataForm = new FormData( $("form")[0] ); That way you can send even file fields. Serialize do not support file fields AFAIK Jonathan Diretor de Tecnologia +55(12)98864-1594 Sent from my iPhone > On Apr 17, 2014, at 17:25, Joseph Mutumi wrote: > > You coul

STATIC and MEDIA

2014-03-29 Thread Jonathan Querubina
Guys What is the best way to configure and make accessible via URL the STATIC and the MEDIA uri? I can`t seem to find a good way, and get so many errors for the both being equal. Can someone send me an example of this configs? Thanks! -- You received this message because you are subscribed

Re: Django Admin Multiupload Field

2014-03-15 Thread Jonathan Querubina
Camilo, I can`t use inline (i tryied) because the user has to select file by file, not all the same time On Mar 15, 2014, at 1:58 PM, Camilo Torres wrote: > > On Saturday, March 15, 2014 11:18:05 AM UTC-4:30, Jonathan Querubina wrote: > how can i have a Multiupload Field on a Mode

Django Admin Multiupload Field

2014-03-15 Thread Jonathan Querubina
Hi guys, Maybe this is a noob question, but how can i have a Multiupload Field on a Model for the Django Admin? I Found this: https://github.com/TND/django-files-widget And sounds amazing, but i can`t get Pillow installed on my mac (10.9 / Xcode 5.1) Any of you have this problem? There`s an

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-14 Thread Jonathan Baker
msgid/django-users/CAOzwKwH-5UNR7ajWb%2B-w%3DepQRSUooEk%3DA-gwAjAhE8vtUT%3DA_Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Jonathan D. Baker Developer http://jonathandbaker.com -- You received this

Re: Timeseries Data Collection as a Reusable App

2014-03-12 Thread Jonathan Morgan
On the model side, to facilitate a generic visualization layer, you could also consider an abstract parent class where you standardize time series information that isn't the data. For my time series data, I have this: https://github.com/jonathanmorgan/django_time_series I built a few django ti

Re: URL Namespaces

2014-03-05 Thread Jonathan Baker
n the potential for naming collisions very quickly becomes a reality. Hope this helps, Jonathan On Wed, Mar 5, 2014 at 4:25 AM, anubhav joshi wrote: > Can anyone explain how URL Namespaces work in django. > Some examples would be great. > (Apart from those in the docs.) > > Regard

Ajax Request on Admin Edit Form

2014-03-05 Thread Jonathan Querubina
Hi guys. How can i edit the Admin Default Edit Form on django to insert my custom JS on the page? I mean, when i am editing a model, i need to insert some JS code on it Is this possible? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Trouble with Django in production server.

2014-03-01 Thread Jonathan D. Baker
Instead of hard-coding paths, check out os.path, os.abspath and os.sep (and the rest of the os module) for such needs. I usually declare a PROJECT_ROOT var at the top of my settings.py using the aforementioned os module, and then hang paths (like your db path) off of that instead of building eac

Re: Trouble with Django in production server.

2014-03-01 Thread Jonathan Baker
Are you using multiple settings files, for example: dev.py, pro.py, etc.? Are you sure that the settings file you're using is configured to use the database on your production server? On Sat, Mar 1, 2014 at 5:12 PM, Omar Acevedo wrote: > Yes! > > > On Sat, Mar 1, 2014 at

Re: Trouble with Django in production server.

2014-03-01 Thread Jonathan Baker
When you ran the 'syncdb' management command, was 'auth_user' listed in the output as a table that was created? On Sat, Mar 1, 2014 at 3:52 PM, Omar Acevedo wrote: > Hello people, I'm having an issue in/with Django, which is on a shared > hosting, and I'm using virtualenv and fastcgi. (<- sayi

Re: Django with rabbit (but without async celery) - can be done?

2014-02-25 Thread Jonathan Baker
Could you write a RESTful API in your Django project, and then issue POST requests to that from a middleman script that the mq could communicate with? JDB On Tue, Feb 25, 2014 at 8:28 AM, Alon Nisser wrote: > I need to implement a quite simple Django server that server some http > requests *an

Re: Accessing a python function from a blog post stored in the db?

2014-02-25 Thread Jonathan Baker
This sounds like a good fit for an inclusion tag. Since you need a bit of markup around the images for the slider functionality, it'd be nice to keep that markup in a separate template so you could use the image slider in multiple places like, say, a post detail page as well as a dashboard. Then, a

Re: API rest for https://docs.djangoproject.com/en/dev/intro/tutorial01/ help

2014-02-20 Thread Jonathan Baker
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/a2b02a3d-f5bf-4a78-b848-48b0e076d5f3%40googlegroups.com > . > For more opt

Re: Django multiple model from one form submit

2014-02-19 Thread Jonathan Querubina
You can use an admin custom insert form With stackedinline Jonathan Querubina Diretor de Tecnologia +55(12)98864-1594 www.phocus.com.br > On Feb 19, 2014, at 19:24, Henrique Oliveira > wrote: > > Hi there, > > I have the model below: > > class Ticket(models

Re: Django + PostgresSQL. I'm a newbie.

2014-02-14 Thread Jonathan Querubina
And he is using gTranslate, for sure. Maybe he is not aware of what he wants... Віталій: Search Google First Jonathan Querubina Diretor de Tecnologia +55(12)98864-1594 www.phocus.com.br > On Feb 14, 2014, at 18:10, "C. Kirby" wrote: > > The topics you are asking about

Re: is_valid

2014-02-14 Thread Jonathan Querubina
blank = True on the model field On Feb 14, 2014, at 8:53 AM, fabricio wrote: > how do i django not validate some fields > > -- > 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

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Jonathan Baker
hod) >>>>>>>> >>>>>>>> If none of the items above are correct, feel free to provide a link >>>>>>>> to the tutorial you're going through and I'll take a look. >>>>>>>> >>>>>>>>

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Jonathan Baker
;>> polls created in the previous tutorials. This means the tests that >>>>>>> expect >>>>>>> empty result sets fail. >>>>>>> >>>>>>> Any idea why it would be doing this? Am I correct in thinking the >>>>>>>

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Jonathan Baker
>>> To post to this group, send email to django...@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/

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Jonathan Baker
be 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

Re: Django Tutorial 5 - First Tests

2014-02-12 Thread Jonathan Baker
You're correct in thinking that tests use a test database that is independent of your formally defined project database. Without knowing exactly which Django tutorials you are referring to, I can only assume that perhaps you: 1) Have defined initial_data.json fixtures 2) Have defined other fixture

Re: Checkboxes collection instead of a multiple select

2014-02-12 Thread Jonathan Querubina
Tom, Thanks for the feedback! This can be used on the admin form? On Feb 6, 2014, at 12:48 PM, Tom Evans wrote: > On Thu, Feb 6, 2014 at 11:15 AM, Jonathan Querubina > wrote: >> Hi guys, >> >> How do i show a collection of checkboxes instead of a multiple select? &g

  1   2   3   4   5   6   >