How to save user permissions from custom user edit form

2017-11-04 Thread DJ-Tom
Hi, I have created the following user form for my custom user model: class UsersForm(ModelForm): class Meta: model = UserAccount fields = ('is_active', 'is_superuser', 'is_templog', 'is_crewreg', 'is_spaceman','first_name', 'last_name', 'company', 'address1'

Re: How to clean up character database fields with leading and trailing spaces

2015-11-03 Thread DJ-Tom
It worked! Basically it was a one-liner as well :-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: How to clean up character database fields with leading and trailing spaces

2015-11-03 Thread DJ-Tom
res > > http://www.postgresql.org/docs/9.1/static/functions-string.html > > So you can run a raw SQL command or just iterate over all the rows in your > data I think. > > On Tue, Nov 3, 2015 at 6:57 AM, DJ-Tom > > wrote: > >> Hi, >> >> I have several c

How to clean up character database fields with leading and trailing spaces

2015-11-03 Thread DJ-Tom
Hi, I have several character fields with leading and trailing spaces and would like to know if it is possible to clean them up with a one-liner... I tried the following but none of this works: rooms.objects.all().update(name=F('name').strip()) // AttributeError: 'F' object has no attribute '

How can I make the field layout of a model form dynamic?

2014-10-22 Thread DJ-Tom
Hi, I have a model that contains either a text or a numerical information, based on the type of the entry: equipment = models.ForeignKey(equipment) number = models.DecimalField('Amount/number', max_digits=6, decimal_places=2, blank=True, null=False, default=0) text = models.TextField("Text", bl

Re: display the elements from a database in a forms

2014-09-17 Thread DJ-Tom
Well, that is a very "high level" question... did you already work your way through the Django tutorials to get a grip on the basics...? https://docs.djangoproject.com/en/1.7/intro/tutorial01/ Am Dienstag, 16. September 2014 13:32:17 UTC+2 schrieb Devin Cky: > > > hi I want to know how to displa

Re: Apache on Windows & multiple Django apps

2014-09-05 Thread DJ-Tom
Well that seems much too complicated just for running variations of the same application twice. There all kinds of stuff running on that server and adding a proxy to it would be a nightmare to check if everything still works. What a pity, Django is such a powerful tool, but lacks easy deplo

Re: Apache on Windows & multiple Django apps

2014-09-03 Thread DJ-Tom
Hi Collin, unfortunately, changing this makes no difference at all. Thomas Am Dienstag, 2. September 2014 17:45:37 UTC+2 schrieb Collin Anderson: > > setdefault is what's causing your trouble. Change it to an explicit: > > os.environ['DJANGO_SETTINGS_MODULE'] = 'app.settings' > -- You received

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread DJ-Tom
*facepalm*... honestly, I did not spot the difference, i believed the line I had was right!!! thanks anyways, I will try that tomorrow. Am Dienstag, 2. September 2014 17:45:37 UTC+2 schrieb Collin Anderson: > > setdefault is what's causing your trouble. Change it to an explicit: > > os.environ[

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread DJ-Tom
Am Dienstag, 2. September 2014 13:51:28 UTC+2 schrieb Tom Evans: > The most obvious and simple solution is to not use Windows. > lol - ever heard of the "box of pandora"? :-) My knowledge of Linux boxes is very close to zero - so setting up a server that is not based on Windows would be the

Re: Apache on Windows & multiple Django apps

2014-09-02 Thread DJ-Tom
Most likely the docs refer to this section of wsgi.py: # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This > breaks > # if running multiple sites in the same mod_wsgi process. To fix this, use > # mod_wsgi daemon mode with each site in its own daemon process, or use > # os.env

Apache on Windows & multiple Django apps

2014-09-01 Thread DJ-Tom
Hi, I'm currently trying to get the same Django app running twice under different URLs on the same server. App 1 ran last year under https://www.sample.com/2013/app and should stay there for reference purposes. App 2 should run under https://www.sample.com/2014/app and also should use a diffe

Re: Need idea how to keep data for multiple projects in one database

2014-04-11 Thread DJ-Tom
The only thing that might be a problem is that participants from all kind of events are mixed in one huge table. When there is a need to do some kind of manual maintenance there is a bigger potential of changing data that belongs to a different event, compared to the old solution where each e

Need idea how to keep data for multiple projects in one database

2014-04-11 Thread DJ-Tom
Hi, I'm currently planning to port an old application that was used to register participants for events to Django. The old app did not have any real database system, but was based on dBase files. There was one global table where the basic information about each event was stored (like event na

Re: How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-27 Thread DJ-Tom
Am Dienstag, 25. Februar 2014 13:50:11 UTC+1 schrieb Tom Evans: > > > Use different STATIC_ROOT for each site, eg /static2013 and /static2014. > > But what you should really be doing is putting this in to a separate > vhost. Domain names are cheap, sub-domains are even cheaper. > > Cheers > >

Re: How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-25 Thread DJ-Tom
Am Dienstag, 25. Februar 2014 13:10:00 UTC+1 schrieb Frank Bieniek: > > Hi Tom, > if I would walk in your shoes, > duplicate the source in different folders, > so you do not create a single point of failure. > > This is exactly what I'm after, I'm using a version control system so it is easy f

How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-25 Thread DJ-Tom
Hi, currently I'm using the following configuration to host a Django appliaction: # WSGI Configuration > > WSGIScriptAlias /2013/spcmanage "D:/dev/spcmanage/spcmanage/wsgi.py" > WSGIPythonPath "D:/dev/spcmanage" > > > > Order deny,allow > Allow from

Re: How do I use mathematical calculations on my forloop Article/Publication list?

2013-11-22 Thread DJ-Tom
Am Donnerstag, 21. November 2013 18:53:00 UTC+1 schrieb Pepsodent Cola: > > 1.) > I managed to make my View calculate my variables but I'm getting the same > result *"0.6"* for each forloop. > What am I doing wrong with my variables calculation? > You are passing only a *single* value for *publ

