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
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’]
|'): 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
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
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
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.
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
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:
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
:
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
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
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
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
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
',
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/
>
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
-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
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
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
>
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
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
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
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.
--
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
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
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
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
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
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
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
>
>
>
>
>
> 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
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
; 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,
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
;,
)
}
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
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
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
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
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
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
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
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.
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
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
: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
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
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
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
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
--~--~-~--~~--
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
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
> 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:
> 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:
> 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:
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
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
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
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
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.
74 matches
Mail list logo