Internship and job in python and Django related

2023-06-07 Thread Shubham DJ
Hello, I’m Shubhang Jori from Nerul Navi Mumbai. I have been learning web development for a few months now and have gained familiarity with Django, python , MySQL, HTML and CSS. Also I have completed 3 months internship in trivia software as a python intern. As a student , I am actively seeking

Re: Static files won't match the path given

2019-05-11 Thread Rookies DJ
Dear Anirudh Jain Thank you for reply Really, apprentice it Yes we run collectstaitc command And we try within setting.py files Set path static_root/url as the same As for web server software we using apache not nigx. I apologize for not including this information Really appreciate if

Static files won't match the path given

2019-05-10 Thread Rookies DJ
I apologise, I'm a hardware engineer, I'm not very familiar with coding; I'm only on Django for the past 5 months. (under my boss order) I had managed to develop and establish a Django App, and manage to upload it to remote server *NameCheap*. There on the server, the issue is unable to locate

Django, mod_wsgi and apache2.4 = 403 forbidden

2019-01-28 Thread Rookies DJ
I'm sorry if I'm asking the repetitive but i really need assistance I been trying to setup a server for my company system but I had no progress. As the tile subject mention the I'm Using Mod_wsgi 4.6.5 and Apache 2.4 for my Django is 2.1 and python 3.7 When try to run on my local machine I

custom filter tag I can't get to work

