Getting InspectDB to work with postgres

2023-02-27 Thread Kyle Wan
Hi, I'm new to Django, and I'm struggling to get inspectdb to populate postgres models as json, hstore, or array objects. I have put `django.contrib.postgres` under the INSTALLED_APPS and I have psycopg2 installed. I have set my engine to be postgresql and am able to use the makemigration and

Re: Why does django throw TypeError when sending requests through Apache WSGI?

2021-12-15 Thread Kyle Paterson
Used libapache2-mod-wsgi-py3 instead of python 2 version On Wednesday, 15 December 2021 at 10:03:27 UTC Kyle Paterson wrote: > I am not using either of those, I think. The only place I explicitly load > settings is in wsgi.py, with the line: > os.environ[‘DJANGO_SETTINGS_MODULE’]

ModuleNotFoundError: No module named [project_name]

2021-12-15 Thread Kyle Paterson
|'): Loading Python script file '/home/kyle/active-travel/traveldata/traveldata/wsgi.py'. [Wed Dec 15 14:51:59.385699 2021] [wsgi:error] [pid 15535:tid 140431892707072] [remote 127.0.0.1:44654] mod_wsgi (pid=15535): Failed to exec Python script file '/home/kyle/active-travel/traveldata/traveldata

Re: Why does django throw TypeError when sending requests through Apache WSGI?

2021-12-15 Thread Kyle Paterson
ty name. >> >> Regards, >> Sencer HAMARAT >> >> >> >> On Wed, Dec 8, 2021 at 4:59 PM Kyle Paterson >> wrote: >> >>> Started a new project after not using Django for roughly two years, >>> works fine when running as a developmen

Why does django throw TypeError when sending requests through Apache WSGI?