Trouble running Celery as a service on Windows

2013-11-21 Thread DJ-Tom
Hi, I followed http://mrtn.me/blog/2012/07/04/django-on-windows-run-celery-as-a-windows-service/ and managed to get redis run as a service on Windows 7. Now I tried to get the Celery processes to run as a service but keep getting the following error: Traceback (most recent call last): File

Re: Trouble with (unwanted) field validation

2013-11-11 Thread DJ-Tom
; used for Key. Look like this field is not set before validation. > I would like take a look at model form and part of code before > form.is_valid > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > On Fri, Nov 8, 2013 at 2:29 PM,

Re: Trouble with (unwanted) field validation

2013-11-08 Thread DJ-Tom
I still didn't get this to work... isn't there anybody that is able to help? Am Mittwoch, 30. Oktober 2013 10:47:34 UTC+1 schrieb DJ-Tom: > > Hi, > > given the following model field: > > room_setup = models.ForeignKey("roomsetup", verbose_name='De

Re: django debugger

2013-11-08 Thread DJ-Tom
Hi, Pycharm ist very good, I'm using it on a daily basis with Django, debugging included. Google for debugging django pycharm and you will find loads of hints how to set this up. You may also want to look at this review, as it covers a lot of the features that Pycharm has: http://andrewbrook

Re: What is the best solution to deploy Django on a Windows server?

2013-10-30 Thread DJ-Tom
Am Freitag, 11. Oktober 2013 22:54:38 UTC+2 schrieb Javier Guerra: > just don't mess with IIS, Apache+mod_wsgi is a perfectly good > platform. (personally, I prefer nginx+uWSGI, but that would need a lot > more work to run on windows) > > Can only confirm that... I'm using the following se

Trouble with (unwanted) field validation

2013-10-30 Thread DJ-Tom
Hi, given the following model field: room_setup = models.ForeignKey("roomsetup", verbose_name='Default room setup', blank=True, null=True, default='') In the modelform __init__ method I'm setting the choices for this field like this: self.fields['room_setup'].choices = roomsetups_as_c

Re: How do I correctly encode filenames for use in https-response "content-disposition" header?

2013-10-14 Thread DJ-Tom
Good idea - I will try if this helps - for now I'm replacing spaces with underscores which works as well. Am Freitag, 11. Oktober 2013 16:29:32 UTC+2 schrieb ke1g: > > Not sure, but perhaps you need quotes around the file name to avoid having > the user agent terminate the filename on space? E.

Re: Looking for a way to detect changes in database records with low storage footprint

2013-10-14 Thread DJ-Tom
Thanks, this might be a way to go - since the .extra() method may create a dependency on the SQL dialect used I will have to be careful though ;-) Am Donnerstag, 10. Oktober 2013 19:01:32 UTC+2 schrieb Tom Evans: > > This is not a full solution, but you can select out extra fields (and > then s

How do I correctly encode filenames for use in https-response "content-disposition" header?

2013-10-11 Thread DJ-Tom
Hi, I'm serving files via HttpResponse and currently I'm struggling with spaces in the filenames. This is how I contruct the response header: response = HttpResponse(report.reportfile.chunks(), mimetype="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") respon

Re: Looking for a way to detect changes in database records with low storage footprint

2013-10-10 Thread DJ-Tom
Thanks, but *how* can I create a hash from a database object in Django - is there a generic method to iterate over all (or only specific) fields and get a hash value? Am Mittwoch, 9. Oktober 2013 19:07:54 UTC+2 schrieb Nikolas Stevenson-Molnar: > > A hash should work fine. Alternatively, you c

Looking for a way to detect changes in database records with low storage footprint

2013-10-09 Thread DJ-Tom
Hi, a customer has requested a function to "compare" reports. So let's say I create a database report on Monday, then the data is constantly changing the whole week and on the following Monday it should be possible to get a report that either contains only changed and new records or all record

Re: Ho can I reverse urls inside urls.py?

2013-10-09 Thread DJ-Tom
Hi Tom, works like a charm - THX! Cheers Thomas Am Dienstag, 8. Oktober 2013 17:49:18 UTC+2 schrieb Tom Evans: > > > Use reverse_lazy > > https://docs.djangoproject.com/en/1.5/ref/urlresolvers/#reverse-lazy > > > Cheers > > Tom > -- You received this message because you are subscribed to

Ho can I reverse urls inside urls.py?

2013-10-08 Thread DJ-Tom
Based on this articleI implemented a password reset function. Unfortunately, currently this only works on the development server because the base URLs for the post_reset_redirect are different on the production ser

Re: Best practice for server-generated downloads?

2013-10-04 Thread DJ-Tom
Thanks - that's what I was looking for. But how do I send the browser back to a specific page after serving the download? Am Donnerstag, 3. Oktober 2013 10:54:51 UTC+2 schrieb John McNamara: > > Hi, > > Here is an example of using XlsxWriter from SimpleHTTPServer or Django. It > probably doesn'

Re: Best practice for server-generated downloads?

2013-10-03 Thread DJ-Tom
ringIO for that. > > I'm using the save_virtual_notebook() in openpyxl package to generate the > Excel file straight from database upon each (infrequent) request. > > HTH > > Jirka > > > On Wed, Oct 2, 2013 at 9:36 AM, Russell Keith-Magee < > rus...@k

Re: Best practice for server-generated downloads?

2013-10-03 Thread DJ-Tom
r lets you pass in a file object -- > pass in a StringIO instance instead. > > Yours, > Russ Magee %-) > > > > Thomas >> >> Am Mittwoch, 2. Oktober 2013 02:11:21 UTC+2 schrieb Russell Keith-Magee: >> >>> >>> On Tue, Oct 1, 2013

