Re: Where to include libraries I write in a django app

2023-03-14 Thread Scott McKissock
Thanks, that makes sense. On Monday, 13 March 2023 at 14:23:19 UTC-4 bck...@gmail.com wrote: > Hi Scott, > > Yes, generally single-app relevant utility code should be included as > additional modules within that app. Some examples: > my_app ├── __init__.py ├── apps.py ├── models

Where to include libraries I write in a django app

2023-03-11 Thread Scott McKissock
Django/Python noob question. What is the convention for including utility packages/modules within a django app? I have a bit of code that will only be used in a single django app, and I'd like to write tests for it and use it within the app. Should I just put it in a directory/package in the

Re: CAn we use Django framework in company industry ?

2022-09-13 Thread Scott Sawyer
but there are some restrictions. -Scott On 9/13/2022 7:11 AM, خالد بن الوليد صحراوي wrote: Hello. I 'm working with Django to build a Web app for my industrial company, I wans to ask if it possible to build it and use it for free is that possible ? -- You received this message because you are subscribed

Re: Assignment

2022-08-25 Thread Scott Sawyer
long time lurker here... On 8/25/2022 8:24 AM, shairy wrote: Can anyone help me to solve this problem. Consider a recharge website platform for mobile prepaid recharge like Paytm 1. List down number of apps you would create in Django application As many as are needed to do the functions

Re: Common problem finding static files. Help appreciated.

2021-08-18 Thread Scott Zimmerman
Resolved by changing nginx config file from above to this: location /static { root /home/www/wcsdg/main; } On Wednesday, August 18, 2021 at 8:03:00 AM UTC-5 Scott Zimmerman wrote: > > I deployed django + nginx + gunicorn, and DEBUG = True. Nginx/error.log > shows that m

Common problem finding static files. Help appreciated.

2021-08-18 Thread Scott Zimmerman
I deployed django + nginx + gunicorn, and DEBUG = True. Nginx/error.log shows that my problem finding static files is a concatenation mistake (caps added)... "/home/www/wcsdg/main/STATIC/STATIC/main/styles.css" failed (2: No such file or directory), It should instead search for...

Re: Process Data during server initialization

2020-10-22 Thread Scott Sawyer
Could you run a cron job on the system to analyze the data periodically? Sent from my iPhone > On Oct 22, 2020, at 1:30 PM, Lois Greene-Hernandez wrote: > > Hello, > > I'm working on a data and calculation intensive django application. It uses > pandas and plotly.py to create many charts

Re: 127.0.0.1:8000 infinite loading, but localhost:8000 can be access

2020-09-26 Thread Scott Sawyer
Look in /etc/hosts if you are on a Linux box Sent from my iPhone > On Sep 26, 2020, at 11:23 AM, Kasper Laudrup wrote: > > Hi Dum Dum, > >> On 26/09/2020 20.01, dum dum wrote: >> I don't know why this happened. >> Please advise, Thanks. > > Try to provide some more details if you want some

Re: select_related() and RawQuerySet

2020-04-27 Thread Alex Scott
This is an insanely old thread, but I couldn't find any updates so was curious if anyone had advice on implementing select_related with a RawQuerySet? It seems prefetch_related() works just fine. On Friday, March 2, 2012 at 11:22:52 AM UTC-8, akaariai wrote: > > On Friday, March 2, 2012

Re: Using Unaccent in Model database function

2020-01-05 Thread Alex Scott
On Sunday, January 5, 2020 at 11:12:45 AM UTC-8, Alex Scott wrote: > > Hi all, > > I just started using the Unaccent extension for Postgres and implementing > queryset filters with it like: > > q = 'hello' > queryset.filter(name__unaccent__istartswith=q) > > I'm now t

Using Unaccent in Model database function

2020-01-05 Thread Alex Scott
Hi all, I just started using the Unaccent extension for Postgres and implementing queryset filters with it like: q = 'hello' queryset.filter(name__unaccent__istartswith=q) I'm now trying to annotate the queryset result with the search index:

Software Engineer position at Palo Alto Startup