2021-12-08 Thread Kyle Paterson
032] [remote 127.0.0.1:44946] Traceback (most recent call last): [Wed Dec 08 10:11:53.023283 2021] [wsgi:error] [pid 10704:tid 140343150348032] [remote 127.0.0.1:44946] File "/home/kyle/active-travel/traveldata/traveldata/wsgi.py", line 14, in [Wed Dec 08 10:11:53.023327 2021] [wsg

Re: Conseil et Guide

2021-03-02 Thread LordIS Kyle
Salut mon ami, Les Frameworks facilitent la création de contenu avec un gain de temps. Personnellement j'aime Django pour sa facilité et le fait qu'il est écrit en python et si t'es plutôt php je te conseille Laravel que symphony Le mar. 2 mars 2021 17:19, Michel Mahomy a écrit : > Bonjour M.

Re: Required Django Programmer for freelancer

2020-07-08 Thread LordIS Kyle
I'm interested for this project Le mer. 8 juil. 2020 14:25, Kumar Sanu a écrit : > Highly interested for this position > > On Wed, 8 Jul 2020, 15:12 Ajeet Kumar Gupt, > wrote: > >> Dear Team, >> >> I require Django programmers for an HR portal like leave request, HRMS. >> >> *System

Re: Error running Django tutorial

2020-03-24 Thread kyle D
I'm using Django for a class, and came across this thread and thought I'd post what fixed it for me in case someone else has the same issue I did. Makes sure your mysite/urls.py is the one that has the urlpatterns[] with the path to your polls and not the mysite/polls/urls.py. This one:

Prefetch and custom managers

2019-04-08 Thread 'Kyle Mulka' via Django users
These two tests are coming back with different results: https://github.com/mulka/django_prefetch_manager_bug/blob/master/review_site/tests.py Here's the models file: https://github.com/mulka/django_prefetch_manager_bug/blob/master/review_site/models.py Thanks in advance for your help! -Kyle

Zero Downtime Field Type Changes

2019-03-12 Thread 'Kyle Mulka' via Django users
: field = NewField() Thanks for your help! -- Kyle Mulka http://www.kylemulka.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Django to APK

2019-01-19 Thread Jean Kyle
Is there a way of converting a Django website into an APK that can be installed on an Android phone? -- 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

Custom Django Admin Pages

2018-08-20 Thread 'Kyle Mulka' via Django users
the best way to get custom pages to show up and render in the Django admin? Thanks, Kyle -- 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-user

Re: tutorial site not working

2017-11-04 Thread Kyle Foley
Let me also show what I have placed in the terminal >>> Question.objects.get(pk=1) >>> q = Question.objects.get(pk=1) >>> q.was_published_recently() I also don't understand why I am outputting: And the website says the output should be: -- You received this message because you are

tutorial site not working

2017-11-04 Thread Kyle Foley
At this site https://docs.djangoproject.com/en/1.11/intro/tutorial02/ towards the end I input the following: >>> q.was_published_recently() and I got the following error: Traceback (most recent call last): File

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
', and that solved the issue. but i'm a little confused as to why the apps.py module is not being created. On Saturday, November 4, 2017 at 3:01:15 PM UTC-7, Kyle Foley wrote: > > I'm trying to teach myself Django on this site: > > https://docs.djangoproject.com/en/1.11/intro/tutorial02/ >

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
de Django to 1.11 or use the tutorial for whichever > version you have installed. > > Marten > > On Saturday, November 4, 2017 at 11:01:15 PM UTC+1, Kyle Foley wrote: >> >> I'm trying to teach myself Django on this site: >> >> https://docs.djangoproject.c

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
-7, Kyle Foley wrote: > > I'm trying to teach myself Django on this site: > > https://docs.djangoproject.com/en/1.11/intro/tutorial02/ > > If you look at this sentence: > > To include the app in our project, we need to add a reference to its > configuration class in t

tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
I'm trying to teach myself Django on this site: https://docs.djangoproject.com/en/1.11/intro/tutorial02/ If you look at this sentence: To include the app in our project, we need to add a reference to its configuration class in the INSTALLED_APPS

Re: Issue using django-admin

2017-03-03 Thread Kyle
I am running into the same situation as described above. How does symlinking solve my problem? That is, where do I symlink to, and how does that tell my computer where django-admin is? On Monday, September 19, 2016 at 6:09:29 AM UTC-5, Bharathi Raja wrote: > > As said in docs >

Re: My class communication design problem.

2014-09-05 Thread Kyle Connors
I believe what you're looking for is an initial value. In __init__ the following would achieve this: self.fields['exercise_field'].initial = self.getRandomText(self.language, self.dictionary) On Friday, September 5, 2014 8:17:33 AM UTC-7, Yarick Antonov wrote: > > I have serious OOP design

Re: Getting list of user groups

2014-07-24 Thread Kyle Adams
After some more research, turns out it is "values_list" instead of "value_list" -- 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

Re: Getting list of user groups

2014-07-24 Thread Kyle Adams
One issue I'm still having is actually getting the list of group names. I'm trying to use the line groups = Group.objects.value_list('name', flat=True) but I'm getting an error that reads 'GroupManager' object has no attribute 'value_list' Any idea about this? -- You received this message

Re: Getting list of user groups

2014-07-24 Thread Kyle Adams
Thanks for your help, Russ. I'm planning to expose the user to the names of the groups using a drop list on my site. They'll choose a group, then our site will get the list of users in that group from Django, and then send a query to our database to get the data for that group of users. --

Getting list of user groups

2014-07-23 Thread Kyle Adams
I'm trying to get a list of the user groups available in a system. I have groups set up, but how do I, on some request, get a list of the names of each of the groups in my system? For some context, I'm working on an analytics dashboard, and part of what I want to be able to do is look at the

How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2013-11-09 Thread Kyle MacFarlane
With the new test runner in 1.6 it only seems to be running tests under my project and ignoring all tests in dependent apps listed in INSTALLED_APPS. If I try to specify another app to test by doing something like "django test a_dependency" I get an exception from Python's unittest saying "Path

Re: SMTPDataError with mail_admins, no problem with send_mail

2012-09-06 Thread Kyle Gong
This might be 3 years too late, but I had this same problem and the issue was that my ADMINS setting wasn't a list or tuple: ADMINS = ( ('Admin', 't...@test.com') ) changed it to the following and mail_admins worked: ADMINS = ( ('Admin', 't...@test.com'), ) On Wednesday, June 17, 2009

ImportError: No module named site

2011-06-29 Thread Kyle Latham
I searched this group for that error, and browsed through several pages and dozens of posts...but none of them helped me solve my error. Yesterday I had my server up and running, and I left it running overnight. I do not remember changing anything in any of my .py files, but when I shut down my

Question about Displaying a Table

2011-06-27 Thread Kyle Latham
I am able to display a table from the MySQL database in Django by creating a template and importing the data to the template? Is there a another/better approach towards displaying a MySQL table in the Django app? Thank you, Kyle -- You received this message because you are subscribed

Re: Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

2011-06-26 Thread Kyle Gong
russ...@keith-magee.com> wrote: > On Saturday, June 25, 2011, Kyle Gong <k...@kiwiinteractive.com> wrote: >> For some reason, I can't get my server to send 500 or 404 emails. I >> am set up to send email through gmail, and it is working properly when >> I send

Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

2011-06-24 Thread Kyle Gong
For some reason, I can't get my server to send 500 or 404 emails. I am set up to send email through gmail, and it is working properly when I send error emails through a logger set up using django.utils.log.AdminEmailHandler, and also when I send mail using django.core.mail.EmailMessage. I have

Re: Need help with tutorial

2011-06-15 Thread Kyle Latham
> > > > > > On Wed, Jun 15, 2011 at 6:02 PM, Kyle Latham <kly.lat...@gmail.com> wrote: > > I understand your frustration. I'm sorry for not posting my code with > > my first post. > > > my settings.py file (only up to the part I changed) is below: > &g

Re: Need help with tutorial

2011-06-15 Thread Kyle Latham
this :/ It's like saying "I made a change to this file, but it didn't work, > why not?" Come on man. > > > > > > > > On Wed, Jun 15, 2011 at 5:48 PM, Kyle Latham <kly.lat...@gmail.com> wrote: > > I'm trying to work my way through the tutorial 1

Need help with tutorial

2011-06-15 Thread Kyle Latham
; Poll.objects.all() [] as the output. Any help would be greatly appreciated. Thanks, Kyle -- 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,

Re: __unicode__() addition not working in basic poll application.

2011-06-14 Thread Kyle Latham
Hello, I am having the same problem while working through the tutorial. have searched these forums and tried everything that was recommended. My spacing is good also - I checked that. I am still getting the same output: >>> Poll.objects.all() [] Any ideas on how to fix my issue? On Jun 5,

Re: New to Django, sheet music organization site

2011-01-03 Thread Kyle
Thank you Tim! That was the problem! I will remember to post the full error stack next time. Thanks again, Kyle On Jan 3, 6:00 am, Tim Sawyer <list.dja...@calidris.co.uk> wrote: > On 03/01/11 03:53, Kyle wrote: > > > When I try to access my Object, I get an error "inva

Re: New to Django, sheet music organization site

2011-01-02 Thread Kyle
n Jan 2, 6:08 pm, Mike Dewhirst <mi...@dewhirst.com.au> wrote: > On 3/01/2011 9:56am, Kyle wrote: > > > Ok I have a good start. I have run into a problem though. In my > > database, I have an artist field. Most artists have a space in there > > name. When creati

Re: New to Django, sheet music organization site

2011-01-02 Thread Kyle
Ok I have a good start. I have run into a problem though. In my database, I have an artist field. Most artists have a space in there name. When creating my URLs, how can I ignore white space? For example, take the artist Chris Tomlin. In my database, it will show as "Chris Tomlin", but I don't

New to Django, sheet music organization site

2011-01-02 Thread Kyle
I am wanting to create an app that helps me organize sheet music. I want to be able to sort by the artist. Every piece of sheet music I have I want to be scanned in and uploaded as an image file, then when I want to open a particular file, it opens as a PDF. This would be my long terms goals. For

Re: Recommended Django development companies

2010-11-28 Thread Kyle
Venkat, I'm not quite in the market for consultants. I'm looking for a pre-existing team with enterprise client experience based in the US. Sincerely, Kyle On Nov 28, 7:09 am, Venkatraman S <venka...@gmail.com> wrote: > Hi Kyle, > > I am a Django freelancer. Are you looking

Recommended Django development companies

2010-11-28 Thread Kyle
I'm looking for companies on-par with PivitolLabs (which is Rails focused) but that focus on python web stacks, particularly Django. Can anybody offer recommendations? I'd greatly appreciate it! -Kyle -- You received this message because you are subscribed to the Google Groups "Django

How to pass a raw ORDER_BY command or function call to a results query object?

2010-06-17 Thread Kyle
Without any filtering, I can execute the following SQL query to get my ordered data: SELECT * from EXECUTION_JOB ORDER BY GREATEST(startTime, queueTime) DESC; But in Django, it seems like the order_by only likes passing of field names, not a function call. Is there a way to have it bass a raw

Re: How can I apply ordering through a M2M join model?

2010-02-28 Thread Kyle Fox
man...@gmail.com> wrote: > What is wrong with gallery.photos.all().order_by('name') ? > > On Feb 27, 4:49 pm, Kyle Fox <kyle@gmail.com> wrote: > > > > > I'm wondering if it's possible to apply ordering to a ManyToMany > > relationship by using a `position` a

How can I apply ordering through a M2M join model?

2010-02-27 Thread Kyle Fox
I'm wondering if it's possible to apply ordering to a ManyToMany relationship by using a `position` attribute on the join model. A classic example (photo gallery) is probably the best way to illustrate this: class Photo(models.Model): image = models.ImageField(upload_to="photos") class

Testing feed generators doesn't load attribute templates?

2009-09-28 Thread Kyle MacFarlane
I extended django.utils.feedgenerator.Atom1Feed for my own needs and am trying to write some tests for it. It works fine from rusnserver and mod_wsgi. Basically, when feeds are accessed from the testrunner I'm running into these problems: 1) The item_title() and item_description() methods are

Re: Management commands not detected in all packages under a namespace?

2009-09-19 Thread Kyle MacFarlane
On Sep 19, 6:41 am, James Bennett <ubernost...@gmail.com> wrote: > On Fri, Sep 18, 2009 at 10:36 PM, Kyle MacFarlane > > <kylemacfarl...@gmail.com> wrote: > > Everything works fine except when detecting management commands. It > > will only detect commands

Management commands not detected in all packages under a namespace?

2009-09-18 Thread Kyle MacFarlane
I have a bunch of packages under a company namespace, and inside "company.__init__.py" in every package I have only the following: __import__('pkg_resources').declare_namespace(__name__) Everything works fine except when detecting management commands. It will only detect commands in the first

Re: Port Number for Flatpages Sites

2009-03-05 Thread Kyle Hayes
Never mind. Things are working fine. There was something wrong with my default.html template. On Mar 5, 8:10 am, Kyle Hayes <mrkyleha...@gmail.com> wrote: > Does it matter if I specify a port number for the site domain in Sites > from the Admin panel for my flatpages to work? I'm r

Port Number for Flatpages Sites

2009-03-05 Thread Kyle Hayes
Does it matter if I specify a port number for the site domain in Sites from the Admin panel for my flatpages to work? I'm really having a tough time getting these flatpages to display. Thanks, Kyle --~--~-~--~~~---~--~~ You received this message because you

JavaScript Frameworks...

2009-03-04 Thread Kyle Hayes
your thoughts about your favorite JavaScript framework by filling out the following survey: http://bit.ly/jsfw If you are interested in the compiled results, I will be posting it at kylehayes.info/blog Thanks in advance, I look forward to your feedback! -Kyle Link to Survey: http://bit.ly/jsfw

lighttpd and fcgi issues

2009-02-06 Thread Kyle Hayes
;, ) } I started lighttpd using /etc/init.d/lighttpd start and it start successfully (you can see this from one of the php sites www.semanticism.com). I then started the fcgi process from manage.py using: python manage.py runfcgi socket=/home/breezyduck/mysite.sock pidfile=django.pi

