← Back to team overview

ubuntu-accomplishments-contributors team mailing list archive

Re: dash in django project or app name

 

Alright, sounds good enough, please go ahead and push it!

Thanks!
Janos

On Tue, Mar 20, 2012 at 5:12 PM, Darren <darrenma1986@xxxxxxxxx> wrote:
> OK sure.
> Yes the change will add a directory within the project main dir. This will
> be the project name. As you called it "accomplishments_web_editor"
> The settings.py and urls.py belong here. I guess anything related directly
> to the project belong here, so the template folder, static folder and even
> the auth.py that was written will move here.
> When accessing settings.py we always use  from django.conf import
> settings so there is no hardcoding. Urls prefixes not with
> the  "accomplishments_web_editor" as you saw from
> http://stackoverflow.com/questions/9212233/django-1-4-new-project-folder-structure-forces-project-prefixes
>
> Basically you accessing anything that used to be in the root project dir now
> like any other regular app.
>
> I have already made all the changes so I will wait for the go ahead to push
> them. If you want them pushed.
>
>
>
> Darren
>
>
> On 20 March 2012 18:06, Janos Gyerik <info@xxxxxxxxxxx> wrote:
>>
>> > In this case now I will add a folder called "accomplishmentseditor"
>> > which
>> > will hold the settings.py and urls.py. With this everything works out
>> > fine.
>> >
>> >     from django.conf import settings is perfect as is.
>>
>> Great! Maybe let's call it accomplishments_web_editor
>>
>> > The project related urls or functions will now sit in it's
>> > own folder and treated like app.
>>
>> So the project dir will be side by side (in the same parent dir) with
>> the editor app?
>>
>> In any case let's wait with this change a bit, let's give a few days
>> to Denis Darii and others who might have good ideas about this.
>>
>> Thanks,
>> Janos
>> --
>> Janos Gyerik
>> http://titan2x.com/
>
>
>
>
> --
> ~Darren



-- 
Janos Gyerik
http://titan2x.com/


Follow ups

References