2019-10-11 Thread Scott Satkin
*Are you an experienced Django developer interested in a full-time opportunity to join an established healthcare startup in Palo Alto California?* If so, please email sc...@limbix.com, or apply online: https://angel.co/company/limbix/jobs/624447-senior-software-engineer -- *SUMMARY*

Re: cannot import path in urls

2019-10-03 Thread Taylor Hughes-Scott
Hi, You will need to make the change in both urls.py files that you have created. Regards, On Thu., 3 Oct. 2019, 3:36 pm MEGA NATHAN, wrote: > Hi. > In which file i rewrite app/urls are main file url i write... > > > > > > *Regards* > Meganathan G > > > > On Thu, Oct 3, 2019 at 10:21

Re: cannot import path in urls

2019-10-02 Thread Taylor Hughes-Scott
Hi, It looks like you aren't importing path from the right location in your urls.py file, try the following import to see if that resolves your issue. from django.urls import path Regards, On Thu., 3 Oct. 2019, 2:33 pm MEGA NATHAN, wrote: > Hi. > > > i'm meganathan beginer for django >

Django Admin autocomplete with diacritic support (transliteration / accent support)

2019-07-15 Thread Alex Scott
Hello, I'm using the built-in autocomplete for my admin section which I believe uses the Select2 package. In the documentation of Select2 , it says diacritic-modified letters will be translated into ASCII

Re: Polls app not showing?

2019-07-03 Thread Scott Winter
ent projects. It is > not necessary for you to do that on your first project so don't worry about > it. You can always watch youtube tutorials on creating virtual envs later > on. > > On Tuesday, July 2, 2019 at 9:25:35 PM UTC-5, Scott Winter wrote: >> >> Ok, attached a

Re: Polls app not showing?

2019-07-02 Thread Scott Winter
k like? > > > > On Sunday, June 30, 2019 at 8:29:02 PM UTC-5, Scott Winter wrote: >> >> Sorry, you'll have to be clearer than that. Not sure how to do that nor >> how it relates to the issue >> >> On Friday, June 28, 2019 at 12:28:33 AM UTC-4, karthikvig

Re: Polls app not showing?

2019-06-30 Thread Scott Winter
Sorry, you'll have to be clearer than that. Not sure how to do that nor how it relates to the issue On Friday, June 28, 2019 at 12:28:33 AM UTC-4, karthikvignesh28 wrote: > > Create virtual environment > > On Fri, Jun 28, 2019, 6:14 AM ScottW > > wrote: > >> The server ran a few weeks ago

Re: why-do-i-get-an-error-about-importing-django-settings-module

2019-06-25 Thread Taylor Hughes-Scott
Based on the screenshots, that is not an error. That is just the standard django code that your seeing. It trying to import settings and if they don't exist then it will show that error. I recommend going through the django tutorial https://docs.djangoproject.com/en/2.2/intro/tutorial01/ On

Re: How can I send an outlook mail from angular using django

2019-06-12 Thread Taylor Hughes-Scott
I'm not so sure about sending outlook email through django. However i do know django has a basic email sending built in have you had a look at that? https://docs.djangoproject.com/en/2.2/topics/email/ On Thu., 13 Jun. 2019, 10:41 am Sai Aravind, wrote: > How can I send an outlook mail from

Re: parse xml from url to database

2019-06-12 Thread Taylor Hughes-Scott
Are you able to provide an example url or xml file. That would help to figure out why no listings are created. On Thu., 13 Jun. 2019, 9:04 am Ewen Le Bihan, wrote: > Hi, where does prof.xml_ky comes from ? > > Le mercredi 12 juin 2019 18:22:01 UTC+2, Nuno Vieira a écrit : >> >> Hi there. >> >>

Re: Django model form is not getting saved in Postgresql database

2019-06-03 Thread Taylor Hughes-Scott
No problem. Glad you got it sorted. On Tue., 4 Jun. 2019, 8:16 am Ankhi Roy, wrote: > Hey, > > Nevermind I have solved the problem. > I was in an impression that I need to create a seperate database > equivalent to django model form. Then realised that Django automatically > creates a database

Re: Django model form is not getting saved in Postgresql database