2018-12-05 Thread Rookies DJ
I create my own custom filter tags to using in my project but every time i put in my HTML it just product this errors Invalid filter: I don't where i do wrong, I try putting the {%load tag%} with child templates, it didn't work I try name it differently @register.filter("multiply",

Re: Why I can't pass anything to my html? Django 2.1

2018-11-17 Thread Rookies DJ
*Answer:* Hi everyone Thanks for helping me but I found out my mistake and the cause of the problems; The problems are my URL, is not calling my def in views On Monday, 12 November 2018 20:13:21 UTC+8, Rookies DJ wrote: > > I been trying 2 weeks on trying to pass variables form Django

Re: Why I can't pass anything to my html? Django 2.1

2018-11-14 Thread Rookies DJ
y the properties of the ORM >>> (tank_system) object I guess, change them to {{tank.EC}}, >>> {{tank. temp}}, respectively. >>> >>> Hope it helps! >>> >>> On Monday, November 12, 2018 at 4:13:21 AM UTC-8, Rookies DJ wrote: >>>> >&

Re: Why I can't pass anything to my html? Django 2.1

2018-11-13 Thread Rookies DJ
errors do you get? > What are you seeing? > > Either way, this is not correct: tank = tank_system.object.get(id(5)) > It should be: tank = tank_system.object.get(id=5) > > I suggest going through the django tutorial if you haven't already. > > On Tue, Nov 13, 201

Re: Why I can't pass anything to my html? Django 2.1

2018-11-13 Thread Rookies DJ
On Monday, 12 November 2018 21:26:48 UTC+8, Cuneyt Mertayak wrote: > > The content for the `render` method is supposed to be a dictionary: > https://docs.djangoproject.com/en/2.1/topics/http/shortcuts/#optional-arguments > > So change it to this render(requset, "FrounterWeb/body.html",{'tank':

Why I can't pass anything to my html? Django 2.1

2018-11-12 Thread Rookies DJ
I been trying 2 weeks on trying to pass variables form Django views into html, but every time I run my code, it works but it doesn't display the variable I see from django.shortcuts import render from zigview.models import tank_system def index(request): return

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',

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
gt; > 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 <event...@gmail.com > > wrote: > >> Hi, >

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",

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

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

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

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: > >

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

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 > #

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

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

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

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

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

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

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
d 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, DJ-Tom

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='Default room >

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:

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

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 =

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?

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

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")

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

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

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

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

Re: Best practice for server-generated downloads?

2013-10-03 Thread DJ-Tom
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...@keith-magee.com > wrote: > >> >>

Re: Best practice for server-generated downloads?

2013-10-03 Thread DJ-Tom
s 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 at 9:49 PM, DJ-Tom <event...@gmail.com> wrote:

Re: Best practice for server-generated downloads?

2013-10-02 Thread DJ-Tom
tpresponse 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 <event...@gmail.com > >wrote: >

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

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
: > > 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 <event...@gmail.com > > wrote: > >> >> Hi, >> >> I'm also not sure 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

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

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,

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

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 <event...@gmail.com > > wrote: > >> Hi, >> >> hmmm, I don't think I underst

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

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

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 =

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

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/$',

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

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

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

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

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 %} > {%

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

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 <event...@gmail.com > >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

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

FreeBSD+wsgi+django static and media how-to-do

2013-03-13 Thread dj-konst
Hi, I'm new in django I use FreeBSD9+wsgi+django (unique host) but meet problems with static files... There are sections in Django Documentation 1.5 ( 4.13.4 Serving static files in production )... but there is no enough details for me. Where to read about serving static files in more detals

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

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

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. Thanks anyways :

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

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

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

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

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

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 -

Re: Attribute error

2011-05-01 Thread DJ Ango
Capitalize class names. class Wish(models.Model): the_wish = models.CharField(max_length=100) On Apr 30, 4:26 pm, Pulkit Mehrotra wrote: > changed the name but nothing happened > the django version is 1.3 -- You received this message because you are subscribed

Re: form input

2011-05-01 Thread DJ Ango
in models.py you define your database fields: The use a ModelForm: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#modelform Or try the generic create/update/delete views: http://docs.djangoproject.com/en/dev/ref/generic-views/?from=olddocs#create-update-delete-generic-views On

Where can I find the admin/base_site.html

2011-02-23 Thread DJ Chung
I am going through the tutorial on Djangoproject.com. I'm trying to work on templates and I don't know where to find admin/base_site.html Where's the actual code I can copy and paste? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: django ORM memory leaks in standalone script

2010-06-04 Thread Dj Gilcrease
On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote: > import os > import sys > os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings' > sys.path.append('/md/lib') > from django.db import close_connection, reset_queries > from md.mddata.models import Info > def test(): >  for i

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread Dj Gilcrease
syntax error is because of capitol 'I' in if -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Looping through models

2010-06-01 Thread Dj Gilcrease
On Tue, Jun 1, 2010 at 12:57 PM, Luca Casagrande wrote: > Is there a way to create a loop changing only the model name? geo_models = [model1, model2, model3, ...] for m in geo_models: m.objects.filter(geom__intersects=fs[0].geom) -- You received this message

Re: Uploaded File Security

2010-05-20 Thread Dj Gilcrease
On Thu, May 20, 2010 at 12:38 AM, Lee Hinde wrote: > This is going to be a hosted solution and if I add LDAP maintenance to the > new things they have to do, I think they'll go back to shuffling Excel files > back and forth via email. > One Apache log-in and then one Django

Re: Is it possible to add a table on my database with a django code ?

2010-05-19 Thread Dj Gilcrease
On Wed, May 19, 2010 at 8:18 AM, Pep wrote: > Hi everybody ! > > I would like to know if it's possible to add automatically a table on > my database when, for example, a new member subscribe on my website ? > > I mean, if I would like to do it manually, I'll have to change

Re: Problem_Inline_max_num

2010-05-10 Thread Dj Gilcrease
On Mon, May 10, 2010 at 3:29 PM, Javier Guerra Giraldez wrote: > On Mon, May 10, 2010 at 11:23 AM, carlos wrote: >> I'm sorry but this is a translation of google > > even worse, it's a google translation of a text without punctuations. It isnt all

Re: permissions at per specific object instance

2010-05-05 Thread Dj Gilcrease
On Wed, May 5, 2010 at 4:09 PM, zweb wrote: > I need to build "permissions at per specific object instance" for my > app. > > Anyone has already done it ?  Also it says django developers are > already discussing it.. > > You can please refer me to the threads or blog posts

Re: django_audit 0.0.2

2010-05-05 Thread Dj Gilcrease
On Wed, May 5, 2010 at 10:49 AM, Gustavo Narea <gna...@tech.2degreesnetwork.com> wrote: > On May 5, 3:45 pm, Dj Gilcrease <digitalx...@gmail.com> wrote: >> I also think Euan Goddard has already registered django-audit on pypi >> (http://pypi.python.org/pypi/django-au

Re: [ANN] django_nav 0.6

2010-05-05 Thread Dj Gilcrease
Now in PYPI http://pypi.python.org/pypi/django_nav/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: django_audit 0.0.2

2010-05-05 Thread Dj Gilcrease
On Wed, May 5, 2010 at 10:06 AM, Gustavo Narea wrote: > Hello, > > I would suggest you try to register "django_audit" on PYPI and see if > it allows you to do so. > > We had already registered the package"django-audit" (note the hyphen > instead of an underscore,

[ANN] django_nav 0.6

2010-05-05 Thread Dj Gilcrease
Code @ http://code.google.com/p/django-nav/ This is a bug fix release to make conditionals work again. Before 1.0 is ready to go I want to add the ability to dynamically generate nav manus either via a DB, Config file, Cache, etc. -- You received this message because you are subscribed to the

Re: django_audit 0.0.2

2010-05-04 Thread Dj Gilcrease
On Tue, May 4, 2010 at 4:21 AM, Euan Goddard wrote: > This is all very well, but should either of these projects get to pypi > there's going to be some serious trouble. Since I'm the main author of > the "noSQL" django-audit, please let me know how you want to

Re: django_audit 0.0.2

2010-04-30 Thread Dj Gilcrease
On Fri, Apr 30, 2010 at 9:28 AM, Gustavo Narea wrote: > Sorry, but did you know there's already a project with that name? > https://launchpad.net/django-audit Ya I saw the announcement on it the day I pushed my code to google, hence my remark about not being tied

Re: How to filter a query set based on a calculated date value?

2010-04-30 Thread Dj Gilcrease
On Fri, Apr 30, 2010 at 6:26 AM, Derek wrote: > MyModel.objects.filter( (my_date_field + relativedelta(months = > +my_month_field))__lt = today ) wouldnt that be the same as my_date_field__gt=(today - relativedelta(months=my_month_field)) my_date_field + my_month_field <

  1   2   >