Re: Best practice for server-generated downloads?

2013-10-01 Thread DJ-Tom
he httpresponse object to xlsxWriter? (Maybe I have not yet found how this might work - but it is not what I need anyways...) Thomas Am Mittwoch, 2. Oktober 2013 02:11:21 UTC+2 schrieb Russell Keith-Magee: > > > On Tue, Oct 1, 2013 at 9:49 PM, DJ-Tom >wrote: > >> Hi, &g

Best practice for server-generated downloads?

2013-10-01 Thread DJ-Tom
Hi, I need to create database report downloads in Excel format (via xlsxwriter) and I'm wondering if there is any standard or best practice as to where those downloads should be located. Especially helpful would be if there was a portable way of managing the file system location and web reques

Updating custom permissions not working properly

2013-10-01 Thread DJ-Tom
Hi, I'm using Django 1.5 with South to sync my database. According to a hint on Stackoverflow I added the following code to my procjects __init__.py to add permissions on every migration: from south.signals import post_migrate def update_permissions_after_migration(app, **kwargs): """

Re: How do I create a standalone python application that uses the django environment (e.g. the ORM etc...)?

2013-09-18 Thread DJ-Tom
nd line to this: > > sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), > '..')) > > > --------- > Brad Pitcher > > > On Tue, Sep 17, 2013 at 12:25 AM, DJ-Tom > > wrote: > >> >> Hi, >> >> I&#

Re: How do I create a standalone python application that uses the django environment (e.g. the ORM etc...)?

2013-09-17 Thread DJ-Tom
I need to use the ORM and more specifcally I want to use the models I defined inside my Django application. I want to avoid using a different ORM like Alchemy because then I would have to duplicate the work I already put into my Django models - i hate duplicating work... Apart from that, I don

Re: How do I create a standalone python application that uses the django environment (e.g. the ORM etc...)?

2013-09-17 Thread DJ-Tom
Hi, I'm also not sure if the python file is at the correct location. This is how the directory structure looks: my_project \my_project\ settings.py \my_app\ # this is where my models are defined models.py formdesigner.py Where should my formdesigner.py be lo