2019-06-03 Thread Taylor Hughes-Scott
With your form.save() call try passing commit=True so it looks like form.save(commit=True) On Tue., 4 Jun. 2019, 1:39 am Ankhi Roy, wrote: > Hi, > > I am using Django admin - 2.2.1 and Postgresql as my database. So my > problem is I have saved the user entered data in form.py on "POST" Request

Re: Website slowed down drasticaly

2019-05-03 Thread Scott Miesbauer
I apologize if I missed it but did someone find out what started happening in Feb that might have some impact on the performance lag? The very first thing I ask when troubleshooting is “What changed?” So what changed in your environment in February? Other teams changes? Application?

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Scott Reed
Thanks again Jorge! I'm such a noob :/ But this is a great learning experience. On Thursday, November 29, 2018 at 9:55:00 PM UTC-8, jlgimeno71 wrote: > > > > On Thu, Nov 29, 2018, 9:40 PM Scott Reed wrote: > >> Thanks for you response Jorge! I see, that's just to che

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Scott Reed
On Thu, Nov 29, 2018, 4:27 PM Scott Reed wrote: > >> Hi, I'm starting the Django polls tutorial. >> I've followed all the steps so far: installed Python and Django, set up >> the virtual environment, etc. >> I'm at the point where you start the Django development server

Tutorial - runserver freezes command prompt

2018-11-29 Thread Scott Reed
Hi, I'm starting the Django polls tutorial. I've followed all the steps so far: installed Python and Django, set up the virtual environment, etc. I'm at the point where you start the Django development server by running 'py manage.py runserver' in the mysite directory. When I execute this

template

2018-11-15 Thread Scott Tresor
hello how to user template for django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Django Admin: multi-table inheritance child model with many-to-many through inline fails with “Please correct the error below”