Re: Three table Lookup Question

2009-02-02 Thread Kyle
Yes, that does it. Thank you. On Sun, Feb 1, 2009 at 8:06 AM, Karen Tracey <kmtra...@gmail.com> wrote: > On Sun, Feb 1, 2009 at 4:36 AM, Kyle <thinki...@gmail.com> wrote: > >> Hello again. >> >> I have one more question about the three table lookup I am tryi

Re: Three table Lookup Question

2009-02-01 Thread Kyle
for any help and further guidance! On Thu, Jan 29, 2009 at 4:00 PM, Kyle <thinki...@gmail.com> wrote: > Yes, almost. It got me to understand the correct syntax. > > I noticed that my results were coming according to Industry's primary key, > rather than the Industry integer fi

Re: Three table Lookup Question

2009-01-29 Thread Kyle
gt; > Is that what you were asking? > > On Thu, Jan 29, 2009 at 9:54 AM, Kyle <thinki...@gmail.com> wrote: > > > > Hello! > > > > I am trying to get a list of "Projects" based on certain "Industry". > > (My naming convention, not dja

Three table Lookup Question

2009-01-29 Thread Kyle
Hello! I am trying to get a list of "Projects" based on certain "Industry". (My naming convention, not django's) My models look like this: http://dpaste.com/114308/ "Project" has a foreign key to "Campaign". "Industry" also has a foreign key to "Campaign". Does it matter if both

Re: wordpress hooks and actions system in django?

2008-02-22 Thread Kyle Fox
The part that I'm struggling to wrap my head around is how to make plugins "installable". I think one of the reasons Wordpress's plugin framework is so successful is how easy it is to manage your plugins: install / uninstall buttons on a page means the user doesn't have to write any glue code or

Re: In need of a more flexible URL routing scheme...

2008-02-04 Thread Kyle Fox
Okay, I think I did something like that. The problem is that the @permalink and named urls doesn't seem to work because the named URL has two different entries in the URLconf... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

In need of a more flexible URL routing scheme...

2008-02-03 Thread Kyle Fox
I've been having a hard time figuring out how to solve this problem: We're building *another* django blogging app, but we want the app to support multiple blogs on the same site, ideally by having each Blog "mounted" on it's own URL, ie: "/politics/" is a Blog, "/tumbles/" is another Blog, etc.

Re: Having a problem using django-admin.py runserver

2007-12-03 Thread Kyle Fox
I'd just like to report that we're having this problem as well, the same as you describe. The `shell` command seems to work fine... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Design Question : model needs in model or view

2007-11-07 Thread Kyle Fox
I'd probably put it in the model. Putting it in the view means if you ever create an instance of that model elsewhere, you'll need to duplicate the code for creating the related model. Not very DRY :) --~--~-~--~~~---~--~~ You received this message because you

How to use SplitDateTimeWidget (getting TypeError)

2007-09-25 Thread Kyle Fox
:59.898833'] format = u'%Y-%m-%d %H:%M:%S It looks like the SplitDateTimeWidget is returning an array of [date, time] strings, when it should be returning a single string. Does anyone know how to do this? Am I using the SplitDateTimeWidget incorrectly? Th

Re: Django deployment à lá Capistrano

2007-09-12 Thread Kyle Fox
I really don't see a need for a huge project to accomplish the goals you've outlined: 0) Checking in the local source changes if they have not already been checked in (optional). 1) Logging into the deployment target. 2) Checking out the latest source. 3) Modifying the production database as