How do I create a standalone python application that uses the django environment (e.g. the ORM etc...)?

2013-09-16 Thread DJ-Tom
For reporting purposes I want to use List & Label from Combit. The web/online part is no big deal since the reporting module can be run without user interface (creating Excel or PDF files) But the actual form designer part that is used to define the report layout is a windows GUI application, s

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-16 Thread DJ-Tom
I think I could use the views name as the key to the current page - that way the system "remembers" the page number for each view. Am Dienstag, 10. September 2013 18:59:19 UTC+2 schrieb ke1g: > > The remaining trick will be when to remove it from the session. You don't > want to go into anothe

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread DJ-Tom
ah ok - now all makes sense :-) Am Dienstag, 10. September 2013 18:23:12 UTC+2 schrieb ke1g: > > 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 wi

Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread DJ-Tom
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 into edit the edit form of one of the objects, I don't know how I can preserve/access the current page number from the edit view/form template s

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread DJ-Tom
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 it on > the setting? > > -- You received this message because you are subscribed to the

How to pass additional information about fields into template?

2013-09-05 Thread DJ-Tom
Hi, Based on http://jacobian.org/writing/dynamic-form-generation I have now managed to create a data driven form (hooray :-) Basically I'm reading field names from a database and append to a ModelForm in its __init__ method: View: equipments = equipment.objects.filter(category__in=reques

Re: ValueError: Cannot create form field for 'room_setup' yet, because its related model 'main_page.roomsetup' has not been loaded yet

2013-09-04 Thread DJ-Tom
I have now separated the form definitions into forms.py and import the models from models.py... so this is fixed -- 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: pattern matching wrong app ???