2018-06-15 Thread Scott Obara
ActionCard`. Relevant environment info: - Django - 2.0.6 - Python - 3.6.4 - PostgreSQL - 10.4 Thanks, Scott -- 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 em

Re: short_description not working

2017-02-19 Thread Scott Carpenter
What does your model look like? On Saturday, February 18, 2017 at 8:27:17 AM UTC-6, Qikai Gu wrote: > > Hi folks, > > I'm following the first django app tutorial (polls) and I'm stuck at part > 7 > :

Re: ImportError at/ No module name

2015-11-07 Thread Scott Anderson
We just tripped across something similar here as well. The person doing the tutorial had flipped the 'startup' and 'put "blog" in the INSTALLED_APPS' steps of the tutorial. She commented out 'blog' from INSTALLED_APPS and startapp worked as intended. -scott On Sunday, August 11, 20

Re: Sudden appearance of DatabaseWrapper Exception

2015-08-21 Thread Bryan Scott
I've come across a similar problem, and I'm pretty curious if you ever figured out what caused this for you. Any help is appreciated. Thanks Bryan On Sunday, April 6, 2014 at 1:02:20 AM UTC-4, Fraser Graham wrote: > > I have been running an Django 1.5.1 app under Apache for some time without

Re: Possible bug in 1.8 admin app for foreign key handling.

2015-08-05 Thread Scott Gibson
; Have you tried setting "required=False" in your custom field override? > > On Wed, Aug 5, 2015 at 3:23 PM, Scott Gibson <scott@hp.com > > wrote: > >> The django admin app is requiring a foreign key to be populated even >> though the model is defi

Re: Possible bug in 1.8 admin app for foreign key handling.

2015-08-05 Thread Scott Gibson
I've not and I'm not sure how or where to do that. On Wednesday, August 5, 2015 at 4:38:36 PM UTC-5, James Bennett wrote: > > Have you tried setting "required=False" in your custom field override? > > On Wed, Aug 5, 2015 at 3:23 PM, Scott Gibson <scott@hp.com > &g

Possible bug in 1.8 admin app for foreign key handling.

2015-08-05 Thread Scott Gibson
The django admin app is requiring a foreign key to be populated even though the model is defined and migrated with null=true and blank=true. What I've found is that the admin app will treat the field as required if the associated AdminForm(forms.ModelForm) overrides the fields collection for

Re: moving from Django 1.6 and south to Django 1.8 -- auth migrations not applied

2015-04-21 Thread Scott Hostovich
al migration for that app and change > EmailField max_length to 75 since that matches your schema. Then you can > auto-generate a second migration to update the max_length to 254. > > On Tuesday, April 21, 2015 at 11:42:45 AM UTC-4, Scott Hostovich wrote: >> >> I'm using a custom us

Re: moving from Django 1.6 and south to Django 1.8 -- auth migrations not applied

2015-04-21 Thread Scott Hostovich
:19:56 PM UTC-4, Scott Hostovich wrote: > > I moving from Django 1.6 and south to Django 1.8. I followed the > instructions at > https://docs.djangoproject.com/en/1.8/topics/migrations/#upgrading-from-south > and things seemed to work fine. Then I noticed that the auth migrations

upgrading from Django 1.6 and south to Django 1.8

2015-04-20 Thread Scott Hostovich
I'm upgrading from Django 1.6 and south to Django 1.8. Following the instructions at: https://docs.djangoproject.com/en/1.8/topics/migrations/#upgrading-from-south seems to work initially but then realize that the user model wasn't updated:

moving from Django 1.6 and south to Django 1.8 -- auth migrations not applied

2015-04-20 Thread Scott Hostovich
I moving from Django 1.6 and south to Django 1.8. I followed the instructions at https://docs.djangoproject.com/en/1.8/topics/migrations/#upgrading-from-south and things seemed to work fine. Then I noticed that the auth migrations did not get applied to the database

Re: Django 1.7: How to migrate data between two external apps

2014-12-17 Thread John-Scott
ld you mind opening a ticket on > https://code.djangoproject.com/ where you state the problem (e.g. link to > this discussion). Thanks. > > /Markus > > On Wednesday, December 17, 2014 6:01:05 AM UTC+1, John-Scott wrote: >> >> My 'solution' was very smelly: >> >&

Re: Django 1.7: How to migrate data between two external apps

2014-12-16 Thread John-Scott
:35 AM UTC-5, Markus Holtermann wrote: > > Hey John-Scott, > > I'm afraid but I don't see an obvious solution. There are 2 ways you could > work on the issue, I don't like either: > > 1. remove all references to the "foo_tag" app from all migration files > >

Django 1.7: How to migrate data between two external apps

2014-12-13 Thread John-Scott
give an error: KeyError: "Migration my_app.0002_auto_20141212_1951 dependencies reference nonexistent parent node ('foo_tag', '0001_initial')" What's the correct way to handle migrating data between 3rd party apps where one of the apps is eventually removed? Thanks, John-Scott -- Yo

django 1.7: inlines not deleted when save_formset is overridden

2014-09-18 Thread scott baker
o go about it. Thanks, Scott -- 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 e

Re: Question about static file serving strategy with S3 and Cloudfront

2014-07-03 Thread Scott Anderson
Also note we don't copy to S3 as there's no way to do the virtual directory without having a real directory for every release. CloudFront will read files from a web site as well, and we don't need the extra deployment complexity. Regards, -scott On Wednesday, July 2, 2014 3:20:34 PM UTC-4, Cal

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2014-06-13 Thread Scott Simmerman
ckend. So at this point, my backend name did not match what was in settings.py and it returned an anonymous user. -Scott On Monday, October 14, 2013 8:52:57 AM UTC-4, HM wrote: > > I can't get logging in with alternate auth backends to work with Django > 1.4 or newer. > > Basically: &g

Re: Proper way to handle nested data (deeply nested)

2014-05-02 Thread Scott Harper
encounter to the HTML. It's working pretty well so far. Now to get the monsters' forms working... but I think I have a decent enough idea of how to do that now. -- Scott On Friday, May 2, 2014 11:50:10 AM UTC-6, Scott Harper wrote: > > I am using django as a tool for editing data for a ga

Proper way to handle nested data (deeply nested)

2014-05-02 Thread Scott Harper
not sure what my alternatives are. I welcome any assistance that you folks can offer. Thank you. -- Scott (PS: I erroneously sent a partial message, for which I apologize.) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Proper way to nest data (deeply)

2014-05-02 Thread Scott Harper
Hello, I am using django as a tool to help edit data for a game project I am working on. Unfortunately, the data relationships have gotten pretty deep recently, and I'm having some difficulty getting the formsets to work properly. So here's the ugly setup: I have a table of Maps, nodes,

Re: django-php - yeah, it happened.

2014-02-28 Thread Scott Anderson
lates and I want to use them in JavaScript like Twig allows. Unfortunately Twig is just different enough to Not Work out of the box. Swig might get us there (http://paularmstrong.github.io/swig/), but I haven’t looked into it enough. -scott -- You received this message because you ar

Re: django-php - yeah, it happened.

2014-02-28 Thread Scott Anderson
to the Django template system to match what we're using in Twig. -scott On Thursday, February 27, 2014 6:30:49 PM UTC-5, Cal Leeming [Simplicity Media Ltd] wrote: > > Clearly this should be considered for merge into the core; > https://github.com/mvasilkov/django-php > > The really sa

Re: Terrible performance when dropping into raw SQL Oracle

2014-02-27 Thread Scott Anderson
Are you timing the query in the view specifically, or the entire view? That is, do you know for sure that it is *only* the query that is taking 16 seconds and not the rest of the view? -scott On Wednesday, February 26, 2014 5:53:15 PM UTC-5, Shawn H wrote: > > I said that before t

Having problems installing Heroku database

2014-01-12 Thread Scott Meyers
Trying to get started with Django. My tutorial tells me to run pip install dj-database-url. When I do that, I get: postgres@precise64:/vagrant/projects2/microblog$ pip install dj-database-url Downloading/unpacking dj-database-url Cannot fetch index base URL http://pypi.python.org/simple/ Could

How to re-sync with Heroku?

2014-01-09 Thread Scott Meyers
Newbie here (obviously!). I'm starting a Django project in Cygwin. I push to Heroku. I'm playing around, checking heroku logs, and my power goes out. So I boot my computer, get back into Cygwin, go back into my project's root. How do I sync it with Heroku again? If I type heroku ps or

Re: Deploying to Heroku for first time, Dynos is blank, not recognizing Procfile

2014-01-08 Thread Scott Meyers
i <vibhu...@gmail.com > > wrote: > >> yes. just create a text file with no extension. Here's mine for reference >> : >> >> $ cat Procfile >> web: gunicorn qj.wsgi >> >> >> V. >> >> >> On Tue, Jan 7, 2014 at 9:31

Deploying to Heroku for first time, Dynos is blank, not recognizing Procfile

2014-01-06 Thread Scott Meyers
Programming newb, Trying to use Heroku for the first time for a Django app. After I push it to Heroku, the Dynos field is blank. I expected to see my procfile: web: python manage.py runserver 0.0.0.0:$PORT --noreload Of course, when I try to open the application on Heroku, I get: An error

Re: Using input for an IntegerField

2013-12-28 Thread Cody Scott
There should be a widget to use in the 'widgets' dict. I was able to override the default of number field with a text field with the lines that are commented out. On Saturday, 28 December 2013 17:14:53 UTC-5, Daniel Roseman wrote: > > On Saturday, 28 December 2013 20:12:24 UTC, Cody

Using input for an IntegerField

2013-12-28 Thread Cody Scott
I have a model with an IntegerField and I would like to display the model form for it with a input. With the following code I get an error : 'ChoiceField' object has no attribute 'is_hidden' Here is a minimal django 1.6.1 project with the problem. https://github.com/Siecje/choice_widget/

How to set the email to lowercase on User Creation?

2013-07-22 Thread Cody Scott
I have a custom auth app. I am trying to only allow emails to be lower case in the database. I can create a user in the admin with Capitalized letters, even with email.lower() in the create_user method. Another solution would be to specify to the authenticate that the email can be any case.

Re: How to Create an Auto Incrementing Integer Field

2013-07-22 Thread Cody Scott
Thank you very much, that was exactly what I was looking for. On Monday, 22 July 2013 09:48:51 UTC-4, Christian Erhardt wrote: > > Have a look at this post: > http://stackoverflow.com/questions/3123796/how-to-make-an-auto-filled-and-auto-incrementing-field-in-django-admin > > They determine

How to Create an Auto Incrementing Integer Field

2013-07-19 Thread Cody Scott
I have a list of articles and you can control the order of the articles by changing the order field in the model order = models.IntegerField(default=1) I would like it to default to one more than the last article or one more than the largest order (since you can set the order) I can't

Re: Submit a form but stay on the page and the form changes

2013-07-15 Thread Cody Scott
e view > you are submitting your POST to return the data you need in JSON and use > jQuery to remove the form and add the results or url > > Sent from my Windows Phone > -- > From: Cody Scott > Sent: 7/12/2013 11:51 PM > To: django-users@googlegro

Treebeard Hierarchical Form

2013-07-15 Thread Cody Scott
I am trying to create a hierarchical form with nodes in django-treebeard. I am using code from the docs, but it doesn't reset when I have another root node, it should be on the left side if it has a depth of 1. Also how would you make it expand when I click Products to expand products. I

Re: Submit a form but stay on the page and the form changes

2013-07-12 Thread Cody Scott
oposing verify this by adding > print "form status", form.is_valid() > after string form = PollForm(request.POST, instance=self.get_object()) > > > P.S. How are you adding so nice formatting to your letter ? > > > Many thanks, > > Serge > > > +380

Submit a form but stay on the page and the form changes

2013-07-11 Thread Cody Scott
I would like to put a Poll Voting Form on any page like a blog post page or the homepage. Here is the page that I display the form and the view that it gets posted to in the form action attribute. I would like to be able to submit the form but stay on that page and have the form change into the

Writing Form Tests

2013-07-03 Thread Cody Scott
I am trying to extend the polls tutorial code to use a django form with tests. I created this form, but ran into some issues when trying to test it. When looking up how to test it, I found this form from http://toastdriven.com/blog/2011/apr/17/guide-to-testing-in-django-2/ It also had

How to Test Querysets

2013-06-29 Thread Cody Scott
*I would like to be able to replace the hardcoded repr in the test with an actual queryset.* * * def test_index_view_with_a_past_poll(self): """Polls with a pub_date in the past should be displayed on the index page.""" create_poll(question="Past poll.",

Using django tags in a blog post

2013-06-28 Thread Cody Scott
I have a simple model that has a TextField used to store a blog post. body = models.TextField() I would like to be able to use django tags in the blog post, such as {% url '' %} and {% trans "" %}. I tried using the |safe filter and passing a mark_safe() value but they don't convert the

Re: Allow visitor to add a form to a formset

2013-05-29 Thread Cody Scott
My issue was that I was putting my form_name in the cp['form_name-TOTAL_FORMS'] and it is always just form. -- 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

Allow visitor to add a form to a formset

2013-05-29 Thread Cody Scott
I have a form with one field for emails. I would like to allow the visitor to add another email field. What do I need to do to allow the user to create another form? #following the docshttps://docs.djangoproject.com/en/1.5/topics/forms/formsets/#adding-additional-fields-to-a-formset#I don't

Adding a search to a field.

2013-05-27 Thread Cody Scott
In the admin I have a many-to-many relationship which django supplies a default widget that is really small. I am wondering how to make that bigger or re-sizeable. Is it possible to add a search so that I can type in one of the fields and it will search by that field and bring those options to

Re: Display each language in its own language.

2013-05-24 Thread Cody Scott
ok I also had to add # -*- coding: utf-8 -*- to the top of the file On Fri, May 24, 2013 at 10:03 AM, Tom Evans <tevans...@googlemail.com>wrote: > On Fri, May 24, 2013 at 2:54 PM, Cody Scott <cody.j.b.sc...@gmail.com> > wrote: > > In my settings.py I have > &

Re: Display each language in its own language.

2013-05-24 Thread Cody Scott
language in its own language LANGUAGES = ( ('en', gettext('English')), ('fr', gettext('Français')), ('ja', gettext('日本人')), ) But I get an error for having a non ascii character in settings.py On Thu, May 23, 2013 at 3:26 PM, Cody Scott <cody.j.b.sc...@gmail.com>wrote: > I w

Display each language in its own language.

2013-05-23 Thread Cody Scott
I would like the language selector to display each language in its own language. So for example English will always be displayed as 'English'. Even if the current language is French it will still be 'English' and not Anglais. {% csrf_token %} {% for lang in LANGUAGES %}

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Scott Anderson
base backends that prevent seamless migration between them. At some point you will need to install and test on your production database. Why not do it first and avoid possible incompatibilities between dev and production down the way? If you're just learning, that's fine. No need. But as soon as

How to locate django extension templates

2013-05-21 Thread Cody Scott
I am trying to use django-treebeard in the admin. https://tabo.pe/projects/django-treebeard/docs/tip/intro.html#configuration It says Note If you are going to use the Treeadmin class, you need to add

How to select a django-treebeard node in a form

2013-05-21 Thread Cody Scott
I have created my tree structure, now I am trying to create a form that selects a node which I will use to do some operations. When I render the form class SelectNodeForm(MoveNodeForm): class Meta: model = Category with {{form.as_p}} I get the fields Path Depth Numchild

Re: new to Django and building web applications. Advice with postgresql

2013-05-19 Thread Scott Anderson
and using the same database you'll see in production. Regards, -scott -- 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...@google

Trees in Django

2013-05-17 Thread Cody Scott
I am categorizing models in a tree. The tree is created based on a string of where the model falls in the tree. The tree will not change once it is created. I tried using django-mptt with this code to create the tree. def add_new_nodes(category_string): for category in

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
The problem was that the LDAPSearch had to start with a OU= I had it start with a DC=. On Wednesday, 15 May 2013 11:27:08 UTC-4, Cody Scott wrote: > > I have that code but where does the logging go? > > On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: >> >> Ok. No

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
ap/logging.html > > Regards > Guddu > > On Wed, May 15, 2013 at 10:56 AM, Cody Scott > <cody.j@gmail.com > > wrote: > >> Ok The problem was that I had the file named ldap.py. I got it to work, I >> had to add a print to >> >> l.result

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
Ok The problem was that I had the file named ldap.py. I got it to work, I had to add a print to l.result(result) put I get a tuple of a number and an empty list (#, []) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
http://dpaste.org/EboQU/ On Wednesday, 15 May 2013 10:09:01 UTC-4, Guddu wrote: > > What does this give you? > > import ldap > dir(ldap) > > Regards > Guddu > > On Wed, May 15, 2013 at 10:04 AM, Cody Scott > <cody.j@gmail.com > > wrote: > >>

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
I put that code in a separate python file and ran it without django or django-auth-ldap. l = ldap.initialize() AttributeError: 'module' object has no attribute 'initialize' so python-ldap is not installed properly? I am not able to login, no error just invalid credentials. How do I get

Re: django-auth-ldap

2013-05-14 Thread Cody Scott
Do I need to set up groups? I have a setting for AUTH_LDAP_SERVER_URI AUTH_LDAP_BIND_DN AUTH_LDAP_BIND_PASSWORD AUTH_LDAP_USER_SEARCH AUTH_LDAP_USER_ATTR_MAP = { "username": "sAMAccountName", "email": "mail" } I am using a custom auth model. Maybe that is the reason it is not working?

django-auth-ldap

2013-05-14 Thread Cody Scott
I am trying to get django-auth-ldap working with an Active Directory LDAP Server. I don't understand the documentation for the Search/Bind or Direct Bind. Is 'uid' the LDAP attribute uid? My LDAP doesn't use this attribute. I tried putting 'samaccountName' an attribute that is used for logon.

Re: Customizing Admin

2013-05-09 Thread Cody Scott
<rafael.ferr...@gmail.com>wrote: > I think you can customize the django admin templates for your own purpose > > > 2013/5/7 Cody Scott <cody.j.b.sc...@gmail.com> > >> Is there a way to put text in the django admin? >> >> I am trying to display information

Customizing Admin

2013-05-07 Thread Cody Scott
Is there a way to put text in the django admin? I am trying to display information from another model, to help in your select of ForeignKeys. Right now I am adding this information to the __unicode__ function so I can see the information but there is not context. Also is there a way to make a

How to create a Dynamic Hierarchical Form

2013-04-22 Thread Cody Scott
I am trying to create a form where you select product(s) and technology(s) and based on your selection different modules are available for selection. forms.py def make_quiz_form_class(): #Listing available options products = [(i, _(i)) for i in Product.objects.all()] technologies

Re: How to switch languages?

2013-04-22 Thread Cody Scott
> I suggest taking a look at > django-localeurl<https://bitbucket.org/carljm/django-localeurl>, > I used it instead of a form to change language on my last project. I > believe it is worth taking a look > > > On Mon, Apr 22, 2013 at 6:58 PM, Cody Scott <cody.j@gma

Re: How to switch languages?

2013-04-22 Thread Cody Scott
ow-django-discovers-language-preference). > > I normally set django_language session variable to the preferred language. > For 1), have you compiled your messages into .mo files? You will also need > to reload your server to load the new .mo files. > > > On Tue, Apr 23, 2013

How to switch languages?

2013-04-22 Thread Cody Scott
I am trying to get translations to work on my site. I have marked words for translation and they show up in the django.po file. I am wondering what is the proper way to switch the current language. Currently I have the following in my project urls.py urlpatterns = i18n_patterns('', #

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread Scott Anderson
that it would entail, for lower message throughputs RabbitMQ may be cheaper for the same throughput. Regards, -scott On Sunday, April 21, 2013 5:47:40 AM UTC-4, sparky wrote: > > One last thing to add, the task it's self does not seems to be the issue, > 'got message from broker' is

Re: How to translate database content?

2013-04-19 Thread Cody Scott
ndations >> on the matter (I have not tried any personally), your own Google search >> will be as good as mine. But look for things along the line of "django >> model translation". >> >> Hope this helps. >> >> On Tuesday, April 16, 2013 9:15:40 AM UTC-7, Cody

Re: How to add Django project to sys.path?

2013-04-19 Thread Cody Scott
--- > Cel: (16) 8121-5290 / 9718-3939 > Tel: (16) 3371-7274 > Skype: fbruandrade > MSN: felipean...@hotmail.com > ICQ: 15909761 > --- > > > > 2013/4/19 Cody Scott <cody.j@gmail.com > > >> I a

How to add Django project to sys.path?

2013-04-19 Thread Cody Scott
I am trying to use apache to serve my development site locally. I am trying to implement download functionality and figured since it was best done through a web server that I would just serve the with apache from now on. Is this recommended to start using your django site with a web server

Random translation text showing up while the rest is not translated.

2013-04-18 Thread Cody Scott
I have marked text for translation, and also database content with the dbgettext mdoule. So I do: syncdb add some content dbgettext_export makemessages -l ja add all of the translations compilemessages Then I change the /en/ to /ja/ to see the page in Japanese, but only two things are

Re: How to view your translated site?

2013-04-18 Thread Cody Scott
I agree that link is much better, I got the other one from settings.py On Thu, Apr 18, 2013 at 12:41 PM, Tom Evans <tevans...@googlemail.com>wrote: > On Thu, Apr 18, 2013 at 5:23 PM, Cody Scott <cody.j.b.sc...@gmail.com> > wrote: > > Thanks, I went here > http://www.i

Re: How to view your translated site?

2013-04-18 Thread Cody Scott
Thanks, I went here http://www.i18nguy.com/unicode/language-identifiers.html ctrl+ f "japanese" saw jp on the left hand side. I thought ja was a localization of jp so it would be jp-ja. On Thursday, 18 April 2013 11:42:37 UTC-4, Cody Scott wrote: > > I am trying to view my sit

How to view your translated site?

2013-04-18 Thread Cody Scott
I am trying to view my site in japanese. I have create the translations and compiled them with compilemessages. In my urls.py I have urlpatterns = i18n_patterns('', #...) Settings.py LANGUAGE_CODE = 'en-us' #Used for translationsgettext = lambda s: sLANGUAGES = ( ('en',

Re: Django-Registration/Custom Authentication Issue

2013-04-17 Thread Scott Anderson
That's good to know. How stable is it? -scott Via mobile phone On Apr 17, 2013, at 3:52 AM, James Bennett <ubernost...@gmail.com> wrote: Current hg tip is actually 1.5-compatible, in the sense that if you want to use your own User model, you just subclass the provided stuff and plug i

  1   2   3   4   5   >