Re: Including view in a template

2007-08-02 Thread Kyle Fox
You might want to try writing an inclusion tag: http://www.djangoproject.com/documentation/templates_python/#inclusion-tags They are much simpler to write than template tags, and more "designer friendly." They let you write a separate template that gets rendered inside of another template

Re: Blog engine

2007-07-18 Thread Kyle Fox
It's easy to write a "basic" blog in Django. If that's all people want, then great. Something like that will work perfectly for the majority of bloggers (who probably won't get that much readership anyway)... But all this talk about making a "full-featured" blog app in Django -- one that will

Developing a flexible CMS

2007-06-24 Thread Kyle Fox
require me to write a custom form class for adding and editing a page, but with these relationships I really don't even know where to begin :S If anyone can provide advice (or just flat out tell me if I'm thinking about this wrong), it would be much appreciated! Thanks, Kyle --~--~-~--~~--

Re: Moving Images to Amazon S3

2007-05-31 Thread Kyle Fox
I think my question wasn't clear: we're having NO problem putting files on S3, that's dead simple (ie what Holovaty blogged about). What we need to do is take an *in-memory Image* and put it directly onto S3. We need a way to convert a PIL Image instance into a format S3 can accept WITHOUT

Moving Images to Amazon S3

2007-05-31 Thread Kyle Fox
I'm absolutely stuck on this. This question might be more python than django related, but I figured because it deals with Amazon S3, someone here may know how to handle it. Here's what needs to happen: 1. A user uploads an image (part of a Model we have) 2. Create a 100x100 thumbnail using

