On 2008-09-09 at 22:46:52 -0700, Samuel Mathieson wrote:
> Date: Tue, 9 Sep 2008 22:46:52 -0700 (PDT)
> To: Django users
> From: Samuel Mathieson <[EMAIL PROTECTED]>
> Subject: validation inline
>
> Hello, I am trying to get some sort of validation inline for the
> admin:
>
>
> The validation
Am I missing an easy way to check if an application is installed
so I can make decisions in a template?
I have an application that currently requires the comments framework
and django-attachments.
I would rather make them optional depending on the functionality needed
by the user/hoster of my app
On 2010-01-16 at 14:37:38 -0800, Tomasz Zieliński wrote:
> On 16 Sty, 20:31, "Aaron C. de Bruyn" wrote:
> > Am I missing an easy way to check if an application is installed
> > so I can make decisions in a template?
>
> AFAIK there is no such feature, but I t
This has been asked eleventy bajillion times, but I don't see a wiki
page on it? :)
I'd be happy to dig through the archives and compile a list if there's
no objection.
Would there be a problem including for-pay IDEs? (For example I use
PyCharm from time to time)
Any wiki managers or people wi
Ok--wiki page here:
https://code.djangoproject.com/wiki/DjangoResources#IntegratedDevelopmentEnvironments
Now we can stop the 'IDE' threads that come up every few weeks. :)
It's not a complete list--I just wanted to bash something out quickly
and let others add their favorites that I missed.
-A
Try here:
https://code.djangoproject.com/wiki/DjangoResources#IntegratedDevelopmentEnvironments
But keep in mind, a good carpenter can work with a $5 hammer or a $50
hammer. The tools don't make the developer. (Although they can make
the job of a good developer easier.)
-A
On Mon, May 14, 201
Sounds like you might benefit from Fabric.
Fabric lets you define a repeatable process (in Python) for deploying
your website to a server.
-A
On Tue, May 22, 2012 at 1:17 PM, kooliah
wrote:
> I'm working on a new site and i have often the need to update the server to
> let other people see the p
I am not a Windows developer--but I was recently asked to port a very small
Django app (so it could be run locally using the dev server) on Windows.
The app was developed using Django 1.4, but the ActiveState Package Manager
(pypm) installs Django 1.3. Rather than rewriting some of the code, I'
On Sat, Jun 2, 2012 at 9:43 AM, Bill Freeman wrote:
> Have you considered running under a virtualenv and pip installing
> exactly what you need?
Yes--that's what I may end up doing. Just trying to remove a few
steps from the 'install procedure' for a user that already doesn't
like the CLI.
Than
On Sun, Jun 3, 2012 at 9:48 AM, Aaron C. de Bruyn wrote:
> On Sat, Jun 2, 2012 at 9:43 AM, Bill Freeman wrote:
>> Have you considered running under a virtualenv and pip installing
>> exactly what you need?
Windows is such a nightmare. PyPm doesn't have sqlite packages--the
On Mon, Jun 4, 2012 at 12:41 PM, Aaron C. de Bruyn wrote:
> Windows is such a nightmare. PyPm doesn't have sqlite packages--they
> all show a failure to compile on ActiveState's site. Apparently
> they've always failed for every version of Windows ever. Pip wasn&#x
On Thu, Jun 28, 2012 at 3:20 PM, grimmus wrote:
> I am wondering how i can pass the gig information to every page without
> having to repeat the code in every page view.
>
> I hope i have been clear
Not really. We can't guess what you're doing. :)
Paste a sample of the code you're referring to
On 2012-08-07 at 07:24:06 -0700, dokondr wrote:
> DATABASES = {
>'default': {
> 'ENGINE': 'django.db.backends.sqlite3', # Add
Do you actually have the sqlite3 library installed?
(Debian/Ubuntu: apt-get install python-pysqlite2)
> ImproperlyConfigured: settings.DATABASES is improperly
I disagree with the "how to install" section.
I use Nginx and uwsgi to host Django applications.
There are other ways to deploy it too.
The section makes it seem like the only 'real' way would be Apache.
Lastly, it doesn't seem to touch on how a lot of people actually
install and deploy django pr
On Fri, Sep 7, 2012 at 12:36 PM, William Hart wrote:
> And used in templates like so:
> {% url 'dashboard' %}
If you want to use quotes, put:
{% load url from future %}
at the top of your template.
Newer versions of Djagno WILL eventually require quotes, and using the
'load url from future' line
On Fri, Sep 14, 2012 at 11:40 AM, Lunga Baliwe wrote:
> I am writting a website that sends sms to a cell phone. I am using
> django-sendsms-0.2.2. I followed the README.rst doc and the output does
> appear on the console. How do I make it to actually send the sms?
You might want to contact the de
On Thu, Oct 18, 2012 at 6:55 PM, django wrote:
> I am trying to create a Django app, one of the thing I do in that is write
> a connection.py which connects to a remote server. In that connection
> string I need to send one of the parameter as "http_auth =
> http_auth.HTTPBasicAuth(user, passwor
I'm stumped.
I have a Django project that's fairly far along--I'm able to use it
internally.
A few days ago while trying to debug a function, I noticed I was settings a
property incorrectly.
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits
Django 1.5 is close to being released.
I'm not sure how you do your development, but my process under Linux is to
create a virtualenv (virtualenv myproject) then install the development
version of Django (pip install git+git://github.com/django/django.git) and
then begin the project (django-admin.
I think you're looking for something like this on a model:
@property
def is_bigger(self):
return self.a > self.b
-A
On Sat, Jan 5, 2013 at 9:16 AM, Babatunde Akinyanmi wrote:
> I think you can write a function that returns a > b and then make it a
> getter method with python's property.
>
Without knowing a bit more about your setup it would be difficult to give
any meaningful advice.
Are you running Apache under Windows or Linux?
How much memory is in your machine?
Is it a dedicated box, a VPS, or are you testing on your local workstation?
What part of your site is running slow?
You might take a look at the form wizard.
You can create two separate forms, run them through the form wizard, and at
the end process the results and log the user in.
On Mon, Jan 7, 2013 at 12:06 PM, Okorie Emmanuel wrote:
> Am new to django and i want to develop an e-registration portal. User
I have two forms defined in my project:
class BatchForm(ModelForm):
class Meta:
model = Batch
class SelectItemForm(forms.Form):
item = forms.ModelMultipleChoiceField(queryset=ItemClass.objects.all())
One is a ModelForm, the other is a plain form.
I hooked it into my urls like
Not specifically, but Bootstrap is nice:
http://twitter.github.io/bootstrap/
On Tue, May 21, 2013 at 2:19 PM, Kakar Arunachal Service <
kakararunachalserv...@gmail.com> wrote:
> Hi!
> Is there any kind of theme generator or css generator for django?
>
> --
> You received this message because y
Do you have any processes open that are holding locks on the DB?
Maybe a 'manage.py shell'?
-A
On Sat, May 25, 2013 at 6:11 PM, Joshua Kehn wrote:
> Everything was working up until a few hours ago. Then I tried setting up
> South because I have a less than simple migration to do. Now I've tri
Sounds like Python 3.3 might not have been compiled with zlib support.
You might take a look here:
http://stackoverflow.com/questions/6169522/no-module-named-zlib
-A
On Sat, Jun 8, 2013 at 12:57 PM, Eimantas Stonys
wrote:
> Hello people,
>
> I would really be very happy if someone could help m
You might look into using MySQL Workbench to migrate the data to another
MySQL server, then move the code to the new server.
Look here for help with anything that might break:
https://docs.djangoproject.com/en/1.5/releases/
Anything that has you stumped, post here and the community can help!
-A
You might consider trying http://www.pairprogramwith.me/
-A
On Mon, Jun 10, 2013 at 2:13 PM, Feyzi Bagirov wrote:
> Trying to learn the platform and work on the project at the same time.
>
> Thanks, Feyzi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Dja
Google is your friend.
The first tutorial that came up when I searched for 'ssh for windows users'
was this site:
http://support.suso.com/supki/SSH_Tutorial_for_Windows
Do you have an existing Linux server at your house or with a hosting
provider?
If managing a Linux server is too steep of a lea
On Sun, Aug 11, 2013 at 1:35 PM, Robin Lery wrote:
> have a linux server or hosting provider yet. I was just curious, as when
> the time will come to deploy in production level, what other basic things
> should I know. I will try the tutorials on ssh that you gave me. And thank
> you for your gui
This isn't a django issue, but rather an issue with the package management
system in your Linux distribution.
This can happen if someone publishes a broken package, or you add on PPA's
that have conflicting requirements.
Basically it's saying that geonode depends on a version of Django greater
th
Just a stab in the dark, but are both projects using the same port?
Using gunicorn, you can set the IP and port the server runs on, then in
Nginx you need to tell each app to use the correct port.
Example from memory:
/home/aaron/app1 $ python manage.py gunicorn 127.0.0.1:8000
/home/aaron/app2
Feel free to use whatever names you'd like in models.
def Ikhouvanjou(models.Model):
#whatever field names you want...
-A
On Fri, Aug 30, 2013 at 6:23 PM, Dan Gentry wrote:
>
> Just my opinion, but I see no reason to use English names in models. Use
> whatever you wish. English speaking p
I believe this is what you are looking for:
https://docs.djangoproject.com/en/1.5/topics/http/urls/#reverse-resolution-of-urls
-A
On Sat, Sep 7, 2013 at 8:17 PM, Nafiul Islam wrote:
> I've been busy exploring the different Python Web Frameworks, and it has
> been a rewarding experience. I want
If it still doesn't work after doing what James suggested, you can look to
see if python is actually 'listening' on port 8000.
>From an 'elevated' command prompt (start->type 'cmd', right-click 'cmd' and
hit 'run as administrator') type 'netstat -abno > netstat.txt' and hit
enter. Then type 'note
This is output from the migrate command against an empty postgres DB.
16:05:39 [aaron@ender:~/code/busybodyweb] [busybody] master* ± python
manage.py migrate
Operations to perform:
Synchronize unmigrated apps: stronghold, site_basics, gunicorn,
djcelery_email, staticfiles, admindocs, messages,
uot;
>
> I think what was happening is that in 1.7.x Django was not creating
> the Foreign Key constraint and wasn't raising an error on that. In 1.8
> it does, which seems like a better situation to me.
>
> Way to fix it would be to add migrations to avatar. Even a basic
> mi
Have you looked through the deployment documentation yet?
(https://docs.djangoproject.com/en/1.8/howto/deployment/)
-A
On Wed, Apr 22, 2015 at 4:35 PM, john wrote:
> Hi,
> I have created a website that works well under "runserver". But when I use
> nginx and uwsgi the basic website comes up but
Steve,
You don't appear to be in the same folder as manage.py.
You need to change to the directory that holds your project files.
-A
On Thu, Jun 25, 2015 at 1:35 PM, Steve Burrus wrote:
> No i am sorry but python manage.py runserver doesn't work! I first tried to
> run it in a newly created vi
Are you getting an error message?
Can you describe what is happening (or not happening)?
Thanks,
-A
On Sun, Jul 5, 2015 at 8:33 AM, Steve Burrus wrote:
> Listen I am having/experiencing some degree of diffilculty in being able to
> coordinaTE my Pytjhon version with Django. i can easily end up
or message?" lNo particular error message. But I
> cannot even start to go thru the usual procedure to end up connecting to the
> Django server! It's irrational that for as long as the version 3.4.* of
> python has been out that I hAvE to still use the old version 2.7.
>
>
Glad it's working.
-A
On Mon, Jul 6, 2015 at 10:02 AM, Steve Burrus wrote:
> Well I want to sheeplishly say thwat I DID get Python 3.4.2 going with the
> Django server! I kind of feel like the late Gilda Radner saying "Never
> mind!" in her well-known Saturday Night Live sketch. But to answer yo
You might be looking for the FormWizard.
In the latest version of Django, it has been moved to an external
application
(https://github.com/django/django-formtools/blob/master/docs/wizard.rst).
In older version of Django, it is part of the corp app
(https://docs.djangoproject.com/en/1.7/ref/contri
After trying to load the page in Chrome, do you see any output in the
'runserver' window?
On Mon, Aug 18, 2014 at 7:28 PM, Andrew Koller wrote:
> I'm having issues getting the dev server to work. After I installed
> Django, and
>
> $ python -c "import django; prindjango.get_version())"
>
>> ret
It depends on a lot of things.
1. You can try running:
python
from django import get_version
print get_version()
2. If you don't see manage.py in the root directory, you are probably using
a very old version of django. I would start by creating a virtualenv
running an early version of Django (m
You might consider setting up your database connection string, then doing a
'python manage.py inspectdb'.
This will spit out a bunch of model definitions. Paste them into your
models.py, and add them in admin.py, and you have an interface for managing
a database.
-A
On Sat, Sep 20, 2014 at 6:38
That's awesome! Thanks.
-A
On Mon, Oct 13, 2014 at 8:35 AM, Jonathan S
wrote:
> Hi all,
>
> Two weeks ago I released the python-prompt-toolkit library with the
> "ptpython" REPL. That is a nice python interactive shell with decent
> multiline editing, syntax highlighting and autocompletion.
>
I'm not aware of any such module, but there are a few python 'git'
modules for reading/writing, etc...
As for how much trouble it would be, that all depends on how familiar
you are with git, python, Django, and the template system.
One way you might be able to achieve what you want is to create y
My docker setup is pretty easy:
wget -qO- https://raw.github.com/progrium/dokku/v0.3.13/bootstrap.sh |
sudo DOKKU_TAG=v0.3.13 bash
cat ~/.ssh/id_rsa.pub | ssh r...@mynewhost.mydomain.tld "sudo
sshcommand acl-add dokku myproject"
git remote add production do...@mynewhost.mydomain.tld:myproject
g
Take a look at this:
http://www.wikihow.com/Register-a-User-Name-on-Freenode
If you still get stuck, let us know.
-A
On Wed, Apr 2, 2014 at 1:43 PM, John Draper wrote:
> I go to Adium --> File --> irc.freenode.net
> see screenshot
>
> I put in my nickname, hostname, and password.
>
> I get t
The best way to find out would be to download django-cms and django-shop
and test them out for yourself to make sure they meet your requirements.
Or hire a developer to research your requirements for you.
My guess would be 'no', because their goal isn't to be multi-tenant apps.
-A
On Sat, May
Can you provide us with a little more detail? What isn't working? What
error messages are you getting?
I haven't touched it in about a year. You might also consider getting
support by going here: https://github.com/talpor/django-dashing/issues/new
-A
On Fri, May 6, 2016 at 12:51 PM, Foridur K
1. DNS doesn't really work that way in most situations. Your browser
should cache it, your computer should cache it (especially Windows),
and your upstream DNS (usually your router) should cache it. Your
computer literally stores 'mysite.com' = '1.2.3.4'. It doesn't store
it per-page, but for th
On Mon, Aug 10, 2015 at 7:46 AM, JAI PRAKASH SINGH
wrote:
> Thank you for replay, so i just want to know, if i want to implement in
> django will it work fine ?
That's not really a question about the language. Developers can do
all sorts of amazing stuff with Django. I was surprised to find
I personally follow a few:
* The security mailing list for the distos I use (mainly ubuntu-security)
* FullDisclosure mailing list
* Slashdot ;)
* SoylentNews
* Listen to TechSNAP on Fridays (http://www.jupiterbroadcasting.com/)
If you're really hard-core you can get the CVE feeds:
https://cve.mit
Er...I totally spaced another bullet point:
* Security list for the application(s) you are using (i.e. django-security)
-A
On Tue, Aug 18, 2015 at 2:29 PM, Aaron C. de Bruyn wrote:
> I personally follow a few:
> * The security mailing list for the distos I use (mainly ubuntu-se
Heroku is another paid alternative.
For myself, I purchase a $5/mo digital ocean server and install
'dokku' (https://github.com/progrium/dokku) so I can 'git push'.
For automated builds I use Drone CI (https://github.com/drone/drone)
which can also be installed on the same (or a separate) server.
Without knowing too much about your environment, I figured I'd tell
you how I do it on my Debian-derivative systems.
* Install python-virtualenv and virtualenvwrapper - These tools help
you create isolated python environments under your home folder under
'.virtualenv'.
* Create a virtualenv for th
Oops--almost forgot. Create a .gitignore in your ~/code/carsite file
before you commit your changes and push them to GitHub.
https://www.gitignore.io
-A
On Tue, Oct 13, 2015 at 7:00 PM, Aaron C. de Bruyn wrote:
> Without knowing too much about your environment, I figured I'd tell
>
You might want to check out Apache .htaccess files for securing the files.
Django sounds like it might be overkill for password protecting files.
-A
On Mon, Nov 2, 2015 at 8:37 AM, Andrew S wrote:
> Hello,
>
> I have a folder full of HTML files that will reside on a subdomain.
>
> I would like t
Without any specific information on the problems you are having, here
is a link to the Haystack search tool:
http://haystacksearch.org/
If you can provide us with more detail, we would be happy to help.
-A
On Sun, Nov 8, 2015 at 11:06 PM, nAncy sharma wrote:
> Hi there,
>
> I am building a webs
If I recall correctly, the 'wc' object would need to be a file object. You
could assign it similar to this:
from django.core.files import File
wc = File(open('/path/to/image', 'r'))
user.userprofile.tagcloud = wc
user.userprofile.save()
If the 'wc' variable returned by your program is already a
I may be missing something, but couldn't you use a generic ListView and
something like:
{% for car in car_list %}
Car Make:
...etc
{% endfor %}
Don't include a tag or a submit button and you should get something
that looks like a form, but is read-only.
Maybe even disable the input box so i
A simple annotation broke when I migrated by app from Django 1.8.x to
1.9.2, and I can't figure out why for the life of me.
Calling Company.objects.all().annotate(ticketcount=Count('srservice'))
throws an error "ProgrammingError: column "company.owner_id" must appear in
the GROUP BY clause or be
That's still pretty vague. What 'file sharing protocols' are you talking
about specifically? And what do you mean by wanting to 'connect' the file
sharing protocols to the application?
There is a PySMB library that will allow your Django application to pretend
to be a Windows client.
If you're
wanted to connect my Django web application with Samba File sharing
> sever so that I can access it from an IP typed at a web-browser.
>
> On Wed, Mar 9, 2016 at 10:03 PM, Aaron C. de Bruyn
> wrote:
>
>> That's still pretty vague. What 'file sharing protocols' are
Another fun way to deploy it is to a dokku (or Heroku) server.
Create a git repo with a requirements.txt that includes:
sentry[postgres]
psycopg2
Create a Procfile:
web: sentry --config=sentry.conf.py start
workers: sentry --config=sentry.conf.py celery worker -B
And finally a sentry.conf.py wit
* My project has been around since the Django 1.2 days.
* Some time around 1.8.x I ran squashmigrations and everything worked
perfectly.
* I've done lots of migrations since then.
* I updated the app to Python 3.
* Everything was working perfectly
I just did my first makemigration under python 3.
The difference between .filter() and .get() is definitely 'by-design'.
When you filter through a list of objects, you could end up with zero,
one, or many objects returned.
When you call .get(), you are basically saying "I want to get exactly
*one* record". If the record is not found, it is cons
If you're talking about migrating data using tools outside of django,
I've used SQLWorkbench[0] in the past.
I currently use it to selectively sync a handful of tables out of a
~900 table database *in* to my Django app.
[0] - http://www.sql-workbench.net/
-A
On Sun, Oct 23, 2016 at 9:04 PM, Mike
It's a little un-clear how you are setting up your Django deployment,
but the 'dev server' shouldn't be exposed directly to the internet.
Have you read through the deployment guides?
https://docs.djangoproject.com/en/1.10/howto/deployment/
-A
On Sun, Dec 4, 2016 at 11:43 PM, deepak gupta wrote
One of the first results when Googling 'Django video tutorials' is
this: https://www.quora.com/Are-there-any-good-Django-video-tutorials
There are many links provided there.
-A
On Tue, Jan 31, 2017 at 5:28 PM, wrote:
> am new using python(django) i built an app lately but i want to build a
> d
Nope.
-A
On Fri, Mar 10, 2017 at 12:17 PM, Matthew Pava wrote:
> Does anyone else get a migraine when working migrations?
>
> --
> 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,
73 matches
Mail list logo