On Tue, Apr 2, 2013 at 4:57 PM, Serdar Dalgic wrote:
> On Tue, Apr 2, 2013 at 11:48 PM, Bill Freeman wrote:
> > Perhaps take the site down (or clone it), set managed = True, ask
> manage.py
> > for sql for that app, and put everything back?
> >
>
> Sure, that
is also possible to use a non-distribted VCS, like
Subversion, but you lose, IIUC, the ability to check in incremental stuff
or check what was their in an older version, when not connected.
Bill
On Wed, Apr 3, 2013 at 2:54 PM, Nikolas Stevenson-Molnar <
nik.mol...@consbio.org> wrote:
&g
Be sure that you back up your database first, or at least soon, just in
case...
On Thu, Apr 4, 2013 at 11:35 AM, Giorgos Kontogiorgakis <
shortgeorge...@yahoo.com> wrote:
> Thanks a lot Tom for your time and for your help.i'll check what u've send
> me and i'll inform you right after!
>
> --
>
I believe that additional tables are required to run Django, such as
session and user tables, stuff to do with permissions, stuff to do with
content types. Maybe you can avoid these by not including the core
applications in INSTALLED_APPS, but then you couldn't log in to or be
designated an superu
Just to be clear, are you saying that svn lets you do check ins on a
private branch when you are not connected to the network (and thus can't
access the central repository)?
On Thu, Apr 4, 2013 at 7:30 PM, Mike Dewhirst wrote:
> On 5/04/2013 12:36am, Bill Freeman wrote:
>
&g
A linux VPS, such as from linode.com would certainly allow this (we pay
abotu $20/mo for ours).
As to shared hosts, it wouldn't hurt to ask at WebFaction. If I were them,
I'd want to examine the code and do the compiling, and I'd probably want to
charge for that code review (or if it's a standard
An please, indicate on your site that the credit card number will go
through your site, so that I can know to never buy anything there.
I suspect that I can count on my fingers and toes the number of web
developers in the world who have the knowledge, patience, and diligence to
securely handle cre
On Wed, Apr 10, 2013 at 3:22 PM, sparky wrote:
> @ke1g thats a very sweeping generalisation.
>
> personally, we are PCI DSS level 2 compliant, have scans and all data is
> transmitted using SSL. we are resellers
> we also NEVER store card details EVER only transmit! I'm a newbie to
> Django but h
On Wed, Apr 10, 2013 at 3:50 PM, sparky wrote:
> @ke1g also there are very high compliance standards in the UK. You have
> to be complaint or the merchants
> get on your case.
> you have to have port scans, SSL and some level of PCI DSS to take cards
> on your site with sagepay.
>
>
> just my 2p
On Wed, Apr 10, 2013 at 3:35 PM, Mario Gudelj wrote:
> What exactly are you proposing, Bill? What's the problem with simply
> passing the credit card data to the gateway if you do it over SSL and not
> store it? Are you saying that you're only purchasing on sites with
>
On Wed, Apr 10, 2013 at 11:55 AM, sara ismail wrote:
> can anyone help me?!
>
> On Wednesday, April 10, 2013 4:50:51 PM UTC+2, sara ismail wrote:
>>
>> im new to django, and i am working on a project, a selling and buying
>> website, where a user can post about a product that he/she wants to sell,
One way is to replace/wrap/monkey-patch the login view to save a copy of
the last login element for the looked up user in a local variable, and
then, if login is successful, and the last login was long enough ago,
modify the successful login redirect to your "instructions" page.
On Tue, Apr 16, 2
An alternative approach is to download VMWare player (free) and run a
(possibly the same) linux distribution there.
It sounds like extra work, I know, but it avoids any nits about running on
Windows.
Bill
On Sun, May 5, 2013 at 10:37 PM, Mike Dewhirst wrote:
> On 6/05/2013 11:40am, Nathan
setup.py, index page on private server, find links fiddling) strike me as
less work that installing it by hand twice, and certainly if there is ever
an upgrade.
Bill
On Wed, May 1, 2013 at 3:09 PM, Sells, Fred wrote:
> We’re a small organization with limited sysadmin support and a low
> thr
app
or not. This is too late to control anything in process_request, but,
since you can decorate the request in process_view if you find that it is
from your target app, all the other proces_xxx methods can benefit from
your determination.
Bill
On Fri, May 10, 2013 at 6:40 AM, Hristo Des
Don't you need to reference it by the function name:
"show_popular_keywords"?
On Sat, May 11, 2013 at 2:26 AM, wrote:
> I am attempting to create a fairly straightforward inclusion tag out of
> nothing more than a hardcoded dictionary of keywords. My app is set up like
> this:
>
> *apps*
> * k
Have you tried adding a slash at the end of STATIC_URL ?
On Tue, May 14, 2013 at 10:00 AM, Marc'h wrote:
> My mistake, the slash is missing between the static and images path
> components and not, as I erroneously wrote, between the app and static
> ones. Sorry for that.
>
> Le mardi 14 mai 201
path strings.
Bill
On Wed, May 15, 2013 at 11:19 AM, Larry Martell wrote:
> On Wed, May 15, 2013 at 9:04 AM, Tom Evans
> wrote:
> > On Wed, May 15, 2013 at 3:38 PM, Larry Martell
> wrote:
> >> I have a form with an upload files button. The form is POSTed so that
&g
On Wed, May 15, 2013 at 1:09 PM, Larry Martell wrote:
> On Wed, May 15, 2013 at 9:51 AM, Bill Freeman wrote:
> > If you are saying that you have other inputs in the form, and that you
> are
> > not getting them in request.POST, you may not be specifying the correct
> >
In addition to installing PostgreSQL you must use tools that come with the
postgres installation to 1. create a database (a postgres installation has
more than one), 2 create a user (unrelated to user account on the operating
system) for django to use (though some people cheat and use the pre-defin
en make perfect sense.
And if you're not already facile with python, the tutorial at
docs.python.org, again, be sure to do the one for the version of python
that you have, is worth doing first of all.
Bill
On Sat, May 18, 2013 at 3:42 PM, Kakar Arunachal Service <
kakararunachalserv...@g
Does the ecomstore directory (as well as the catalog dirction) also have an
__init__.py file in it? And is the ecomstore directory in the same
directory as manage.py ?
Or is ecomstore the project name, rather than part of an app with extra
levels? (Still needs an __init__.py) And if so, and if
Yes, but of which directory is the catalog directory a sub-directory? The
upper ecomstore (which contains manage.py) or the lower ecomstore (which
contains settings.py)? Or is it somewhere else entirely?
On Sat, May 18, 2013 at 6:59 PM, Kakar Arunachal Service <
kakararunachalserv...@gmail.com
Can you run:
python manage.py shell
? If you already have an error, try again with the 'ecomstore.catalog',
line commented out in settings.py
If shell runs without an error and gives you a python prompt, try the
following, in sequence until you get an error:
>>> import ecomstore
>>> imp
alservice <
kakararunachalserv...@gmail.com> wrote:
>
> Its in the upper directory, i.e. where the manage.py is.
>
>
>
> Sent from Samsung tablet
>
>
> Bill Freeman wrote:
>
>
> Yes, but of which directory is the catalog directory a sub-directory? The
>
Since I'm unfamiliar with the book, I don't know about the 'created_at'
field, which must be specific to the book's app design.
Try commenting out the reference to 'created_at' in admin.py and see if you
get further. If so, then try to be sure that you are following the book in
order, and that th
On Wed, May 22, 2013 at 12:41 PM, Charles Mulder wrote:
> Hi,
>
> Hope you're well.
>
> I've added a couple of environment variables to my virtualenv postactivate
> file, for example:
>
> export DATABASE_USER="root"
> export DATABASE_PASSWORD="12345678"
>
N.B. that environment variables are not a
on.load(fp)
If this fails, there is definitely a syntax error in the file per seh. If
it succeeds try:
>>> print json.dumps(obj, sort_keys=True, indent=4, separators=(',', ':
'))
to see a prettier version you can examine.
Good luck,
Bill
On Thu, May 30,
27;ve never tried this, so it's
possible that loaddata only supports JSON.)
Bill
On Thu, May 30, 2013 at 1:38 PM, Gitonga Mbaya wrote:
> Bill,
>
> This is are the exact steps I follow:
>
> python manage.py dumpdata --indent=4 > fixtures/data.json
>
> python manag
n
>>
>> (You should be able to leave off the fixture/ if that's where you have
>> put it.)
>>
>> Try again in the XML format:
>>
>> python manage.py dumpdata --format xml > file.xml
>>
>> python manage.py loaddata file.xml
>>
gt;>> loaddata fixture/file.json
>>>>
>>>> (You should be able to leave off the fixture/ if that's where you have
>>>> put it.)
>>>>
>>>> Try again in the XML format:
>>>>
>>>> python manage.py dumpdata --form
If all else fails this untested tool (attached) might translate bad files
to good ones. Run it like this:
python utr16toascii.py bad_file name_for_new_good_file
On Thu, May 30, 2013 at 4:10 PM, Bill Freeman wrote:
> This file is encoded in UTF-16 with a byte order mark. That is to
me through this.
>
> On Thursday, May 30, 2013 11:19:07 PM UTC+3, ke1g wrote:
>
>> If all else fails this untested tool (attached) might translate bad files
>> to good ones. Run it like this:
>>
>> python utr16toascii.py bad_file name_for_new_good_file
>
Does your setting.py configure ROOT_URLCONF correctly?
On Mon, Jun 3, 2013 at 10:45 AM, tony gair wrote:
>
> I'm getting an error
>
> Request URL: http://127.0.0.1:8000/heating/login/?next=/heating/orglv/
> Django Version: 1.5.1
> Exception Type: ImproperlyConfigured
> Exception Value:
> The in
Looking closer, do you have an app named 'main'? If so does it have a
urls.py in it? Can you import that without error (say in the manage.py
shell)? If so, try:
repr(main.urlpatterns)
(Since the error message complains that main.urls has no url patterns in
it.)
If you don't expect to use
y be security if you can trust ALL of
your logged in users.
Django's template system, and what you must do to have access to the user
object in the template, and how to test whether it is anonymous or
authenticated are well covered in the documentation and/or discussed in the
mailing list archiv
nal to the regular expressiom
application if you use named arguments.
Good luck.
Bill
On Fri, Jun 7, 2013 at 2:40 PM, Rene Zelaya wrote:
> Hi,
>
> I am getting the following error when the server tries to load one of my
> templates and I am not sure what the problem is:
>
> dictio
I wonder if you could use an iframe to create the illusion that these sites
are served from separate domains?
On Tue, Jun 11, 2013 at 10:32 AM, Tomas Ehrlich wrote:
> Hi Marcin,
> unfortunately it doesn't solve the problem. As it's said in document:
>
> Just like the secret keys, the SESSION_COO
This doesn't mean that things won't work. Just that if you are installing
new stuff, say, using the next version of django, it may not work there.
On Tue, Jun 11, 2013 at 5:09 PM, wrote:
> Hello everyone.
>
> My question is this:
>
> I am currently doing a small system, synchronize just a few
Have you tried
import app.mypackage
or
from app import mypackage
Or, from within views.py or mymodule.py, if you have done
from __future__ import absolute_imports
then try
import .mypackage
(There is a period before "mypackage" on that line.)
On Wed, Jun 19, 2013 at 2:51 PM,
Well, that would explain it. For directories the execute bit has to do
with directory traversal, rather than the execution of anything. No
adjustment to your wsgi config can get around that.
I can't advise you about mappings between windows permissions and *nix
permissions, not what sshclient do
Try using render or render_to_response instead of render_to_string. A view
needs to return and HttpResponse object, not a string.
On Thu, Jun 20, 2013 at 4:59 PM, der_fenix wrote:
> **
>
> Hello I have problem with render_to_string
>
> django it's showme this error message :
>
> 'SafeText' obj
import re
hexnum = re.search(r': ?([0-9a-fA-F]+)>', the_string).group(1)
It is worth you while to learn about regular expressions:
http://docs.python.org/2.7/library/re.html
There are ways to do this without regular expressions, and there are
simpler patterns for this specific formatting, more f
On Fri, Jun 21, 2013 at 11:34 AM, Nigel Legg wrote:
> In the path shown in my previous email, documents is a subdirectory of the
> media directory, which is set in settings.py.
>
No it's not a subdirectory. It begins with '/', so it is sought at the
root of the filesystem.
>
>
>>> IOError at /
Try using single forward slashes in MEDIA_ROOT (and in other paths in
settings.py).
On Sat, Jun 22, 2013 at 3:46 AM, Nigel Legg wrote:
> MEDIA_ROOT = 'c:\\stats_portal\\myproject\\myproject\\media\\'
>
> doesn't work. I've parsed the path to get this working for the time
> being, thanks for yo
ctly
saves them using the ORM.
5. Have your program use an independent connection to the database that is
backing Django to create the rows directly.
I suspect that 3 or 4 are the simplest to code, but will require more
Django study than that required to put up a web site.
Bill
On Wed, Jun 26, 20
While I don't know the details, I do know that use of .htaccess files (and
I'm pretty sure there are two "c"s, as I have it, but at lest in your
email, you have one) must be explicitly enabled in apache's configuration.
That's because checking for .htaccess files in every directory slows apache
dow
I suspect that this just means that you can add or not add url patterns,
and adjust the contents of the regular expression or other members of the
url pattern object, based upon information AVAILABLE AT IMPORT TIME, such
as settings.DEBUG, settings.INSTALLED_APPS, socket.gethostname(), etc.
On Th
Are you sure that you changed *everything*, including the database tables?
On Wed, Jul 3, 2013 at 9:21 AM, Pepsodent Cola wrote:
> I changed everything related to Model "class Citizen_voice" back to "class
> Poll" and now everything works with "Generic views" usage.
> Don't understand why my det
I have had good results with tornado (does WebSockets out of the box, and I
like having only one thread).
But socketio's JS side has the advantage (as I understand it) of working on
browsers that don't yet do WebSockets, falling back to older push
approaches as necessary. So if your market includ
ly, why is your project under /var/www ? Not only is it not
required to be there, it also really shouldn't be there. You don't want
Apache serving your source code.
Bill
On Wed, Jul 10, 2013 at 2:39 AM, Etay Cohen-Solal wrote:
> It's kinda noob question,
> but I have a
Render a different form
or
Render the body tag with a different class or classes that hide some parts
of your grander form and reveal others
or
Render a script tag setting a value in a variable that your JavaScript uses
to decide how to make the form look.
If you want to control how your
I presume that you mean an HTML table.
Didn't you already have to have the data in order to render the template?
Or are you using a template that someone else has rendered, that you have,
in python, as a string? If this, then there are many libraries that can
parse a DOM for you. If it is XHTML
apps available for Django (my personal site
uses fiber), which allow much content creation and editing without looking
at HTML, but this is usually be means of a WYSIWYG editor (on the page
being edited, implemented using JavaScript), but I'm not sure how much that
helps you.
Bill
On Thu, Ju
.
>
> Sent from my iPhone
>
> On Jul 18, 2013, at 17:17, Bill Freeman wrote:
>
> Django still require templates, basically HTML from you, in order to make
> content be delivered to the user's browser. It is still best to use CSS to
> do things like positioning content
I think that you either need to use raw strings (r'stuff') or backslash the
backslashes.
On Fri, Jul 19, 2013 at 1:34 PM, Michael Soulier
wrote:
> Hi,
>
> I'm trying to match a number using word boundaries like so
>
> record = SipClient.objects.get(
>
the ForeignKey field.
This manager has all the usual queryset methods, so you can append ".all()'
to get an array of all the CourseCatalog objects with that Teacher. See
https://docs.djangoproject.com/en/1.5/topics/db/queries/#backwards-related-objects
Bill
On Wed, Jul 24, 2013 at 8:
n.org/dev/peps/pep-0008/ .
>
> Thank you again for the information that you provided. It will greatly
> help me move forward from here.
>
> -Chris
>
> You're welcome.
Bill
>
>
> On Wednesday, July 24, 2013 2:51:43 PM UTC-4, ke1g wrote:
>
>> First, is
ave off the final ".id" in each case:
{% if user.Family == object.Teacher.family_member.Family %}
Bill
>
>
>
> On Wednesday, July 24, 2013 3:28:52 PM UTC-4, Chris Ryan wrote:
>>
>> Thank you so much for the reply and help. I am not stuck with this
>> database format and can change it
See the README at https://github.com/aljosa/django-tinymce
On Fri, Jul 26, 2013 at 2:00 PM, Karl Arunachal <
kakararunachalserv...@gmail.com> wrote:
> Hi,
> I want to integrate tinymce in my text area. But i can't find any good
> tutorials for it. Can some someone please advice me how to do this
You really should figure out which record isn't showing up in either sub
case and look at it in detail to see if NULLs are involved before you spend
time trying to fix a problem that you don't have.
You could, for example collect all the ids from the several queries into
python sets, union the sub
Since your handler is used for the "myproject" logger, to use that handler
all your apps would have to use loggers descended from that logger, that
is, all your apps would have to use something like:
logging.getLogger('myproject')
or
logging.getLogger('myproject.app1')
or
logging.getLogger('
Its not clear to me whether unique_together will make there be an index, so
it might be slow.
On Mon, Jul 29, 2013 at 3:09 PM, Justin Michalicek wrote:
> I would go with the Django ORM and just add a unique_together for a
> multiple column uniqueness constraint. That index won't be your primary
Things that you want to do in the browser should probably be done in the
browser. If so, then Django isn't directly involved, until you want to
persist the changes.
There are a number of JavaScript libraries that support dragging things
around a table. Long ago I did something like this using, I
Is this an inactivity timeout? If so, you could perform an interaction
with the back end every time the user interacts with you, even if the
user's interaction doesn't require it, thereby extending the timeout just
as though the user was working directly.
Just performing an interaction periodicly
One traditional place to store navigation state is in the URL.
If you are reloading the page with a new GET (such as because a link was
clicked), you have to indicate what page to load in the URL, whether in the
path or in the parameters. The view has access to the URL, and uses it to
know where
Maybe use your own custom session middleware?
On Thu, Aug 1, 2013 at 9:41 AM, J. Cliff Dyer wrote:
> Is there a way to set the SESSION_COOKIE_DOMAIN for multiple domains,
> possibly using the contrib.sites framework?
>
> We deploy on AWS, and when we roll out an update to one of our site, we
>
If this is only to be done when loading a new page, then you could add the
JS var value to the request as a query parameter. Then the view would have
to pass the value to the template for the new page.
On Thu, Aug 1, 2013 at 9:51 AM, Christian Erhardt <
christian.erha...@mojo2k.de> wrote:
> No,
a rather similar application. (I'd be
happy to hear of progress in Django on the PUSH front.)
Bill
On Thu, Aug 1, 2013 at 10:54 AM, Saif Jerbi wrote:
> I'm building a GPS Tracking System using Django, i should have a grid on
> my template that display real time information of
Move at least your settings.py into a new sub-directory named for the
project (as with new projects in 1.4 or 1.5 -- you might make one if you
haven't just to look at the directory structure), and add an __init__.py to
that directory.
You may need to (probably should) move your top level urls.py t
On Sun, Aug 4, 2013 at 6:39 AM, DJ-Tom wrote:
> Hi,
>
> I don't think I know how to actually do what you are suggesting.
>
> Lets say I have three menu options with the following URLS:
>
> "One" - /one/show
> "Two" - /two/show
> "Three" - /three/show
>
> Currently I have somthing like this in my
hemes using thread local storage to allow a
middleware to save request based information where indirectly called code
can find it without the cooperation of the intervening code layers. They
are a pain to get "right".)
Bill
On Mon, Aug 5, 2013 at 2:45 PM, raul salinas wrote:
> H
I think that AddHandler stuff sounds like a ghost of mod_python days. I
don't use it in my mod_wsgi deployments.
See http://code.google.com/p/modwsgi/ for good information.
Bill
On Wed, Aug 7, 2013 at 5:25 PM, sah wrote:
> Hello , I am trying to deploy django using apache and mod_
Isn't there a stacktrace that goes with that error message?
On Thu, Aug 8, 2013 at 3:53 AM, goreano wrote:
> Hi,
>
> I'm a newbie diving into django I've found a problem I've been hitting my
> head against for the last 2 days.
>
> I think it is a path issue, actually I get the same error as i t
If you insist on bringing the naming
conventions of another language into python, realize that other folks won't
want to work on, review, or help with your code.
Bill
On Thu, Aug 8, 2013 at 2:13 PM, JJ Zolper wrote:
> Hello everyone,
>
> I've only been working with Python and
On Thu, Aug 8, 2013 at 4:18 PM, goreano wrote:
> Here is the full error trace
>
> ...
>
> Traceback:
> File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
> in get_response
> 103. resolver_match =
> resolver.resolve(request.path_info)
> File "/usr/
Stack traces help a lot. Just follow it up from the bottom until it's back
in your code. Then you know where to concentrate.
On Fri, Aug 9, 2013 at 2:31 AM, goreano wrote:
> HEYY K1G, You've got it this is a typical case of trees not
> letting me see the forest
>
> Thanks a lot
I believe that GENERIC views that ARE NOT CBVs are deprecated (or maybe
even gone in the latest).
On Wed, Aug 14, 2013 at 5:23 PM, Drew Ferguson wrote:
> Hi
>
> Did someone here recently say CBVs are now or will be deprecated?
> Or did I imagine that because I was on holiday?
>
> --
> Drew Fergu
f you need to
customize settings.py or urls.py), then probably better than installing it
is just unpacking it where you need it. You should be able to get github
to give you a zip file.
Bill
On Thu, Aug 15, 2013 at 11:02 AM, Gerd Koetje
wrote:
> Hi,
>
> Im fairly new to django and trying to in
Maybe:
Event.objects.filter(start=X, end=Y)
Just guessing.
On Thu, Aug 15, 2013 at 1:05 PM, Ogre wrote:
> Hi all,
>
> I've a model defined as thus:
>
> from model_utils.models import TimeFramedModel
>
> class Event(TimeFramedModel):
> title=models.CharField(max_length=100)
> ...
>
Not enough information.
Django works fine with python2.7, so we would need to know, for example,
which version of Django, how you installed it, whether you are using
manage.py runserver or whether you are running behind Apache or something
else, and what exactly you mean by "I installed the admin
Assuming that you can't get the edit view to cooperate, maybe store it on
the setting?
On Tue, Sep 10, 2013 at 11:34 AM, DJ-Tom wrote:
> Hi,
>
> I'm currently using django's default pagination and it works as expected.
>
> The problem i still have is that when I'm on (lets say) page 5 of 10, go
The remaining trick will be when to remove it from the session. You don't
want to go into another list and start at page 5.
On Tue, Sep 10, 2013 at 12:43 PM, DJ-Tom wrote:
> ah ok - now all makes sense :-)
>
> Am Dienstag, 10. September 2013 18:23:12 UTC+2 schrieb ke1g:
>>
>> Sorry. I meant s
Sorry. I meant session.
On Tue, Sep 10, 2013 at 12:15 PM, DJ-Tom wrote:
> Hi,
>
> hmmm, I don't think I understand what you mean with "setting"
>
> Thomas
>
> Am Dienstag, 10. September 2013 17:47:41 UTC+2 schrieb ke1g:
>
>> Assuming that you can't get the edit view to cooperate, maybe store i
that into the template context. Then compare
item.id to that, rather than something you dug out of request.GET.
Bill
On Tue, Sep 17, 2013 at 2:50 PM, J Y wrote:
> I am building a search form that provides a drop down list, and then on
> the search results, I am redisplaying the search
lement the authentication back end for yourself. Most of us would
feel that it would be irresponsible to help you.
Be sure you have a very good reason. You don't, for example, need the
clear text of old passwords to prevent a user from reusing an old password:
the old hashes are enough.
Bill
On Wed,
s the desired sequence. You could, of course, name such a method
"items", in which case your code above is exactly correct, but I think a
more descriptive name is desireable.
Bill
On Wed, Sep 18, 2013 at 11:39 AM, Johan Bergkvist wrote:
> Hi, thanks - that provides some perspe
.get() actually gets you an instance, while the queryset without the get
acts (somewhat) like a list of instances. It is the .values() call that
causes you to have dicts rather than instances. .get() considers it an
error if the queryset represents either zero objects, or two or more
objects (it
About the only meaning that "logout" can have on a web site is "this
session is no longer valid". The expires stuff has to do with when you
don't log out, but don't visit the page again.
On Thu, Sep 19, 2013 at 8:54 AM, MikeKJ wrote:
> I have this oddball requirement where an authenticated use
This sounds safe to me. After all, we pass context variables in from views
and expect them to be available within block.super code.
Perhaps some folks aren't sufficiently clear as to when stuff in a template
is evaluated.
So, I'd do it if I needed it.
On Tue, Sep 24, 2013 at 1:59 PM, Warren Sm
And where is your settings.py file? If it is in the same directory as
manage.py, and it is a reasonably current Django (1.4, 1.5), then it's in
the wrong place. It belongs in a sub-directory named 'blog1', along with
your urls.py, wsgi.py and an empty __init__.py .
On Wed, Sep 25, 2013 at 1:40
l your favorite X based editor on the linode,
through a ssh -Y tunnel.
Bill, the curmudgeon
On Wed, Sep 25, 2013 at 2:06 PM, Jorge Arevalo wrote:
> Fine. I don't think my boss is going to pay for PyCharm license, so I'll
> probably go for Eclipse now (I don't really like it
Not all that useful unless you un-hide the file extensions.
I'm guessing that there are manage.py scripts in both the upper and lower
blog1 directories. For recent Djangos, manage.py should only be in the
upper directory. The lower directory contains settings.py, urls.py, wsgo/[u
amd __init__.py.
Have you said which version of Django you are using? (If so, it slipped
past me.)
Is this all code that you wrote yourself, or did you copy some or all it
from somewhere?
If copied, under what version of Django was it being used?
Have you gone through and understood the tutorial for the version
Virtual environments can, indeed, be used under Apache. I presume other
front ends can also handle this.
For Apache, the separate VE's need to be in separate deamon process groups,
so that their sys.path settings can differ.
The primary thing that virtualenv does for you is tweak sys.path, usual
While the browser may cache this stuff, images too, from the browser's
point of view, if you are on a different page, you don't have access to
stuff the login page loads.
What does help is to always use exactly the same URL for the static media,
in which case when a page calls it out, the browser
You can certainly write a custom filter. And if you do that, you can divvy
up your value into footnote links and other, and escape the other parts
yourself, returning the result as a safe string.
On Thu, Oct 3, 2013 at 2:55 AM, Mike Dewhirst wrote:
> I made a custom template filter (ref_href)
Use one model with a field to indicate whether or not this is the archival
(backup?) version. This could be your original_id field, which might be
better represented as a null-able foreign key field on self. Update step:
delete any instances whose "original" is this field (the reverse
refere
#x27; item with data that you could
then get from reverse.
But, IIRC, urls may not be imported until the first request, so it may be
tricky finding a place to put this code.
Bill
On Tue, Oct 8, 2013 at 11:11 AM, DJ-Tom wrote:
> Based on this
> article<http://garmoncheg.blogspot.co
It's easy, if you don't insist on making it part of the admin, to do this
with a custom view. It can pay attention to whatever permissions you like.
On Wed, Oct 9, 2013 at 10:06 AM, Victor wrote:
> Yes, I know but unfortunately if in Admin Site you say that a user cannot
> Add, Delete, and Mod
601 - 700 of 990 matches
Mail list logo