Re: Where did you put your homepage view?

2007-05-23 Thread Kyle Fox
> I usually make a home controller. Then I typically use an index > action for the home page view. This is normally what I do as well, I just define a view called 'index' somewhere and point r'^$' at it. But this seems like a good place for me to ask a related question I've often puzzled over:

Re: Where did you put your homepage view?

2007-05-23 Thread Kyle Fox
> I usually make a home controller. Then I typically use an index > action for the home page view. This is normally what I do as well, I just define a view called 'index' somewhere and point r'^$' at it. But this seems like a good place for me to ask a related question I've often puzzled over:

Re: Where did you put your homepage view?

2007-05-23 Thread Kyle Fox
> I usually make a home controller. Then I typically use an index > action for the home page view. This is normally what I do as well, I just define a view called 'index' somewhere and point r'^$' at it. But this seems like a good place for me to ask a related question I've often puzzled over:

Re: Securing static files

2007-05-19 Thread Kyle Fox
Maybe I'm not understanding what the problem is, but why can't you just make a new directory for each user? > > user A uploads file 1 to /static_files//file1.jpg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Need some help with Amazon S3

2007-05-07 Thread Kyle Fox
was not around managing the connection to S3, but the actual upload to S3 itself. Kyle. --~--~-~--~~~---~--~~ 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@google

Re: Simple model inheritance

2007-04-01 Thread Kyle Fox
u know where I can find more info on it? Thanks, Kyle --~--~-~--~~~---~--~~ 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

Re: DB Super Model (ahem)

2007-03-27 Thread Kyle Fox
This is just a guess, but could it be because you're calling .save() (defined in models.Model) before calling __init__() on the superclass? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Suggestions for Django Presentation

2007-03-21 Thread Kyle Fox
Filters are unbelievably helpful when you have different people doing markup and development. The 'pluralize' filter, for example (as well as the 'humanize' collection), has saved us developers from having to write templae-side code to figure out if there should be an 's' at the end of a noun.