2013-09-04 Thread DJ-Tom
did you try XX84/sample*/* (trailing "/")? You might also get more answers if you show the content of "demoproj.urls" and "sample.urls" Am Dienstag, 3. September 2013 15:18:49 UTC+2 schrieb bab mis: > > I have 2 app inside my django project: > > url(r'^demoproj/$', include('demoproj.ur

ValueError: Cannot create form field for 'room_setup' yet, because its related model 'main_page.roomsetup' has not been loaded yet

2013-09-04 Thread DJ-Tom
Hi, given the following models and model form I get the error in the subject, apparently because the related model "roomsetup" is defined *after* the "RoomsForm" form and is not loaded at the time the form is created. class rooms(models.Model): [ lots of other fields] *room_setup* =

Re: How to edit many-to-many relationships with data from custom intermediary table?

2013-08-21 Thread DJ-Tom
I'm not sure what the easiest way would be to make the Quantity field > editable - I thought about a* fieldset *but how do I get the data from > the intermediary table into that??? > > ooops - I meant FORMset, not fieldset... (why is there no way to edit my own post?) -- You received this m

How to edit many-to-many relationships with data from custom intermediary table?

2013-08-21 Thread DJ-Tom
Hi, I'm currently working on a room management application for events. One part of it is a list of room setups with associated equipment, each room can have an arbitrary number of different equipment (such as screens, IT-equipment, A/, tables etc.) Each equipment also has an attribute "number

Re: Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
Finally - FIXED! After a some experimenting with the command line I found out that I can not access the foreign key field if there is no actual record. So this throws the error as well: >>> doc = main_documents.objects.create(doc_name="test", doc_description="description") >>> doc.created_by

Re: Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
one more thing, this is the user model setting from settings.py: AUTH_USER_MODEL = 'accounts.UserAccount' -- 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 djang

Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
After adding a few more databases and views to my app, I suddenly get the error mentioned in the subject. Not sure what happened .. everything worked as a charm before. This only happens when the program tries to create a new record, I can change existing ones It seems as if the "created_by"

Re: Newbie: do I need to upload in order to access data?

2013-08-11 Thread DJ-Tom
Hi Bob > I'm trying to achieve the following: > >- user indicates a file on his/her machine >- the program opens the file, reads the data and acts on that > > > What you want to do is not possible - at least not without client-side scripting. The "program" you refer to is running on yo

Re: How to store position of current/active navigation entry

2013-08-10 Thread DJ-Tom
I now came up with this solution: path = req.get_full_path() if path.startswith(entry['href']): entry['active'] = True thanks for helping :-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Problem with custom user model and built-in admin-forms...

2013-08-10 Thread DJ-Tom
Hi, I'm trying to get a custom user model to work with the built-in admin app, based on the sample code in the documentation https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#auth-custom-user Here is my code: https://gist.github.com/anonymous/91f2c30bdc48a4ca3248 I either get a

Re: How to store position of current/active navigation entry

2013-08-04 Thread DJ-Tom
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 main.html page template: {% if navi %} > {% f

How to store position of current/active navigation entry

2013-08-01 Thread DJ-Tom
Hi, I'm currently creating a web app with django that will have a side bar menu with several sub-sections. I'm wondering if there is a "standard" way to store the "current" or "active" menu entry so I can highlite it in the menu area each time a request takes place. Is it possible to attach a

Re: Looking for best practices regarding Development and production server paths

2013-03-21 Thread DJ-Tom
Am Donnerstag, 21. März 2013 13:04:53 UTC+1 schrieb Tom Evans: > > In my settings.py, I set the path to the project template folder and > project static files like so: > > import os.path > ROOT = os.path.abspath(__file__).rsplit(os.path.sep, 2)[0] > TEMPLATE_DIRS = ( > os.path.join(ROOT, '

Re: Looking for best practices regarding Development and production server paths

2013-03-21 Thread DJ-Tom
> > On Thu, Mar 21, 2013 at 5:05 PM, DJ-Tom >wrote: > Simple, you maintain two settings.py files, make one with Dev_settings.py > and two with Prod_settings.py. > You can run dev and production applications like this > > python manage.py runserver --settings

Looking for best practices regarding Development and production server paths

2013-03-21 Thread DJ-Tom
Hi, I'm still a beginner and currently I'm trying to get more familiar with Django. I'm looking for any more detailed best-practices-type description on how the development cycle is meant to be managed. In settings.py, there are paths like TEMPLATE_DIRS and STATICFILE_DIRS, how is this suppos

Re: Problems install/download Django 1.5

2013-03-11 Thread DJ-Tom
Fixed - downloaded from Github and installed manually... everything's fine :-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googleg

Problems install/download Django 1.5

2013-03-11 Thread DJ-Tom
Hi, I'm trying to get the new Django release, but the download of the .tar.gz file stops with errors: * * * Downloading from URL http://pypi.python.org/packages/source/D/Django/Django-1.5.tar.gz#md5=fac09e1e0f11bb83bb187d652a9be967 * *Exception:* *Traceback (most recent call last):* * File "D:

Re: Struggling with static files

2012-10-22 Thread DJ-Tom
Am Montag, 22. Oktober 2012 12:06:44 UTC+2 schrieb DJ-Tom: > > If I add this to STATICFILES_DIR: > > '/el_test/static' > > AHHH - I was missing the trailing comma after the path name... so STATICFILES_DIR was not a valid list. Everthing's fine now. T

Re: Struggling with static files

2012-10-22 Thread DJ-Tom
Am Montag, 22. Oktober 2012 11:19:42 UTC+2 schrieb Xavier Ordoquy: > > Hi, > > Your static folder should be declared in STATICFILES_DIRS if you want him > to be served (see > https://docs.djangoproject.com/en/1.4/howto/static-files/#basic-usage about > that). > > > All the documentation ref

Struggling with static files

2012-10-22 Thread DJ-Tom
Hi, I'm fairly new with Django and currently I'm only "playing around" to get a better feeling for the framework. I have read the documentation and almost all of the posts here about configuring static files with the development server but can't get it working. I wanted to modify the admin lo

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-19 Thread DJ-Tom
I have now found extensive documentation as to why and how Apache has to be configured with Django and mod_wsgi here http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this disc

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-13 Thread DJ-Tom
> Ok... GREAT! Now it works :-) (well... sort of, more below... ) but I had >> to restart Apache to make config changes effective... is that "normal"? >> >> I think important things like "you have to restart the webserver to make >> changes life" should go into the tutorial in *BIG RED LETTERS*

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread DJ-Tom
Am Dienstag, 11. September 2012 10:20:16 UTC+2 schrieb Chang.Jian: > > "d:/wwwroot/djtest/djtest/" was already in system path, so I think you > should set DJANGO_SETTINGS_MODULE like this: > os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") > > try it! > > Ok... GREAT! Now it works :-

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread DJ-Tom
Am Dienstag, 11. September 2012 00:43:44 UTC+2 schrieb Mike Dewhirst: > > > Try dropping this down to "djtest.settings". Also make sure you have a > file in each of your folders called __init__.py > > This tells Python the folder is part of the package. > Sorry - but this does not help. Just to

Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-10 Thread DJ-Tom
Hi, I'm new to django and python at the same time (Nightmare ) and currently struggling to get a basic understanding of how everything works and how the different components are connected to each other. My setup is a s follows: - Apache 2.2 running as a service under Windows 7 - mod_wsgi - Pyt