Re: issue with django's example version 1.10 in windows 7 ultimate

2017-02-03 Thread Ryan Castner
You need to post some source code for us to see what is going on, you are likely missing some lines of code On Friday, February 3, 2017 at 8:26:41 PM UTC-5, Dário Carvalho wrote: > > Hi. I'm new in django and in python either and of course as I'm new in > django, I installed 1.10's version and

Re: audit trail functionality in database model

2017-01-23 Thread Ryan Castner
Django Field History is a great project to audit trail a model field On Saturday, January 21, 2017 at 7:19:57 AM UTC-5, enrico baranski wrote: > > Hi all Django users, > > I'm quite new to Django and currently experimenting with the database > model. Defining fields appears to be quite intuitive

Re: Custom Models

2016-07-16 Thread Ryan Castner
Well first off, while it might be a best practice to make a manager for this, you in no way have to. You can build your website and have it run swimmingly well without doing this abstraction. The whole idea of a Manager is a class that provides some methods to access a model. Look at the

Re: I am not sure what “: command not found” means when I run virtualenvwrapper mkvirtualenv command

2016-07-16 Thread Ryan Castner
command not found means that the command you are running in your terminal (the first word entered before a space delimiter) was not found in your PATH variable. Your PATH keeps track of all the locations and directories where when you call 'virtualenvwrapper' it looks under all of those for a

Re: Disabling migrations when running tests

2016-07-16 Thread Ryan Castner
Could you explain what you mean by running tests? Migrations are executed when you run `./manage.py migrate`, if you are running `./manage.py test ...` it shouldn't be running your migrations, probably just gives a log warning that you have unapplied migrations. Here are the django docs on

Re: add models class and fields through python script

2016-07-16 Thread Ryan Castner
I think the best thing you can do in this situation is design a system where the system administrator (non-technical user I am assuming from your description) fills out a form for an 'Event' model. The 'Event' is posted on the calendar or what have you and student's can register to participate