On 8/07/2014 2:22 AM, Janelle O'Dea wrote:
Thank you, Mike. I haven't tried your first option yet, but I will
either today or tomorrow. What kinds of clues would I look for in
settings?
Django needs credentials to access the database and there should be a
mechanism specified in settings to get them. I don't keep such things
directly in my settings because I keep them under version control. But
if you had unfettered acccess to my machine you could discover where
they are. You say you have the Ubuntu machine in question so you might
be able to find them.
The fingers crossed part is because the developer might have settled for
the Django Admin superuser credentials being the same as for the database.
If not, but you do have the database credentials you can dump the db,
start another Django project with the same source code and load a new
database to gain complete access to everything.
Also: any ideas about my first question?
No. I'm not a Mac person. But permissions on Macs are (I believe) the
same as for Linux/Unix.
Good luck
Mike
Everyone: I'm in Naples, Florida. If anyone is in the Southwest Florida
area and wants to try and help, I'll get you a Randy's key lime pie. Or
take you out for seafood. Or something.
On Sunday, July 6, 2014 7:36:46 PM UTC-4, Janelle O'Dea wrote:
Hi all,
I have two separate Django questions.
One: I am trying to learn how to use Django on my computer (Mac OS,
Mavericks) and was first getting the error "unable to open database"
when running "python manage.py syncdb." To fix it, I followed
instructions from here: https://coderwall.com/p/gl_grw
<https://coderwall.com/p/gl_grw>
Now, I can't save settings.py. I realize this may have to do with
the advice to change permissions on the page I just linked to; how
can I change them back?
When I run the "python manage.py syncdb" command now, it tells me
there's a syntax error in settings.py. When I try to fix settings.py
and save it, it tells me ERRNO 13 permission denied.
I'm mainly trying to get a feel for Django because I may want to use
it in the near future.
Two: At my workplace, someone produced a Django app on Ubuntu. The
app is a source database for reporters to view and add to (I work at
a newspaper). The main question: can I get the source information
out of this database so that we can recover it and use it, even if
the original creator of this app/database is not available? He isn't
responding to phone calls or emails, and bosses want me to see if I
can extract the info. I've never worked in Ubuntu before.
Thanks for any help that anyone can provide.
--
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/38f6d8d0-efe2-4739-9e79-bdcd35f2cc7b%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/38f6d8d0-efe2-4739-9e79-bdcd35f2cc7b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/53BB2D86.5050803%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.