You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created projects can also work without installing the library. Their `manage.py` will automatically find raystack in the `src` folder:
31
+
32
+
```bash
33
+
cd myproject
34
+
python3 manage.py help
35
+
python3 manage.py runserver
36
+
```
37
+
38
+
## Library installation
39
+
40
+
For production use, it's recommended to install the library:
41
+
42
+
```bash
43
+
pip install raystack
44
+
```
45
+
46
+
After installation, you can use standard commands:
47
+
48
+
```bash
49
+
raystack startproject myproject
50
+
raystack startapp myapp
51
+
```
52
+
53
+
## Project structure
54
+
55
+
```
56
+
raystack/
57
+
├── raystack.py # CLI script for development
58
+
├── src/
59
+
│ └── raystack/ # Main library code
60
+
├── example/ # Synchronous project example
61
+
├── example_async/ # Asynchronous project example
62
+
└── test_projects/ # Test projects
63
+
```
64
+
65
+
## Compatibility
66
+
67
+
- CLI script `raystack.py` works only for development
68
+
- Created projects work both with installed library and without it
69
+
-`manage.py` templates automatically determine the raystack installation method
70
+
71
+
## Fixed issues
72
+
73
+
### Database import errors
74
+
75
+
When running commands, Python 3.6 warnings may appear, but this is not critical:
76
+
77
+
```
78
+
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/jwt/utils.py:7: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography.
79
+
```
80
+
81
+
These warnings do not affect command operation and will disappear when using a newer Python version.
82
+
83
+
### Lazy imports
84
+
85
+
All database module imports are now performed lazily (lazy imports), which allows:
86
+
- Running commands without prior database configuration
87
+
- Avoiding circular dependencies
88
+
- Working both with installed library and without it
0 commit comments